Fix: Arrumado bug de aparecer modal na tela de login
This commit is contained in:
parent
0e6bb9a03a
commit
43cd04707f
|
@ -401,22 +401,24 @@ 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,
|
||||
String? response, String? id) async {
|
||||
|
|
Loading…
Reference in New Issue