first commit
This commit is contained in:
12
lib/Screens/language/language_provider.dart
Normal file
12
lib/Screens/language/language_provider.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class LanguageChangeProvider with ChangeNotifier {
|
||||
Locale _currentLocale = const Locale("en");
|
||||
|
||||
Locale get currentLocale => _currentLocale;
|
||||
|
||||
void changeLocale(String locale) {
|
||||
_currentLocale = Locale(locale);
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user