Skip to content

Commit

Permalink
remove nullOk=true in favor of .maybeOf()
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalTorma committed Nov 4, 2020
1 parent d2a568a commit 4710c9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/ios/Flutter/.last_build_id
@@ -1 +1 @@
6595ea39b2066adf130c119d8cae71e7
8c0473fda4da7556287e1eab51e6d5ae
2 changes: 1 addition & 1 deletion lib/src/widget/app_bar.dart
Expand Up @@ -144,7 +144,7 @@ class NeumorphicAppBarState extends State<NeumorphicAppBar> {
final bool canPop = parentRoute?.canPop ?? false;
final bool useCloseButton =
parentRoute is PageRoute<dynamic> && parentRoute.fullscreenDialog;
final ScaffoldState scaffold = Scaffold.of(context, nullOk: true);
final ScaffoldState scaffold = Scaffold.maybeOf(context);
final bool hasDrawer = scaffold?.hasDrawer ?? false;
final bool hasEndDrawer = scaffold?.hasEndDrawer ?? false;

Expand Down

0 comments on commit 4710c9e

Please sign in to comment.