Skip to content

Commit

Permalink
makes changes/fixes for flutter version 3.22.2
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Gabe-Codes authored Jul 3, 2024
1 parent 9dbe02e commit eac367f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/inner_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ class InnerDrawerState extends State<InnerDrawer>
final Widget scaffoldChild = Stack(
children: <Widget?>[widget.scaffold, invC != null ? invC : null]
.where((a) => a != null)
.toList() as List<Widget>,
.toList().cast<Widget>(),
);

Widget container = Container(
Expand Down Expand Up @@ -582,7 +582,7 @@ class InnerDrawerState extends State<InnerDrawer>
return Container(
decoration: widget.backgroundDecoration ??
BoxDecoration(
color: Theme.of(context).backgroundColor,
color: Theme.of(context).colorScheme.background,
),
child: Stack(
alignment: _drawerInnerAlignment!,
Expand Down Expand Up @@ -617,7 +617,7 @@ class InnerDrawerState extends State<InnerDrawer>
///Trigger
_trigger(AlignmentDirectional.centerStart, _leftChild),
_trigger(AlignmentDirectional.centerEnd, _rightChild),
].where((a) => a != null).toList() as List<Widget>,
].where((a) => a != null).toList().cast<Widget>(),
),
),
),
Expand Down

0 comments on commit eac367f

Please sign in to comment.