loading state and error handling refactor
This commit is contained in:
@@ -2,6 +2,17 @@ import 'package:flutter/material.dart';
|
||||
|
||||
import '../widget/dropdown_display.dart';
|
||||
|
||||
class AppSpacing {
|
||||
static const double xs = 4;
|
||||
static const double sm = 8;
|
||||
static const double md = 16;
|
||||
static const double lg = 24;
|
||||
static const double xl = 40;
|
||||
}
|
||||
|
||||
TextStyle inputErrorStyle(BuildContext context) =>
|
||||
TextStyle(color: Theme.of(context).colorScheme.error);
|
||||
|
||||
class AppTheme {
|
||||
static DropdownDisplay getDisplayOptions(ThemeMode theme) {
|
||||
switch(theme) {
|
||||
|
||||
Reference in New Issue
Block a user