File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
packages/amplify_authenticator/lib Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -759,21 +759,20 @@ class _AuthenticatorBody extends StatelessWidget {
759
759
return _AuthStateBuilder (
760
760
child: child,
761
761
builder: (state, child) {
762
+ if (state is AuthenticatedState ) return child;
762
763
return Navigator (
763
764
onPopPage: (_, dynamic __) => true ,
764
765
pages: [
765
- if (state is AuthenticatedState ) MaterialPage <void >(child: child),
766
- if (state is ! AuthenticatedState )
767
- MaterialPage <void >(
768
- child: ScaffoldMessenger (
769
- key: _AuthenticatorState .scaffoldMessengerKey,
770
- child: Scaffold (
771
- body: SizedBox .expand (
772
- child: child,
773
- ),
766
+ MaterialPage <void >(
767
+ child: ScaffoldMessenger (
768
+ key: _AuthenticatorState .scaffoldMessengerKey,
769
+ child: Scaffold (
770
+ body: SizedBox .expand (
771
+ child: child,
774
772
),
775
773
),
776
774
),
775
+ ),
777
776
],
778
777
);
779
778
},
You can’t perform that action at this time.
0 commit comments