theme work
This commit is contained in:
12
lib/data/enums.dart
Normal file
12
lib/data/enums.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
enum AppThemeMode {
|
||||
light('light', 'Chiaro', ThemeMode.light),
|
||||
dark('dark', 'Scuro', ThemeMode.dark),
|
||||
system('system', 'Sistema', ThemeMode.system);
|
||||
|
||||
const AppThemeMode(this.value, this.label, this.themeMode);
|
||||
final String value;
|
||||
final String label;
|
||||
final ThemeMode themeMode;
|
||||
}
|
||||
Reference in New Issue
Block a user