migration to new dart version changes

This commit is contained in:
MohammadTaha Basiri 2022-02-11 20:08:58 +03:30
parent a43dc894b7
commit e0e92c41d3
5 changed files with 10 additions and 4 deletions

View File

@ -36,9 +36,9 @@ class LightThemeConfig {
static const ColorScheme _colorScheme = ColorScheme(
primary: _primary,
primaryVariant: _white,
primaryContainer: _white,
secondary: Color(0xFFD61515),
secondaryVariant: _white,
secondaryContainer: _white,
surface: _white,
background: _background,
error: Color(0xFFF00505),
@ -116,9 +116,9 @@ class DarkThemeConfig {
static const ColorScheme _colorScheme = ColorScheme(
primary: _primary,
primaryVariant: _white,
primaryContainer: _white,
secondary: Color(0xFFE53939),
secondaryVariant: _white,
secondaryContainer: _white,
surface: Color(0xFF181B1F),
background: _background,
error: Color(0xFFF53B3B),

View File

@ -55,5 +55,6 @@ class AuthenticationState extends CoreProvier {
appState = AppState.failed;
ActionSheetUtils.showAlert(AlertData(message: service.errorMessage));
}
return null;
}
}

View File

@ -112,5 +112,6 @@ class RequestHelper {
}
return result;
}
return null;
}
}

View File

@ -75,5 +75,6 @@ class DidvanButton extends StatelessWidget {
color: enabled ? color : Theme.of(context).colorScheme.disabledText,
);
}
return null;
}
}

View File

@ -152,6 +152,7 @@ class _DidvanTextFieldState extends State<DidvanTextField> {
if (_error != null) {
return Theme.of(context).colorScheme.error;
}
return null;
}
Color _fillColor() {
@ -185,6 +186,7 @@ class _DidvanTextFieldState extends State<DidvanTextField> {
),
);
}
return null;
}
void _onChanged(String value) {
@ -209,6 +211,7 @@ class _DidvanTextFieldState extends State<DidvanTextField> {
});
}
}
return null;
}
@override