Skip to content

Commit eac367f

Browse files
authored
makes changes/fixes for flutter version 3.22.2
This fork combines the fixes from the following pull requests: kenjishiromajp:kenjishiromajp-update-for-2.12-null-safety-casting: Dn-a#69 Smibser:fix-deprectaed-theme-backgroundColor: Dn-a#82
1 parent 9dbe02e commit eac367f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/inner_drawer.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ class InnerDrawerState extends State<InnerDrawer>
434434
final Widget scaffoldChild = Stack(
435435
children: <Widget?>[widget.scaffold, invC != null ? invC : null]
436436
.where((a) => a != null)
437-
.toList() as List<Widget>,
437+
.toList().cast<Widget>(),
438438
);
439439

440440
Widget container = Container(
@@ -582,7 +582,7 @@ class InnerDrawerState extends State<InnerDrawer>
582582
return Container(
583583
decoration: widget.backgroundDecoration ??
584584
BoxDecoration(
585-
color: Theme.of(context).backgroundColor,
585+
color: Theme.of(context).colorScheme.background,
586586
),
587587
child: Stack(
588588
alignment: _drawerInnerAlignment!,
@@ -617,7 +617,7 @@ class InnerDrawerState extends State<InnerDrawer>
617617
///Trigger
618618
_trigger(AlignmentDirectional.centerStart, _leftChild),
619619
_trigger(AlignmentDirectional.centerEnd, _rightChild),
620-
].where((a) => a != null).toList() as List<Widget>,
620+
].where((a) => a != null).toList().cast<Widget>(),
621621
),
622622
),
623623
),

0 commit comments

Comments
 (0)