feat(chat): add trailing comma rules

This commit is contained in:
mso7nueh
2024-06-25 16:05:55 +03:00
parent 6ea4a23ad6
commit b1b6ffe0f3
120 changed files with 549 additions and 546 deletions

View File

@@ -9,12 +9,12 @@ class ThemeHelper {
// A map of custom color themes supported by the app
Map<String, PrimaryColors> _supportedCustomColor = {
'primary': PrimaryColors()
'primary': PrimaryColors(),
};
// A map of color schemes supported by the app
Map<String, ColorScheme> _supportedColorScheme = {
'primary': ColorSchemes.primaryColorScheme
'primary': ColorSchemes.primaryColorScheme,
};
/// Returns the primary colors for the current theme.
@@ -22,7 +22,7 @@ class ThemeHelper {
//throw exception to notify given theme is not found or not generated by the generator
if (!_supportedCustomColor.containsKey(_appTheme)) {
throw Exception(
"$_appTheme is not found.Make sure you have added this theme class in JSON Try running flutter pub run build_runner");
"$_appTheme is not found.Make sure you have added this theme class in JSON Try running flutter pub run build_runner",);
}
//return theme from map
@@ -34,7 +34,7 @@ class ThemeHelper {
//throw exception to notify given theme is not found or not generated by the generator
if (!_supportedColorScheme.containsKey(_appTheme)) {
throw Exception(
"$_appTheme is not found.Make sure you have added this theme class in JSON Try running flutter pub run build_runner");
"$_appTheme is not found.Make sure you have added this theme class in JSON Try running flutter pub run build_runner",);
}
//return theme from map