migration to new dart version changes
This commit is contained in:
parent
a43dc894b7
commit
e0e92c41d3
|
|
@ -36,9 +36,9 @@ class LightThemeConfig {
|
||||||
|
|
||||||
static const ColorScheme _colorScheme = ColorScheme(
|
static const ColorScheme _colorScheme = ColorScheme(
|
||||||
primary: _primary,
|
primary: _primary,
|
||||||
primaryVariant: _white,
|
primaryContainer: _white,
|
||||||
secondary: Color(0xFFD61515),
|
secondary: Color(0xFFD61515),
|
||||||
secondaryVariant: _white,
|
secondaryContainer: _white,
|
||||||
surface: _white,
|
surface: _white,
|
||||||
background: _background,
|
background: _background,
|
||||||
error: Color(0xFFF00505),
|
error: Color(0xFFF00505),
|
||||||
|
|
@ -116,9 +116,9 @@ class DarkThemeConfig {
|
||||||
|
|
||||||
static const ColorScheme _colorScheme = ColorScheme(
|
static const ColorScheme _colorScheme = ColorScheme(
|
||||||
primary: _primary,
|
primary: _primary,
|
||||||
primaryVariant: _white,
|
primaryContainer: _white,
|
||||||
secondary: Color(0xFFE53939),
|
secondary: Color(0xFFE53939),
|
||||||
secondaryVariant: _white,
|
secondaryContainer: _white,
|
||||||
surface: Color(0xFF181B1F),
|
surface: Color(0xFF181B1F),
|
||||||
background: _background,
|
background: _background,
|
||||||
error: Color(0xFFF53B3B),
|
error: Color(0xFFF53B3B),
|
||||||
|
|
|
||||||
|
|
@ -55,5 +55,6 @@ class AuthenticationState extends CoreProvier {
|
||||||
appState = AppState.failed;
|
appState = AppState.failed;
|
||||||
ActionSheetUtils.showAlert(AlertData(message: service.errorMessage));
|
ActionSheetUtils.showAlert(AlertData(message: service.errorMessage));
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -112,5 +112,6 @@ class RequestHelper {
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -75,5 +75,6 @@ class DidvanButton extends StatelessWidget {
|
||||||
color: enabled ? color : Theme.of(context).colorScheme.disabledText,
|
color: enabled ? color : Theme.of(context).colorScheme.disabledText,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -152,6 +152,7 @@ class _DidvanTextFieldState extends State<DidvanTextField> {
|
||||||
if (_error != null) {
|
if (_error != null) {
|
||||||
return Theme.of(context).colorScheme.error;
|
return Theme.of(context).colorScheme.error;
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
Color _fillColor() {
|
Color _fillColor() {
|
||||||
|
|
@ -185,6 +186,7 @@ class _DidvanTextFieldState extends State<DidvanTextField> {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
void _onChanged(String value) {
|
void _onChanged(String value) {
|
||||||
|
|
@ -209,6 +211,7 @@ class _DidvanTextFieldState extends State<DidvanTextField> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue