From 1d9372dd1172f554aa0ad67f41a6b5cf8aaf6323 Mon Sep 17 00:00:00 2001 From: StarProxima Date: Thu, 20 Apr 2023 01:38:29 +0300 Subject: [PATCH] Set bottomRight by default in LessonCardLessonTypePosition --- .../app_settings/app_settings_view_state.dart | 2 +- ...page_lesson_card_lesson_type_position.dart | 24 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/features/settings/models/app_settings/app_settings_view_state.dart b/lib/features/settings/models/app_settings/app_settings_view_state.dart index f7bbe9c..229270b 100644 --- a/lib/features/settings/models/app_settings/app_settings_view_state.dart +++ b/lib/features/settings/models/app_settings/app_settings_view_state.dart @@ -23,7 +23,7 @@ class AppSettings with _$AppSettings { @Default(AppLessonColorsMode.cube) AppLessonColorsMode lessonColorsMode, @HiveField(2) - @Default(LessonCardLessonTypePosition.afterBottomLeftBlock) + @Default(LessonCardLessonTypePosition.bottomRight) LessonCardLessonTypePosition lessonCardLessonTypePosition, @HiveField(3) @Default(LessonCardRecessDisplayCondition.always) diff --git a/lib/features/settings/ui/widgets/settings_page_lesson_card_lesson_type_position.dart b/lib/features/settings/ui/widgets/settings_page_lesson_card_lesson_type_position.dart index 0fa3486..f916e05 100644 --- a/lib/features/settings/ui/widgets/settings_page_lesson_card_lesson_type_position.dart +++ b/lib/features/settings/ui/widgets/settings_page_lesson_card_lesson_type_position.dart @@ -21,30 +21,30 @@ class _SettingsPageLessonCardLessonTypePosition extends ConsumerWidget { settingsNotifier.editLessonCardLessonTypePosition(value), items: const [ AppRadioSelectorItem( - title: Text('После нижнего левого блока'), + title: Text('Снизу справа'), description: Text('Расположение по умолчанию'), - value: LessonCardLessonTypePosition.afterBottomLeftBlock, - ), - AppRadioSelectorItem( - title: Text('После верхнего левого блока'), - value: LessonCardLessonTypePosition.afterTopLeftBlock, + value: LessonCardLessonTypePosition.bottomRight, ), AppRadioSelectorItem( title: Text('Снизу слева'), value: LessonCardLessonTypePosition.bottomLeft, ), AppRadioSelectorItem( - title: Text('Сверху справа'), - value: LessonCardLessonTypePosition.topRight, - ), - AppRadioSelectorItem( - title: Text('Снизу справа'), - value: LessonCardLessonTypePosition.bottomRight, + title: Text('После нижнего левого блока'), + value: LessonCardLessonTypePosition.afterBottomLeftBlock, ), AppRadioSelectorItem( title: Text('Перед нижним правым блоком'), value: LessonCardLessonTypePosition.beforeBottomRightBlock, ), + AppRadioSelectorItem( + title: Text('Сверху справа'), + value: LessonCardLessonTypePosition.topRight, + ), + AppRadioSelectorItem( + title: Text('После верхнего левого блока'), + value: LessonCardLessonTypePosition.afterTopLeftBlock, + ), AppRadioSelectorItem( title: Text('На идикаторе'), description: Text('Вертикальное расположение слева'),