From eac367f9b9f5bc772046b5720c8ff5c7fcfc23a3 Mon Sep 17 00:00:00 2001 From: Gabe <58133974+Gabe-Codes@users.noreply.github.com> Date: Wed, 3 Jul 2024 09:11:44 -0500 Subject: [PATCH] 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: https://github.com/Dn-a/flutter_inner_drawer/pull/69 Smibser:fix-deprectaed-theme-backgroundColor: https://github.com/Dn-a/flutter_inner_drawer/pull/82 --- lib/inner_drawer.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/inner_drawer.dart b/lib/inner_drawer.dart index a2cb9e2..d9e44c3 100644 --- a/lib/inner_drawer.dart +++ b/lib/inner_drawer.dart @@ -434,7 +434,7 @@ class InnerDrawerState extends State final Widget scaffoldChild = Stack( children: [widget.scaffold, invC != null ? invC : null] .where((a) => a != null) - .toList() as List, + .toList().cast(), ); Widget container = Container( @@ -582,7 +582,7 @@ class InnerDrawerState extends State return Container( decoration: widget.backgroundDecoration ?? BoxDecoration( - color: Theme.of(context).backgroundColor, + color: Theme.of(context).colorScheme.background, ), child: Stack( alignment: _drawerInnerAlignment!, @@ -617,7 +617,7 @@ class InnerDrawerState extends State ///Trigger _trigger(AlignmentDirectional.centerStart, _leftChild), _trigger(AlignmentDirectional.centerEnd, _rightChild), - ].where((a) => a != null).toList() as List, + ].where((a) => a != null).toList().cast(), ), ), ),