depending on the path a different language is pre-selected

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

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;