refactor nomi tabelle
This commit is contained in:
24
lib/core/enums_and_consts/consts.dart
Normal file
24
lib/core/enums_and_consts/consts.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
class Tables {
|
||||
static const String attachments = 'attachments';
|
||||
static const String brands = 'brands';
|
||||
static const String campaigns = 'campaigns';
|
||||
static const String companies = 'companies';
|
||||
static const String customers = 'customers';
|
||||
static const String documentSequences = 'document_sequences';
|
||||
static const String models = 'models';
|
||||
static const String notes = 'notes';
|
||||
static const String noteCollaborators = 'note_collaborators';
|
||||
static const String operations = 'operations';
|
||||
static const String providerLocations = 'provider_locations';
|
||||
static const String providers = 'providers';
|
||||
static const String providersInStores = 'providers_in_stores';
|
||||
static const String shippingDocuments = 'shipping_documents';
|
||||
static const String staffInStores = 'staff_in_stores';
|
||||
static const String staffMembers = 'staff_members';
|
||||
static const String stores = 'stores';
|
||||
static const String tickets = 'tickets';
|
||||
static const String trackings = 'trackings';
|
||||
}
|
||||
|
||||
const String resetPasswordUrl =
|
||||
'https://flux-web-invite.marco-6ba.workers.dev/';
|
||||
28
lib/core/enums_and_consts/enums.dart
Normal file
28
lib/core/enums_and_consts/enums.dart
Normal file
@@ -0,0 +1,28 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
enum AppThemeMode {
|
||||
light('light', 'Chiaro', ThemeMode.light, Icons.light_mode),
|
||||
dark('dark', 'Scuro', ThemeMode.dark, Icons.dark_mode),
|
||||
system('system', 'Sistema', ThemeMode.system, Icons.brightness_auto);
|
||||
|
||||
const AppThemeMode(this.value, this.label, this.themeMode, this.icon);
|
||||
final String value;
|
||||
final String label;
|
||||
final ThemeMode themeMode;
|
||||
final IconData icon;
|
||||
|
||||
static AppThemeMode fromValue(String? value) {
|
||||
return AppThemeMode.values.firstWhere(
|
||||
(e) => e.value == value,
|
||||
orElse: () => AppThemeMode.system,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
enum PrefKeys {
|
||||
theme('themeModeSetting'),
|
||||
lastStore('lastStore');
|
||||
|
||||
const PrefKeys(this.value);
|
||||
final String value;
|
||||
}
|
||||
Reference in New Issue
Block a user