Fix: Arrumado bug de aparecer modal na tela de login

This commit is contained in:
Lucas 2024-08-23 17:32:00 -03:00
parent 0e6bb9a03a
commit 43cd04707f
1 changed files with 16 additions and 14 deletions

View File

@ -401,21 +401,23 @@ Future<bool> checkLocals({
if (locals != null && locals.isEmpty) { if (locals != null && locals.isEmpty) {
await toggleApp(context, false); await toggleApp(context, false);
return false; return false;
} else if (locals.where((local) => local['CLU_STATUS'] != 'A').isNotEmpty) { } else {
await showModalBottomSheet( // else if (locals.where((local) => local['CLU_STATUS'] != 'A').isNotEmpty) {
isScrollControlled: true, // await showModalBottomSheet(
backgroundColor: Colors.transparent, // isScrollControlled: true,
enableDrag: false, // backgroundColor: Colors.transparent,
isDismissible: false, // enableDrag: false,
context: context, // isDismissible: false,
builder: (context) => Padding( // context: context,
padding: MediaQuery.viewInsetsOf(context), // builder: (context) => Padding(
child: const BottomArrowLinkedLocalsComponentWidget(), // padding: MediaQuery.viewInsetsOf(context),
), // child: const BottomArrowLinkedLocalsComponentWidget(),
); // Chamada oti // ),
// );
// }
await toggleApp(context, true);
return true;
} }
await toggleApp(context, true);
return true;
} }
Future answersRequest(BuildContext context, String? ref, String? task, Future answersRequest(BuildContext context, String? ref, String? task,