Skip to content

Commit

Permalink
Merge pull request Dn-a#1 from kenjishiromajp/kenjishiromajp-update-f…
Browse files Browse the repository at this point in the history
…or-2.12-null-safety-casting

2.12 version casting problem
  • Loading branch information
kenjishiromajp committed Mar 25, 2021
2 parents 9dbe02e + 63f3641 commit f691891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/inner_drawer.dart
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 @@ -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 f691891

Please sign in to comment.