Skip to content

Commit 6c4b0ee

Browse files
committed
Added: enum for network storage type...
... The network storage is not implemented yet.
1 parent 72032ad commit 6c4b0ee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/vaahextendflutter/env.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ final EnvironmentConfig defaultConfig = EnvironmentConfig(
3030
showDebugPanel: true,
3131
debugPanelColor: AppTheme.colors['black']!.withOpacity(0.8),
3232
localStorageType: LocalStorageType.none,
33+
networkStorageType: NetworkStorageType.none,
3334
);
3435

3536
// To add new configuration add new key, value pair in envConfigs
@@ -105,6 +106,7 @@ class EnvironmentConfig {
105106
final bool showDebugPanel;
106107
final Color debugPanelColor;
107108
final LocalStorageType localStorageType;
109+
final NetworkStorageType networkStorageType;
108110

109111
const EnvironmentConfig({
110112
required this.appTitle,
@@ -128,6 +130,7 @@ class EnvironmentConfig {
128130
required this.showDebugPanel,
129131
required this.debugPanelColor,
130132
required this.localStorageType,
133+
required this.networkStorageType,
131134
});
132135

133136
static EnvironmentConfig getEnvConfig() {
@@ -174,6 +177,7 @@ class EnvironmentConfig {
174177
bool? showDebugPanel,
175178
Color? debugPanelColor,
176179
LocalStorageType? localStorageType,
180+
NetworkStorageType? networkStorageType,
177181
}) {
178182
return EnvironmentConfig(
179183
appTitle: appTitle ?? this.appTitle,
@@ -199,6 +203,7 @@ class EnvironmentConfig {
199203
showDebugPanel: showDebugPanel ?? this.showDebugPanel,
200204
debugPanelColor: debugPanelColor ?? this.debugPanelColor,
201205
localStorageType: localStorageType ?? this.localStorageType,
206+
networkStorageType: networkStorageType ?? this.networkStorageType,
202207
);
203208
}
204209

@@ -215,6 +220,8 @@ enum InternalNotificationsServiceType { pusher, firebase, custom, none }
215220

216221
enum LocalStorageType { hive, flutterSecureStorage, none }
217222

223+
enum NetworkStorageType { firebase, supabase, none }
224+
218225
class SentryConfig {
219226
final String dsn;
220227
final bool autoAppStart; // To record cold and warm start up time

0 commit comments

Comments
 (0)