This commit is contained in:
jantunesmesias 2024-08-08 08:43:05 -03:00
parent 0534845299
commit fc77d67767
1 changed files with 2 additions and 1 deletions

View File

@ -147,7 +147,6 @@ class PreferencesPageModel with ChangeNotifier {
), ),
FFButtonWidget( FFButtonWidget(
onPressed: () async { onPressed: () async {
FFAppState().notify = !FFAppState().notify;
PhpGroup.changeNotifica PhpGroup.changeNotifica
.call( .call(
userUUID: FFAppState().userUUID, userUUID: FFAppState().userUUID,
@ -157,6 +156,8 @@ class PreferencesPageModel with ChangeNotifier {
notifica: FFAppState().notify ? 'S' : 'N', notifica: FFAppState().notify ? 'S' : 'N',
) )
.then((value) { .then((value) {
FFAppState().notify = !FFAppState().notify;
ScaffoldMessenger.of(context).showSnackBar( ScaffoldMessenger.of(context).showSnackBar(
SnackBar( SnackBar(
content: Text( content: Text(