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,24 +206,25 @@ 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');
await showModalBottomSheet( WidgetsBinding.instance.addPostFrameCallback((_) async {
context: context, await showModalBottomSheet(
builder: (context) => Padding(padding: MediaQuery.viewInsetsOf(context), child: builder(context)), context: StorageHelper().context!,
isScrollControlled: true, builder: (context) => Padding(padding: MediaQuery.viewInsetsOf(context), child: builder(context)),
// barrierColor: theme.primaryBackground.withOpacity(0.2), isScrollControlled: true,
backgroundColor: theme.primaryBackground, // barrierColor: theme.primaryBackground.withOpacity(0.2),
showDragHandle: true, backgroundColor: theme.primaryBackground,
useSafeArea: true, showDragHandle: true,
enableDrag: true, useSafeArea: true,
// isDismissible: true, enableDrag: true,
).whenComplete(() { // isDismissible: true,
StorageHelper().isRecovered = false; ).whenComplete(() {
print('showModalBottomSheet completed'); StorageHelper().isRecovered = false;
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();