This commit is contained in:
J. A. Messias 2024-12-20 11:29:23 -03:00
parent 50fa56841e
commit cbb2dd59fc
3 changed files with 4 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -66,8 +66,8 @@ class PreferencesPageModel with ChangeNotifier {
if (value.jsonBody['error'] == false) {
await StorageHelper().set(LocalsStorageKey.notify.key, !isNotify);
content = FFLocalizations.of(context).getVariableText(
enText: 'Notification changed successfully',
ptText: 'Notificação alterada com sucesso',
enText: 'Setting changed successfully',
ptText: 'Opção alterada com sucesso',
);
notifyListeners();
SnackBarUtil.showSnackBar(context, content);

View File

@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:hub/features/local/data/index.dart';
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
import 'package:hub/flutter_flow/flutter_flow_util.dart';
@ -21,6 +22,7 @@ class _PreferencesPageWidgetState extends State<PreferencesPageWidget> {
@override
void initState() {
super.initState();
LocalsRepositoryImpl().update(context);
}
@override