make title color match the color of the button on the right

This commit is contained in:
krawieck 2020-10-06 00:54:17 +02:00
parent 83a488c134
commit f8733da21d
1 changed files with 25 additions and 24 deletions

View File

@ -152,31 +152,32 @@ class HomeTab extends HookWidget {
],
centerTitle: true,
title: TextButton(
style: TextButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(10))),
padding: EdgeInsets.symmetric(horizontal: 15),
primary: theme.buttonColor,
textStyle: theme.textTheme.headline6,
),
onPressed: handleListChange,
child: Row(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Flexible(
child: Text(
title,
style: TextStyle(color: theme.textTheme.headline6.color),
overflow: TextOverflow.ellipsis,
),
style: TextButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(10))),
padding: EdgeInsets.symmetric(horizontal: 15),
primary: theme.buttonColor,
textStyle: theme.primaryTextTheme.headline6,
),
onPressed: handleListChange,
child: Row(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Flexible(
child: Text(
title,
style: theme.primaryTextTheme.headline6,
overflow: TextOverflow.ellipsis,
),
Icon(
Icons.arrow_drop_down,
color: theme.textTheme.headline6.color,
),
],
)),
),
Icon(
Icons.arrow_drop_down,
color: theme.primaryTextTheme.headline6.color,
),
],
),
),
),
body: InfiniteHomeList(
controller: isc,