depending on the path a different language is pre-selected

This commit is contained in:
marco committed 2024-12-18 19:41:00 +01:00
1 parent 6587828a0b
commit b66da23887
3 files changed
+20 -1

No files matched your search

+2
View File
@@ -1,6 +1,8 @@
import 'package:flutter/material.dart';
class LocaleProvider extends ChangeNotifier {
LocaleProvider({Locale? defaultLocale})
: _locale = defaultLocale ?? const Locale('de');
Locale _locale = const Locale('de');
Locale get locale => _locale;