basic configurations (global providers and consts)
This commit is contained in:
parent
e152b77f00
commit
769d76d26c
|
|
@ -0,0 +1 @@
|
||||||
|
class DesignConfig {}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
class AppStrings {}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
enum AppState {
|
||||||
|
idle,
|
||||||
|
busy,
|
||||||
|
failed,
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
import 'package:didvan/models/enums.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
|
||||||
|
class CoreProvier with ChangeNotifier {
|
||||||
|
AppState _appState = AppState.idle;
|
||||||
|
|
||||||
|
set appState(AppState newState) {
|
||||||
|
_appState = newState;
|
||||||
|
notifyListeners();
|
||||||
|
}
|
||||||
|
|
||||||
|
AppState get appState => _appState;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
import 'package:didvan/providers/core_provider.dart';
|
||||||
|
|
||||||
|
class UserProvider extends CoreProvier {}
|
||||||
Loading…
Reference in New Issue