Skip to content

Commit

Permalink
fix: canPop 默认值应该为 true
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Dec 6, 2023
1 parent d238a95 commit 1f329df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/widgets/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class MySliverScaffold extends StatelessWidget {
return Scaffold(
drawer: drawer,
body: PopScope(
canPop: canPop == null ? false : canPop!(),
canPop: canPop == null ? true : canPop!(),
onPopInvoked: onPopInvoked,
child: ConditionalParentWidget(
condition: onRefresh != null,
Expand Down

0 comments on commit 1f329df

Please sign in to comment.