content localized on locale change

This commit is contained in:
marco committed 2024-12-18 19:30:13 +01:00
1 parent a984fc15b0
commit 6587828a0b
9 files changed
+158 -94

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import 'package:flutter/material.dart';
class LocaleProvider extends ChangeNotifier {
Locale _locale = const Locale('de');
Locale get locale => _locale;
void setLocale(Locale locale) {
_locale = locale;
notifyListeners();
}
}