fix: Further improvements on app theming

This commit is contained in:
Alberto Ponces
2022-09-07 12:20:13 +01:00
parent 1e890708d2
commit 9b4a8ebc69
5 changed files with 87 additions and 23 deletions

View File

@ -15,6 +15,10 @@ class CustomPopupMenu extends StatelessWidget {
return Theme(
data: Theme.of(context).copyWith(useMaterial3: false),
child: PopupMenuButton<int>(
icon: Icon(
Icons.more_vert,
color: Theme.of(context).colorScheme.secondary,
),
onSelected: onSelected,
itemBuilder: (context) => children.entries
.map(

View File

@ -26,10 +26,7 @@ class CustomSliverAppBar extends StatelessWidget {
: Theme.of(context).canvasColor,
),
flexibleSpace: FlexibleSpaceBar(
titlePadding: const EdgeInsets.symmetric(
vertical: 23.0,
horizontal: 20.0,
),
titlePadding: const EdgeInsets.only(bottom: 16.0, left: 20.0),
title: title,
),
actions: actions,

View File

@ -36,6 +36,9 @@ class _SearchBarState extends State<SearchBar> {
child: TextFormField(
onChanged: widget.onQueryChanged,
controller: _textController,
style: TextStyle(
color: Theme.of(context).colorScheme.secondary,
),
decoration: InputDecoration(
filled: true,
fillColor: Theme.of(context).colorScheme.secondaryContainer,