chore(app): обновление flutter и пакетов (#38)

* chore(pubspec,di): Обновить версии SDK и исправить использование AppEnv

* chore(readme): Обновить версии Flutter и Dart, добавить новые библиотеки

---------

Co-authored-by: petrovyuri <petrovyuri@example.com>
This commit is contained in:
Yuri Petrov
2025-11-17 12:49:07 +03:00
committed by GitHub
parent d9c45eb57e
commit 454f3b7929
17 changed files with 114 additions and 51 deletions

View File

@@ -63,7 +63,7 @@ class AppSnackBar extends StatefulWidget {
_show(
context: context,
message: message,
type: TypeSnackBar.error,
type: .error,
displayDuration: displayDuration,
);
}
@@ -81,7 +81,7 @@ class AppSnackBar extends StatefulWidget {
_show(
context: context,
message: message,
type: TypeSnackBar.info,
type: .info,
displayDuration: displayDuration,
);
}
@@ -99,7 +99,7 @@ class AppSnackBar extends StatefulWidget {
_show(
context: context,
message: message,
type: TypeSnackBar.success,
type: .success,
displayDuration: displayDuration,
);
}
@@ -266,9 +266,9 @@ class _AppSnackBarState extends State<AppSnackBar>
/// [TypeSnackBar.error] - цвет ошибки
Color _getBackgroundColor(TypeSnackBar type) {
return switch (type) {
TypeSnackBar.success => context.appColors.successSnackbarBackground,
TypeSnackBar.error => context.appColors.errorSnackbarBackground,
TypeSnackBar.info => context.appColors.infoSnackbarBackground,
.success => context.appColors.successSnackbarBackground,
.error => context.appColors.errorSnackbarBackground,
.info => context.appColors.infoSnackbarBackground,
};
}
}
@@ -290,17 +290,17 @@ class _Icon extends StatelessWidget {
@override
Widget build(BuildContext context) {
return switch (type) {
TypeSnackBar.success => const Icon(
.success => const Icon(
Icons.check_circle,
color: Colors.white,
size: 32,
),
TypeSnackBar.error => const Icon(
.error => const Icon(
Icons.error,
color: Colors.white,
size: 32,
),
TypeSnackBar.info => const Icon(
.info => const Icon(
Icons.info,
color: Colors.white,
size: 32,