wip
This commit is contained in:
parent
50fa56841e
commit
cbb2dd59fc
Binary file not shown.
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 66 KiB |
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue