WIP
This commit is contained in:
parent
94fe435ea5
commit
4bfbaad482
|
@ -123,7 +123,7 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
|||
alignment: Alignment.bottomCenter,
|
||||
),
|
||||
},
|
||||
);
|
||||
).then((value) => true);
|
||||
}
|
||||
|
||||
Future liberationHistoryOptAction(BuildContext context) async {
|
||||
|
|
|
@ -254,7 +254,7 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
|||
MenuCardItem(
|
||||
icon: Icons.settings,
|
||||
action: () async {
|
||||
await _model.preferencesSettings(context);
|
||||
await _model.preferencesSettings(context).then((value) => value);
|
||||
setState(() {});
|
||||
},
|
||||
title: FFLocalizations.of(context).getVariableText(
|
||||
|
|
|
@ -38,15 +38,14 @@ class _HomePageWidgetState extends State<HomePageWidget> {
|
|||
() async {
|
||||
await FirebaseMessagingService().updateDeviceToken();
|
||||
}();
|
||||
() async {
|
||||
PhpGroup.getDadosCall
|
||||
void fetchData() async {
|
||||
await PhpGroup.getDadosCall
|
||||
.call(
|
||||
devUUID: AppState().devUUID,
|
||||
userUUID: AppState().userUUID,
|
||||
cliUUID: AppState().cliUUID,
|
||||
atividade: 'getDados')
|
||||
.then((value) async {
|
||||
// value = await value;
|
||||
if (value.statusCode == 200 && value.jsonBody['error'] == false) {
|
||||
AppState().whatsapp = value.jsonBody['whatsapp'];
|
||||
AppState().provisional = value.jsonBody['provisional'];
|
||||
|
@ -54,8 +53,10 @@ class _HomePageWidgetState extends State<HomePageWidget> {
|
|||
await DialogUtil.warningDefault(context)
|
||||
.then((value) => safeSetState(() {}));
|
||||
}
|
||||
});
|
||||
}();
|
||||
}).then((value) => fetchData());
|
||||
}
|
||||
|
||||
fetchData();
|
||||
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
||||
localStatus = await checkLocals(
|
||||
|
|
|
@ -314,7 +314,7 @@ class PreferencesPageModel with ChangeNotifier {
|
|||
AppState().deleteLocal();
|
||||
AppState().deleteOwnerUUID();
|
||||
Navigator.pop(context);
|
||||
Navigator.pop(context);
|
||||
Navigator.pop(context, true);
|
||||
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
|
|
Loading…
Reference in New Issue