WIP
This commit is contained in:
parent
a8c71dc644
commit
d1f2bf215d
|
@ -51,14 +51,14 @@ class _HomePageWidgetState extends State<HomePageWidget> {
|
|||
switch (value.statusCode) {
|
||||
case 200:
|
||||
if (value.jsonBody['error'] == false) {
|
||||
success = true;
|
||||
AppState().whatsapp = value.jsonBody['whatsapp'];
|
||||
AppState().provisional = value.jsonBody['provisional'];
|
||||
success = true;
|
||||
return;
|
||||
} else if (value.jsonBody['error_msg'] ==
|
||||
'O seu vinculo nao esta ativo.') {
|
||||
success = true;
|
||||
showModalBottomSheet(
|
||||
isScrollControlled: false,
|
||||
isScrollControlled: true,
|
||||
backgroundColor: Colors.transparent,
|
||||
enableDrag: false,
|
||||
isDismissible: false,
|
||||
|
@ -75,8 +75,10 @@ class _HomePageWidgetState extends State<HomePageWidget> {
|
|||
),
|
||||
);
|
||||
},
|
||||
).then((value) => safeSetState(() {}));
|
||||
return;
|
||||
).then((value) => safeSetState(() {
|
||||
success = true;
|
||||
}));
|
||||
success = true;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue