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) {
await toggleApp(context, false);
return false;
} else if (locals.where((local) => local['CLU_STATUS'] != 'A').isNotEmpty) {
await showModalBottomSheet(
isScrollControlled: true,
backgroundColor: Colors.transparent,
enableDrag: false,
isDismissible: false,
context: context,
builder: (context) => Padding(
padding: MediaQuery.viewInsetsOf(context),
child: const BottomArrowLinkedLocalsComponentWidget(),
),
); // Chamada oti
}
} else {
// else if (locals.where((local) => local['CLU_STATUS'] != 'A').isNotEmpty) {
// await showModalBottomSheet(
// isScrollControlled: true,
// backgroundColor: Colors.transparent,
// enableDrag: false,
// isDismissible: false,
// context: context,
// builder: (context) => Padding(
// padding: MediaQuery.viewInsetsOf(context),
// child: const BottomArrowLinkedLocalsComponentWidget(),
// ),
// );
// }
await toggleApp(context, true);
return true;
}
}
Future answersRequest(BuildContext context, String? ref, String? task,