Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahroz16 committed Apr 8, 2024
1 parent 3d2bb26 commit 7f11887
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/amiapp_flutter/lib/src/screens/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,11 @@ class _SettingsScreenState extends State<SettingsScreen> {
Widget build(BuildContext context) {
final Sizes sizes = Theme.of(context).extension<Sizes>()!;

return WillPopScope(
onWillPop: () {
return PopScope(
onPopInvoked: (bool didPop) {
if (widget.auth.signedIn == false) {
context.go(Screen.login.location);
return Future.value(false);
}

return Future.value(true);
},
child: AppContainer(
resizeToAvoidBottomInset: true,
Expand Down

0 comments on commit 7f11887

Please sign in to comment.