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(), ), ), ),