drawer color fix
This commit is contained in:
parent
abd3b17126
commit
64d80eb4be
1 changed files with 14 additions and 15 deletions
|
@ -65,27 +65,26 @@ class _AppDrawerState extends State<AppDrawer> {
|
|||
];
|
||||
|
||||
return Drawer(
|
||||
child: ListTileTheme.merge(
|
||||
selectedColor: Theme.of(context).accentColor,
|
||||
child: Selector<MediaQueryData, double>(
|
||||
selector: (c, mq) => mq.effectiveBottomPadding,
|
||||
builder: (c, mqPaddingBottom, child) {
|
||||
final iconTheme = IconTheme.of(context);
|
||||
return SingleChildScrollView(
|
||||
padding: EdgeInsets.only(bottom: mqPaddingBottom),
|
||||
child: Theme(
|
||||
data: Theme.of(context).copyWith(
|
||||
// color used by `ExpansionTile` for leading icon
|
||||
unselectedWidgetColor: Colors.white,
|
||||
),
|
||||
child: IconTheme(
|
||||
data: iconTheme.copyWith(size: iconTheme.size * MediaQuery.textScaleFactorOf(context)),
|
||||
data: iconTheme.copyWith(
|
||||
size: iconTheme.size * MediaQuery.textScaleFactorOf(context),
|
||||
),
|
||||
child: Column(
|
||||
children: drawerItems,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue