depending on the path a different language is pre-selected
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user