@@ -7,11 +7,11 @@ import 'package:layrz_models/layrz_models.dart';
77import 'package:layrz_theme/layrz_theme.dart' ;
88import 'package:shared_preferences/shared_preferences.dart' ;
99import 'package:url_launcher/url_launcher_string.dart' ;
10- import 'package:vxstate/vxstate .dart' ;
10+ import 'package:layrz_state/layrz_state .dart' ;
1111
1212part 'wrapper.dart' ;
1313
14- class AppStore extends VxStore {
14+ class AppStore extends LayrzStore {
1515 ThemeMode themeMode;
1616 ThemedLayoutStyle layoutStyle = ThemedLayoutStyle .mini;
1717 String ? mapboxToken;
@@ -65,7 +65,7 @@ class AppStore extends VxStore {
6565 ];
6666}
6767
68- class SetTheme extends VxMutation <AppStore > {
68+ class SetTheme extends StateMutation <AppStore > {
6969 final ThemeMode themeMode;
7070
7171 SetTheme (this .themeMode);
@@ -79,7 +79,7 @@ class SetTheme extends VxMutation<AppStore> {
7979 }
8080}
8181
82- class GetTheme extends VxMutation <AppStore > {
82+ class GetTheme extends StateMutation <AppStore > {
8383 @override
8484 Future <void > perform () async {
8585 final prefs = await SharedPreferences .getInstance ();
@@ -93,7 +93,7 @@ class GetTheme extends VxMutation<AppStore> {
9393 }
9494}
9595
96- class SetLayout extends VxMutation <AppStore > {
96+ class SetLayout extends StateMutation <AppStore > {
9797 final ThemedLayoutStyle layoutStyle;
9898
9999 SetLayout (this .layoutStyle);
@@ -107,7 +107,7 @@ class SetLayout extends VxMutation<AppStore> {
107107 }
108108}
109109
110- class GetLayout extends VxMutation <AppStore > {
110+ class GetLayout extends StateMutation <AppStore > {
111111 @override
112112 Future <void > perform () async {
113113 final prefs = await SharedPreferences .getInstance ();
@@ -121,7 +121,7 @@ class GetLayout extends VxMutation<AppStore> {
121121 }
122122}
123123
124- class SetColorblindMode extends VxMutation <AppStore > {
124+ class SetColorblindMode extends StateMutation <AppStore > {
125125 final ColorblindMode colorblindMode;
126126
127127 SetColorblindMode (this .colorblindMode);
@@ -135,7 +135,7 @@ class SetColorblindMode extends VxMutation<AppStore> {
135135 }
136136}
137137
138- class SetColorblindStrength extends VxMutation <AppStore > {
138+ class SetColorblindStrength extends StateMutation <AppStore > {
139139 final double colorblindStrength;
140140
141141 SetColorblindStrength (this .colorblindStrength);
0 commit comments