staff e store
This commit is contained in:
@@ -243,6 +243,11 @@ ThemeData fluxLightTheme = ThemeData(
|
||||
);
|
||||
|
||||
extension FluxThemeContext on BuildContext {
|
||||
// Scorciatoie per il TextTheme
|
||||
TextStyle get titleLarge => Theme.of(this).textTheme.titleLarge!;
|
||||
TextStyle get titleMedium => Theme.of(this).textTheme.titleMedium!;
|
||||
TextStyle get bodyMedium => Theme.of(this).textTheme.bodyMedium!;
|
||||
|
||||
// --- Colori del Brand ---
|
||||
Color get primary => Theme.of(this).colorScheme.primary; // Blu Flux
|
||||
Color get accent => Theme.of(this).colorScheme.secondary; // Turchese Flux
|
||||
|
||||
@@ -12,6 +12,8 @@ class FluxTextField extends StatelessWidget {
|
||||
final int? minLines;
|
||||
final int? maxLines;
|
||||
final Function(String)? onSubmitted;
|
||||
final int? maxLenght;
|
||||
final Function(String)? onChanged;
|
||||
|
||||
const FluxTextField({
|
||||
super.key, // Usiamo super.key per Flutter moderno
|
||||
@@ -24,6 +26,8 @@ class FluxTextField extends StatelessWidget {
|
||||
this.minLines,
|
||||
this.maxLines = 1,
|
||||
this.onSubmitted,
|
||||
this.maxLenght,
|
||||
this.onChanged,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -59,6 +63,8 @@ class FluxTextField extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
onSubmitted: onSubmitted,
|
||||
onChanged: onChanged,
|
||||
maxLength: maxLenght,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user