milestone

This commit is contained in:
J. A. Messias 2024-11-18 11:27:28 -03:00
parent f4e8f9a806
commit bf5b2a8215
1 changed files with 18 additions and 15 deletions

View File

@ -206,13 +206,13 @@ class _AppState extends State<App> with WidgetsBindingObserver {
print('email: $email, token: $token'); print('email: $email, token: $token');
final bool isNotEmpty = email.isNotEmpty && token.isNotEmpty; final bool isNotEmpty = email.isNotEmpty && token.isNotEmpty;
if (isNotEmpty) { if (isNotEmpty) {
final BuildContext context = StorageHelper().context!;
final FlutterFlowTheme theme = FlutterFlowTheme.of(context); final FlutterFlowTheme theme = FlutterFlowTheme.of(context);
final Widget screen = ForgotPasswordScreen(email: email, token: token); final Widget screen = ForgotPasswordScreen(email: email, token: token);
builder(context) => screen; builder(context) => screen;
print('showModalBottomSheet'); print('showModalBottomSheet');
WidgetsBinding.instance.addPostFrameCallback((_) async {
await showModalBottomSheet( await showModalBottomSheet(
context: context, context: StorageHelper().context!,
builder: (context) => Padding(padding: MediaQuery.viewInsetsOf(context), child: builder(context)), builder: (context) => Padding(padding: MediaQuery.viewInsetsOf(context), child: builder(context)),
isScrollControlled: true, isScrollControlled: true,
// barrierColor: theme.primaryBackground.withOpacity(0.2), // barrierColor: theme.primaryBackground.withOpacity(0.2),
@ -225,6 +225,7 @@ class _AppState extends State<App> with WidgetsBindingObserver {
StorageHelper().isRecovered = false; StorageHelper().isRecovered = false;
print('showModalBottomSheet completed'); print('showModalBottomSheet completed');
}); });
});
} }
} }
@ -276,7 +277,9 @@ class _AppState extends State<App> with WidgetsBindingObserver {
_appStateNotifier = AppStateNotifier.instance; _appStateNotifier = AppStateNotifier.instance;
_router = createRouter(_appStateNotifier); _router = createRouter(_appStateNotifier);
Future.delayed( Future.delayed(
const Duration(milliseconds: 1000), () => setState(() => _appStateNotifier.stopShowingSplashImage())); const Duration(milliseconds: 1000),
() => setState(() => _appStateNotifier.stopShowingSplashImage()),
);
_setupFirebaseMessaging(); _setupFirebaseMessaging();
initDeepLinks(); initDeepLinks();