From c4f5780dab26d33c44592b3e3038179cf8451eca Mon Sep 17 00:00:00 2001 From: ZhuJHua <1624109111@qq.com> Date: Tue, 21 Jan 2025 10:00:44 +0800 Subject: [PATCH] refactor(*): organize the project structure and use absolute paths uniformly --- lib/api/api.dart | 20 ++--- lib/common/values/colors.dart | 3 +- lib/common/values/language.dart | 2 +- .../ask_question/ask_question_logic.dart | 6 +- .../ask_question/ask_question_state.dart | 2 +- .../ask_question/ask_question_view.dart | 2 +- .../audio_player/audio_player_logic.dart | 2 +- lib/components/base/button.dart | 2 +- lib/components/base/sheet.dart | 2 +- lib/components/base/text.dart | 4 +- .../category_add/category_add_logic.dart | 10 +-- .../category_add/category_add_state.dart | 2 +- .../category_add/category_add_view.dart | 2 +- .../category_choice_sheet_logic.dart | 6 +- .../category_choice_sheet_state.dart | 3 +- .../category_choice_sheet_view.dart | 4 +- .../color_dialog/color_dialog_logic.dart | 6 +- .../color_dialog/color_dialog_state.dart | 3 +- .../color_dialog/color_dialog_view.dart | 4 +- .../color_sheet/color_sheet_logic.dart | 6 +- .../color_sheet/color_sheet_state.dart | 2 +- .../color_sheet/color_sheet_view.dart | 10 +-- lib/components/dashboard/dashboard_logic.dart | 9 +- lib/components/dashboard/dashboard_view.dart | 4 +- lib/components/dialog/dialog.dart | 3 +- .../diary_card/basic_card_logic.dart | 13 ++- .../diary_card/calendar_diary_card_view.dart | 9 +- .../diary_card/grid_diary_card_view.dart | 9 +- .../diary_card/list_diary_card_view.dart | 9 +- .../diary_tab_view/diary_tab_view_logic.dart | 4 +- .../diary_tab_view/diary_tab_view_state.dart | 2 +- .../diary_tab_view/diary_tab_view_view.dart | 10 +-- .../keyboard_listener/keyboard_listener.dart | 3 +- .../language_dialog_logic.dart | 6 +- .../language_dialog/language_dialog_view.dart | 4 +- .../local_send_client_logic.dart | 16 ++-- .../local_send_client_state.dart | 2 +- .../local_send_client_view.dart | 6 +- .../local_send/local_send_logic.dart | 4 +- .../local_send_server_logic.dart | 15 ++-- .../local_send_server_view.dart | 4 +- .../local_send/local_send_view.dart | 6 +- .../login_form/login_form_logic.dart | 6 +- .../login_form/login_form_view.dart | 2 +- lib/components/media/media_audio_view.dart | 2 +- lib/components/media/media_image_view.dart | 5 +- lib/components/media/media_video_view.dart | 5 +- lib/components/mood_icon/mood_icon_view.dart | 2 +- lib/components/quill_embed/audio_embed.dart | 2 +- lib/components/quill_embed/image_embed.dart | 5 +- lib/components/quill_embed/video_embed.dart | 5 +- .../record_sheet/record_sheet_logic.dart | 8 +- .../record_sheet/record_sheet_view.dart | 4 +- .../register_form/register_form_logic.dart | 6 +- .../register_form/register_form_view.dart | 2 +- .../remove_password_logic.dart | 6 +- .../remove_password_state.dart | 2 +- .../remove_password/remove_password_view.dart | 4 +- .../search_card/search_card_logic.dart | 6 +- .../search_card/search_card_view.dart | 4 +- .../search_sheet/search_sheet_logic.dart | 2 +- .../search_sheet/search_sheet_state.dart | 2 +- .../search_sheet/search_sheet_view.dart | 8 +- .../set_password/set_password_logic.dart | 6 +- .../set_password/set_password_view.dart | 2 +- lib/components/side_bar/side_bar_logic.dart | 12 +-- lib/components/side_bar/side_bar_state.dart | 5 +- lib/components/side_bar/side_bar_view.dart | 8 +- .../sync_dash_board_logic.dart | 5 +- .../sync_dash_board/sync_dash_board_view.dart | 8 +- .../web_dav_dashboard_logic.dart | 14 +-- .../web_dav_dashboard_state.dart | 5 +- .../web_dav_dashboard_view.dart | 10 +-- .../theme_mode_dialog_logic.dart | 4 +- .../theme_mode_dialog_state.dart | 2 +- .../theme_mode_dialog_view.dart | 2 +- lib/components/tile/setting_tile.dart | 2 +- .../update_dialog/update_dialog_logic.dart | 2 +- .../update_dialog/update_dialog_view.dart | 7 +- .../video_player/video_player_view.dart | 2 +- lib/components/web_dav/web_dav_logic.dart | 8 +- lib/components/web_dav/web_dav_state.dart | 7 +- lib/components/web_dav/web_dav_view.dart | 8 +- .../window_buttons/window_buttons.dart | 4 +- lib/main.dart | 28 +++--- lib/pages/about/about_logic.dart | 4 +- lib/pages/about/about_view.dart | 8 +- lib/pages/analyse/analyse_logic.dart | 10 +-- lib/pages/analyse/analyse_view.dart | 10 +-- lib/pages/backup_sync/backup_sync_logic.dart | 7 +- lib/pages/backup_sync/backup_sync_view.dart | 10 +-- .../category_manager_logic.dart | 8 +- .../category_manager_state.dart | 2 +- .../category_manager_view.dart | 8 +- .../diary_details/diary_details_logic.dart | 6 +- .../diary_details/diary_details_state.dart | 5 +- .../diary_details/diary_details_view.dart | 24 ++--- .../diary_setting/diary_setting_logic.dart | 2 +- .../diary_setting/diary_setting_state.dart | 3 +- .../diary_setting/diary_setting_view.dart | 6 +- lib/pages/draw/draw_logic.dart | 2 +- lib/pages/draw/draw_view.dart | 4 +- lib/pages/edit/edit_logic.dart | 34 +++---- lib/pages/edit/edit_state.dart | 7 +- lib/pages/edit/edit_view.dart | 34 +++---- lib/pages/font/font_logic.dart | 10 +-- lib/pages/font/font_state.dart | 3 +- lib/pages/font/font_view.dart | 12 +-- lib/pages/home/assistant/assistant_logic.dart | 10 +-- lib/pages/home/assistant/assistant_state.dart | 4 +- lib/pages/home/assistant/assistant_view.dart | 8 +- lib/pages/home/calendar/calendar_logic.dart | 4 +- lib/pages/home/calendar/calendar_state.dart | 2 +- lib/pages/home/calendar/calendar_view.dart | 10 +-- lib/pages/home/diary/diary_logic.dart | 18 ++-- lib/pages/home/diary/diary_state.dart | 11 ++- lib/pages/home/diary/diary_view.dart | 22 ++--- lib/pages/home/home_logic.dart | 12 +-- lib/pages/home/home_view.dart | 14 +-- lib/pages/home/media/media_logic.dart | 8 +- lib/pages/home/media/media_state.dart | 2 +- lib/pages/home/media/media_view.dart | 16 ++-- lib/pages/home/setting/setting_logic.dart | 14 +-- lib/pages/home/setting/setting_state.dart | 5 +- lib/pages/home/setting/setting_view.dart | 26 +++--- lib/pages/image/image_view.dart | 6 +- lib/pages/laboratory/laboratory_logic.dart | 7 +- lib/pages/laboratory/laboratory_view.dart | 4 +- lib/pages/lock/lock_logic.dart | 4 +- lib/pages/lock/lock_state.dart | 3 +- lib/pages/lock/lock_view.dart | 4 +- lib/pages/login/login_view.dart | 4 +- lib/pages/map/map_logic.dart | 12 +-- lib/pages/map/map_state.dart | 5 +- lib/pages/map/map_view.dart | 8 +- lib/pages/recycle/recycle_logic.dart | 12 +-- lib/pages/recycle/recycle_state.dart | 2 +- lib/pages/recycle/recycle_view.dart | 6 +- lib/pages/share/share_logic.dart | 2 +- lib/pages/share/share_state.dart | 2 +- lib/pages/share/share_view.dart | 8 +- lib/pages/sponsor/sponsor_view.dart | 4 +- lib/pages/start/start_logic.dart | 9 +- lib/pages/start/start_view.dart | 2 +- lib/pages/user/user_logic.dart | 4 +- lib/pages/user/user_state.dart | 3 +- lib/pages/user/user_view.dart | 2 +- lib/pages/video/video_view.dart | 4 +- lib/pages/web_view/web_view_view.dart | 4 +- lib/router/app_pages.dart | 90 +++++++++---------- lib/utils/data/isar.dart | 18 ++-- lib/utils/data/pref.dart | 12 +-- lib/utils/data/supabase.dart | 4 +- lib/utils/http_util.dart | 2 +- lib/utils/layout_util.dart | 2 +- lib/utils/literunner.dart | 4 +- lib/utils/log_util.dart | 2 +- lib/utils/media_util.dart | 6 +- lib/utils/update_util.dart | 4 +- lib/utils/webdav_util.dart | 6 +- pubspec.lock | 4 +- pubspec.yaml | 4 +- 162 files changed, 566 insertions(+), 598 deletions(-) diff --git a/lib/api/api.dart b/lib/api/api.dart index e97bbf2..ef55ac2 100644 --- a/lib/api/api.dart +++ b/lib/api/api.dart @@ -5,16 +5,16 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:geolocator/geolocator.dart'; import 'package:latlong2/latlong.dart'; -import 'package:mood_diary/common/models/geo.dart'; -import 'package:mood_diary/common/models/github.dart'; -import 'package:mood_diary/common/models/hitokoto.dart'; -import 'package:mood_diary/common/models/hunyuan.dart'; -import 'package:mood_diary/common/models/image.dart'; -import 'package:mood_diary/common/models/weather.dart'; -import 'package:mood_diary/main.dart'; -import 'package:mood_diary/utils/http_util.dart'; -import 'package:mood_diary/utils/notice_util.dart'; -import 'package:mood_diary/utils/signature_util.dart'; +import 'package:moodiary/common/models/geo.dart'; +import 'package:moodiary/common/models/github.dart'; +import 'package:moodiary/common/models/hitokoto.dart'; +import 'package:moodiary/common/models/hunyuan.dart'; +import 'package:moodiary/common/models/image.dart'; +import 'package:moodiary/common/models/weather.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/utils/http_util.dart'; +import 'package:moodiary/utils/notice_util.dart'; +import 'package:moodiary/utils/signature_util.dart'; import 'package:refreshed/refreshed.dart'; import '../utils/data/pref.dart'; diff --git a/lib/common/values/colors.dart b/lib/common/values/colors.dart index 9521c98..1ad19eb 100644 --- a/lib/common/values/colors.dart +++ b/lib/common/values/colors.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; - -import '../../main.dart'; +import 'package:moodiary/main.dart'; enum AppColorType { common(0), diff --git a/lib/common/values/language.dart b/lib/common/values/language.dart index fdea68c..3e180aa 100644 --- a/lib/common/values/language.dart +++ b/lib/common/values/language.dart @@ -1,4 +1,4 @@ -import 'package:mood_diary/main.dart'; +import 'package:moodiary/main.dart'; enum Language { system('system'), diff --git a/lib/components/ask_question/ask_question_logic.dart b/lib/components/ask_question/ask_question_logic.dart index 005ad58..0debc06 100644 --- a/lib/components/ask_question/ask_question_logic.dart +++ b/lib/components/ask_question/ask_question_logic.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/common/values/keyboard_state.dart'; -import 'package:mood_diary/utils/literunner.dart'; -import 'package:mood_diary/utils/tokenization.dart'; +import 'package:moodiary/common/values/keyboard_state.dart'; +import 'package:moodiary/utils/literunner.dart'; +import 'package:moodiary/utils/tokenization.dart'; import 'package:refreshed/refreshed.dart'; import 'ask_question_state.dart'; diff --git a/lib/components/ask_question/ask_question_state.dart b/lib/components/ask_question/ask_question_state.dart index 72baec0..6f09003 100644 --- a/lib/components/ask_question/ask_question_state.dart +++ b/lib/components/ask_question/ask_question_state.dart @@ -1,4 +1,4 @@ -import 'package:mood_diary/common/values/keyboard_state.dart'; +import 'package:moodiary/common/values/keyboard_state.dart'; import 'package:refreshed/refreshed.dart'; class AskQuestionState { diff --git a/lib/components/ask_question/ask_question_view.dart b/lib/components/ask_question/ask_question_view.dart index 0dda6d3..2982125 100644 --- a/lib/components/ask_question/ask_question_view.dart +++ b/lib/components/ask_question/ask_question_view.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/common/values/border.dart'; +import 'package:moodiary/common/values/border.dart'; import 'package:refreshed/refreshed.dart'; import 'ask_question_logic.dart'; diff --git a/lib/components/audio_player/audio_player_logic.dart b/lib/components/audio_player/audio_player_logic.dart index d9282d0..71eff4d 100644 --- a/lib/components/audio_player/audio_player_logic.dart +++ b/lib/components/audio_player/audio_player_logic.dart @@ -1,6 +1,6 @@ import 'package:audioplayers/audioplayers.dart'; import 'package:flutter/animation.dart'; -import 'package:mood_diary/pages/edit/edit_logic.dart'; +import 'package:moodiary/pages/edit/edit_logic.dart'; import 'package:refreshed/refreshed.dart'; import 'audio_player_state.dart'; diff --git a/lib/components/base/button.dart b/lib/components/base/button.dart index 9364474..2688f3b 100644 --- a/lib/components/base/button.dart +++ b/lib/components/base/button.dart @@ -1,7 +1,7 @@ import 'dart:ui'; import 'package:flutter/material.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; class FrostedGlassButton extends StatelessWidget { diff --git a/lib/components/base/sheet.dart b/lib/components/base/sheet.dart index a9e078c..3dad50b 100644 --- a/lib/components/base/sheet.dart +++ b/lib/components/base/sheet.dart @@ -2,7 +2,7 @@ import 'dart:math'; import 'package:flutter/material.dart'; import 'package:modal_bottom_sheet/modal_bottom_sheet.dart'; -import 'package:mood_diary/common/values/border.dart'; +import 'package:moodiary/common/values/border.dart'; class FloatingModal extends StatelessWidget { final Widget child; diff --git a/lib/components/base/text.dart b/lib/components/base/text.dart index acc8271..5b99e8d 100644 --- a/lib/components/base/text.dart +++ b/lib/components/base/text.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/components/base/marquee.dart'; -import 'package:mood_diary/utils/data/pref.dart'; +import 'package:moodiary/components/base/marquee.dart'; +import 'package:moodiary/utils/data/pref.dart'; Widget buildAdaptiveText({ required String text, diff --git a/lib/components/category_add/category_add_logic.dart b/lib/components/category_add/category_add_logic.dart index b47f8ee..b16756e 100644 --- a/lib/components/category_add/category_add_logic.dart +++ b/lib/components/category_add/category_add_logic.dart @@ -1,11 +1,11 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/common/models/isar/category.dart'; -import 'package:mood_diary/pages/edit/edit_logic.dart'; -import 'package:mood_diary/pages/home/diary/diary_logic.dart'; +import 'package:moodiary/common/models/isar/category.dart'; +import 'package:moodiary/pages/edit/edit_logic.dart'; +import 'package:moodiary/pages/home/diary/diary_logic.dart'; +import 'package:moodiary/utils/data/isar.dart'; +import 'package:moodiary/utils/notice_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/isar.dart'; -import '../../utils/notice_util.dart'; import 'category_add_state.dart'; class CategoryAddLogic extends GetxController { diff --git a/lib/components/category_add/category_add_state.dart b/lib/components/category_add/category_add_state.dart index 384fd21..12b9885 100644 --- a/lib/components/category_add/category_add_state.dart +++ b/lib/components/category_add/category_add_state.dart @@ -1,4 +1,4 @@ -import 'package:mood_diary/common/models/isar/category.dart'; +import 'package:moodiary/common/models/isar/category.dart'; import 'package:refreshed/refreshed.dart'; class CategoryAddState { diff --git a/lib/components/category_add/category_add_view.dart b/lib/components/category_add/category_add_view.dart index 585035f..b6988b5 100644 --- a/lib/components/category_add/category_add_view.dart +++ b/lib/components/category_add/category_add_view.dart @@ -1,6 +1,6 @@ import 'package:adaptive_dialog/adaptive_dialog.dart'; import 'package:flutter/material.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'category_add_logic.dart'; diff --git a/lib/components/category_choice_sheet/category_choice_sheet_logic.dart b/lib/components/category_choice_sheet/category_choice_sheet_logic.dart index 851f173..39e48f2 100644 --- a/lib/components/category_choice_sheet/category_choice_sheet_logic.dart +++ b/lib/components/category_choice_sheet/category_choice_sheet_logic.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/router/app_routes.dart'; +import 'package:moodiary/pages/home/diary/diary_logic.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/utils/data/isar.dart'; import 'package:refreshed/refreshed.dart'; -import '../../pages/home/diary/diary_logic.dart'; -import '../../utils/data/isar.dart'; import 'category_choice_sheet_state.dart'; class CategoryChoiceSheetLogic extends GetxController { diff --git a/lib/components/category_choice_sheet/category_choice_sheet_state.dart b/lib/components/category_choice_sheet/category_choice_sheet_state.dart index 83f4af3..d4426e5 100644 --- a/lib/components/category_choice_sheet/category_choice_sheet_state.dart +++ b/lib/components/category_choice_sheet/category_choice_sheet_state.dart @@ -1,7 +1,6 @@ +import 'package:moodiary/common/models/isar/category.dart'; import 'package:refreshed/refreshed.dart'; -import '../../common/models/isar/category.dart'; - class CategoryChoiceSheetState { RxList categoryList = [].obs; diff --git a/lib/components/category_choice_sheet/category_choice_sheet_view.dart b/lib/components/category_choice_sheet/category_choice_sheet_view.dart index c7e0560..278f1d0 100644 --- a/lib/components/category_choice_sheet/category_choice_sheet_view.dart +++ b/lib/components/category_choice_sheet/category_choice_sheet_view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/components/loading/loading.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/components/loading/loading.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'category_choice_sheet_logic.dart'; diff --git a/lib/components/color_dialog/color_dialog_logic.dart b/lib/components/color_dialog/color_dialog_logic.dart index 0ddabb1..a90e3cd 100644 --- a/lib/components/color_dialog/color_dialog_logic.dart +++ b/lib/components/color_dialog/color_dialog_logic.dart @@ -1,10 +1,10 @@ import 'dart:ui'; -import 'package:mood_diary/pages/home/setting/setting_logic.dart'; -import 'package:mood_diary/utils/theme_util.dart'; +import 'package:moodiary/pages/home/setting/setting_logic.dart'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/theme_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/pref.dart'; import 'color_dialog_state.dart'; class ColorDialogLogic extends GetxController { diff --git a/lib/components/color_dialog/color_dialog_state.dart b/lib/components/color_dialog/color_dialog_state.dart index d8704fb..99478aa 100644 --- a/lib/components/color_dialog/color_dialog_state.dart +++ b/lib/components/color_dialog/color_dialog_state.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; - -import '../../utils/data/pref.dart'; +import 'package:moodiary/utils/data/pref.dart'; class ColorDialogState { bool supportDynamic = PrefUtil.getValue('supportDynamicColor')!; diff --git a/lib/components/color_dialog/color_dialog_view.dart b/lib/components/color_dialog/color_dialog_view.dart index dbafd1a..469b6e1 100644 --- a/lib/components/color_dialog/color_dialog_view.dart +++ b/lib/components/color_dialog/color_dialog_view.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/common/values/colors.dart'; +import 'package:moodiary/common/values/colors.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; -import '../../main.dart'; import 'color_dialog_logic.dart'; class ColorDialogComponent extends StatelessWidget { diff --git a/lib/components/color_sheet/color_sheet_logic.dart b/lib/components/color_sheet/color_sheet_logic.dart index c54d527..f7a1a31 100644 --- a/lib/components/color_sheet/color_sheet_logic.dart +++ b/lib/components/color_sheet/color_sheet_logic.dart @@ -1,10 +1,10 @@ import 'dart:ui'; +import 'package:moodiary/pages/home/setting/setting_logic.dart'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/theme_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../pages/home/setting/setting_logic.dart'; -import '../../utils/data/pref.dart'; -import '../../utils/theme_util.dart'; import 'color_sheet_state.dart'; class ColorSheetLogic extends GetxController { diff --git a/lib/components/color_sheet/color_sheet_state.dart b/lib/components/color_sheet/color_sheet_state.dart index afb6c19..565a3ce 100644 --- a/lib/components/color_sheet/color_sheet_state.dart +++ b/lib/components/color_sheet/color_sheet_state.dart @@ -1,6 +1,6 @@ import 'dart:ui'; -import '../../utils/data/pref.dart'; +import 'package:moodiary/utils/data/pref.dart'; class ColorSheetState { bool supportDynamic = PrefUtil.getValue('supportDynamicColor')!; diff --git a/lib/components/color_sheet/color_sheet_view.dart b/lib/components/color_sheet/color_sheet_view.dart index fdf8c75..51d59ed 100644 --- a/lib/components/color_sheet/color_sheet_view.dart +++ b/lib/components/color_sheet/color_sheet_view.dart @@ -1,12 +1,12 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:mood_diary/common/values/colors.dart'; -import 'package:mood_diary/components/base/marquee.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/common/values/border.dart'; +import 'package:moodiary/common/values/colors.dart'; +import 'package:moodiary/components/base/marquee.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/utils/data/pref.dart'; import 'package:refreshed/refreshed.dart'; -import '../../common/values/border.dart'; -import '../../utils/data/pref.dart'; import 'color_sheet_logic.dart'; import 'color_sheet_state.dart'; diff --git a/lib/components/dashboard/dashboard_logic.dart b/lib/components/dashboard/dashboard_logic.dart index 5dd0d1a..c3d5d63 100644 --- a/lib/components/dashboard/dashboard_logic.dart +++ b/lib/components/dashboard/dashboard_logic.dart @@ -1,13 +1,12 @@ import 'dart:async'; import 'package:flutter/foundation.dart'; -import 'package:mood_diary/router/app_routes.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/utils/array_util.dart'; +import 'package:moodiary/utils/data/isar.dart'; +import 'package:moodiary/utils/data/pref.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/array_util.dart'; -import '../../utils/data/isar.dart'; -import '../../utils/data/pref.dart'; - class DashboardLogic extends GetxController { //日记数量 RxString diaryCount = ''.obs; diff --git a/lib/components/dashboard/dashboard_view.dart b/lib/components/dashboard/dashboard_view.dart index 408d376..9fd8fa5 100644 --- a/lib/components/dashboard/dashboard_view.dart +++ b/lib/components/dashboard/dashboard_view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/components/base/text.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/components/base/text.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'dashboard_logic.dart'; diff --git a/lib/components/dialog/dialog.dart b/lib/components/dialog/dialog.dart index 9fd8306..73ecec3 100644 --- a/lib/components/dialog/dialog.dart +++ b/lib/components/dialog/dialog.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; - -import '../../common/values/border.dart'; +import 'package:moodiary/common/values/border.dart'; class OptionDialog extends StatelessWidget { final String title; diff --git a/lib/components/diary_card/basic_card_logic.dart b/lib/components/diary_card/basic_card_logic.dart index ce790bf..7f2b549 100644 --- a/lib/components/diary_card/basic_card_logic.dart +++ b/lib/components/diary_card/basic_card_logic.dart @@ -1,13 +1,12 @@ import 'package:flutter/services.dart'; -import 'package:mood_diary/common/models/isar/diary.dart'; -import 'package:mood_diary/components/diary_tab_view/diary_tab_view_logic.dart'; -import 'package:mood_diary/pages/diary_details/diary_details_logic.dart'; -import 'package:mood_diary/pages/home/diary/diary_logic.dart'; -import 'package:mood_diary/router/app_routes.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/components/diary_tab_view/diary_tab_view_logic.dart'; +import 'package:moodiary/pages/diary_details/diary_details_logic.dart'; +import 'package:moodiary/pages/home/diary/diary_logic.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/utils/data/isar.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/isar.dart'; - mixin BasicCardLogic { Future toDiary(Diary diary) async { HapticFeedback.mediumImpact(); diff --git a/lib/components/diary_card/calendar_diary_card_view.dart b/lib/components/diary_card/calendar_diary_card_view.dart index 62b4c0a..bf6bbd4 100644 --- a/lib/components/diary_card/calendar_diary_card_view.dart +++ b/lib/components/diary_card/calendar_diary_card_view.dart @@ -2,11 +2,10 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; -import 'package:mood_diary/common/models/isar/diary.dart'; -import 'package:mood_diary/common/values/border.dart'; -import 'package:mood_diary/components/diary_card/basic_card_logic.dart'; - -import '../../utils/file_util.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/common/values/border.dart'; +import 'package:moodiary/components/diary_card/basic_card_logic.dart'; +import 'package:moodiary/utils/file_util.dart'; class CalendarDiaryCardComponent extends StatelessWidget with BasicCardLogic { const CalendarDiaryCardComponent({super.key, required this.diary}); diff --git a/lib/components/diary_card/grid_diary_card_view.dart b/lib/components/diary_card/grid_diary_card_view.dart index 0cdb273..8a81a94 100644 --- a/lib/components/diary_card/grid_diary_card_view.dart +++ b/lib/components/diary_card/grid_diary_card_view.dart @@ -2,11 +2,10 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; -import 'package:mood_diary/common/models/isar/diary.dart'; -import 'package:mood_diary/common/values/border.dart'; -import 'package:mood_diary/components/diary_card/basic_card_logic.dart'; - -import '../../utils/file_util.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/common/values/border.dart'; +import 'package:moodiary/components/diary_card/basic_card_logic.dart'; +import 'package:moodiary/utils/file_util.dart'; class GirdDiaryCardComponent extends StatelessWidget with BasicCardLogic { const GirdDiaryCardComponent({super.key, required this.diary}); diff --git a/lib/components/diary_card/list_diary_card_view.dart b/lib/components/diary_card/list_diary_card_view.dart index acccfc7..c8709aa 100644 --- a/lib/components/diary_card/list_diary_card_view.dart +++ b/lib/components/diary_card/list_diary_card_view.dart @@ -2,11 +2,10 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; -import 'package:mood_diary/common/models/isar/diary.dart'; -import 'package:mood_diary/common/values/border.dart'; -import 'package:mood_diary/components/diary_card/basic_card_logic.dart'; - -import '../../utils/file_util.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/common/values/border.dart'; +import 'package:moodiary/components/diary_card/basic_card_logic.dart'; +import 'package:moodiary/utils/file_util.dart'; class ListDiaryCardComponent extends StatelessWidget with BasicCardLogic { const ListDiaryCardComponent( diff --git a/lib/components/diary_tab_view/diary_tab_view_logic.dart b/lib/components/diary_tab_view/diary_tab_view_logic.dart index f93f74e..1bea517 100644 --- a/lib/components/diary_tab_view/diary_tab_view_logic.dart +++ b/lib/components/diary_tab_view/diary_tab_view_logic.dart @@ -1,7 +1,7 @@ -import 'package:mood_diary/pages/home/diary/diary_logic.dart'; +import 'package:moodiary/pages/home/diary/diary_logic.dart'; +import 'package:moodiary/utils/data/isar.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/isar.dart'; import 'diary_tab_view_state.dart'; class DiaryTabViewLogic extends GetxController { diff --git a/lib/components/diary_tab_view/diary_tab_view_state.dart b/lib/components/diary_tab_view/diary_tab_view_state.dart index cd8b705..b2ee972 100644 --- a/lib/components/diary_tab_view/diary_tab_view_state.dart +++ b/lib/components/diary_tab_view/diary_tab_view_state.dart @@ -1,4 +1,4 @@ -import 'package:mood_diary/common/models/isar/diary.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; class DiaryTabViewState { List diaryList = []; diff --git a/lib/components/diary_tab_view/diary_tab_view_view.dart b/lib/components/diary_tab_view/diary_tab_view_view.dart index 7a6834d..40c9203 100644 --- a/lib/components/diary_tab_view/diary_tab_view_view.dart +++ b/lib/components/diary_tab_view/diary_tab_view_view.dart @@ -1,13 +1,13 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/common/values/view_mode.dart'; -import 'package:mood_diary/components/diary_card/grid_diary_card_view.dart'; -import 'package:mood_diary/components/diary_card/list_diary_card_view.dart'; -import 'package:mood_diary/components/loading/loading.dart'; +import 'package:moodiary/common/values/view_mode.dart'; +import 'package:moodiary/components/diary_card/grid_diary_card_view.dart'; +import 'package:moodiary/components/diary_card/list_diary_card_view.dart'; +import 'package:moodiary/components/loading/loading.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'package:sliver_tools/sliver_tools.dart'; import 'package:waterfall_flow/waterfall_flow.dart'; -import '../../main.dart'; import 'diary_tab_view_logic.dart'; class DiaryTabViewComponent extends StatelessWidget { diff --git a/lib/components/keyboard_listener/keyboard_listener.dart b/lib/components/keyboard_listener/keyboard_listener.dart index 6b47e84..623499b 100644 --- a/lib/components/keyboard_listener/keyboard_listener.dart +++ b/lib/components/keyboard_listener/keyboard_listener.dart @@ -1,8 +1,7 @@ import 'dart:ui'; import 'package:flutter/widgets.dart'; - -import '../../common/values/keyboard_state.dart'; +import 'package:moodiary/common/values/keyboard_state.dart'; class KeyboardObserver with WidgetsBindingObserver { /// 键盘高度变化回调 diff --git a/lib/components/language_dialog/language_dialog_logic.dart b/lib/components/language_dialog/language_dialog_logic.dart index eac4cd4..50b39e9 100644 --- a/lib/components/language_dialog/language_dialog_logic.dart +++ b/lib/components/language_dialog/language_dialog_logic.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:intl/find_locale.dart'; import 'package:intl/intl.dart'; -import 'package:mood_diary/common/values/language.dart'; -import 'package:mood_diary/pages/home/setting/setting_logic.dart'; -import 'package:mood_diary/utils/data/pref.dart'; +import 'package:moodiary/common/values/language.dart'; +import 'package:moodiary/pages/home/setting/setting_logic.dart'; +import 'package:moodiary/utils/data/pref.dart'; import 'package:refreshed/refreshed.dart'; class LanguageDialogLogic extends GetxController { diff --git a/lib/components/language_dialog/language_dialog_view.dart b/lib/components/language_dialog/language_dialog_view.dart index beea512..12b7e18 100644 --- a/lib/components/language_dialog/language_dialog_view.dart +++ b/lib/components/language_dialog/language_dialog_view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/common/values/language.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/common/values/language.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'language_dialog_logic.dart'; diff --git a/lib/components/local_send/local_send_client/local_send_client_logic.dart b/lib/components/local_send/local_send_client/local_send_client_logic.dart index f0817bf..2927992 100644 --- a/lib/components/local_send/local_send_client/local_send_client_logic.dart +++ b/lib/components/local_send/local_send_client/local_send_client_logic.dart @@ -5,16 +5,16 @@ import 'dart:io'; import 'package:dio/dio.dart' as dio; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; -import 'package:mood_diary/common/models/isar/diary.dart'; -import 'package:mood_diary/components/local_send/local_send_logic.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/components/local_send/local_send_logic.dart'; +import 'package:moodiary/utils/data/isar.dart'; +import 'package:moodiary/utils/file_util.dart'; +import 'package:moodiary/utils/http_util.dart'; +import 'package:moodiary/utils/log_util.dart'; +import 'package:moodiary/utils/notice_util.dart'; +import 'package:moodiary/utils/send_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../../utils/data/isar.dart'; -import '../../../utils/file_util.dart'; -import '../../../utils/http_util.dart'; -import '../../../utils/log_util.dart'; -import '../../../utils/notice_util.dart'; -import '../../../utils/send_util.dart'; import 'local_send_client_state.dart'; class LocalSendClientLogic extends GetxController { diff --git a/lib/components/local_send/local_send_client/local_send_client_state.dart b/lib/components/local_send/local_send_client/local_send_client_state.dart index 3f61273..707b230 100644 --- a/lib/components/local_send/local_send_client/local_send_client_state.dart +++ b/lib/components/local_send/local_send_client/local_send_client_state.dart @@ -1,4 +1,4 @@ -import 'package:mood_diary/common/models/isar/diary.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; import 'package:refreshed/refreshed.dart'; class LocalSendClientState { diff --git a/lib/components/local_send/local_send_client/local_send_client_view.dart b/lib/components/local_send/local_send_client/local_send_client_view.dart index a4814a0..b8d78d1 100644 --- a/lib/components/local_send/local_send_client/local_send_client_view.dart +++ b/lib/components/local_send/local_send_client/local_send_client_view.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; -import 'package:mood_diary/components/tile/setting_tile.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/components/tile/setting_tile.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/utils/file_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../../utils/file_util.dart'; import 'local_send_client_logic.dart'; import 'local_send_client_state.dart'; diff --git a/lib/components/local_send/local_send_logic.dart b/lib/components/local_send/local_send_logic.dart index 9a9cc76..548ffb2 100644 --- a/lib/components/local_send/local_send_logic.dart +++ b/lib/components/local_send/local_send_logic.dart @@ -1,8 +1,8 @@ import 'dart:io'; import 'package:connectivity_plus/connectivity_plus.dart'; -import 'package:mood_diary/components/local_send/local_send_client/local_send_client_logic.dart'; -import 'package:mood_diary/components/local_send/local_send_server/local_send_server_logic.dart'; +import 'package:moodiary/components/local_send/local_send_client/local_send_client_logic.dart'; +import 'package:moodiary/components/local_send/local_send_server/local_send_server_logic.dart'; import 'package:network_info_plus/network_info_plus.dart'; import 'package:refreshed/refreshed.dart'; diff --git a/lib/components/local_send/local_send_server/local_send_server_logic.dart b/lib/components/local_send/local_send_server/local_send_server_logic.dart index 2750c40..1c68f13 100644 --- a/lib/components/local_send/local_send_server/local_send_server_logic.dart +++ b/lib/components/local_send/local_send_server/local_send_server_logic.dart @@ -3,19 +3,18 @@ import 'dart:io'; import 'package:faker/faker.dart'; import 'package:flutter/foundation.dart' as flutter; -import 'package:mood_diary/common/models/isar/category.dart'; -import 'package:mood_diary/common/models/isar/diary.dart'; -import 'package:mood_diary/components/local_send/local_send_logic.dart'; +import 'package:moodiary/common/models/isar/category.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/components/local_send/local_send_logic.dart'; +import 'package:moodiary/pages/home/diary/diary_logic.dart'; +import 'package:moodiary/utils/data/isar.dart'; +import 'package:moodiary/utils/file_util.dart'; +import 'package:moodiary/utils/log_util.dart'; import 'package:refreshed/refreshed.dart'; import 'package:shelf/shelf.dart' as shelf; import 'package:shelf/shelf_io.dart'; import 'package:shelf_multipart/shelf_multipart.dart'; -import '../../../pages/home/diary/diary_logic.dart'; -import '../../../utils/data/isar.dart'; -import '../../../utils/file_util.dart'; -import '../../../utils/log_util.dart'; - class LocalSendServerLogic extends GetxController { late RawDatagramSocket socket; HttpServer? httpServer; diff --git a/lib/components/local_send/local_send_server/local_send_server_view.dart b/lib/components/local_send/local_send_server/local_send_server_view.dart index aba4b3b..33d4a8b 100644 --- a/lib/components/local_send/local_send_server/local_send_server_view.dart +++ b/lib/components/local_send/local_send_server/local_send_server_view.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; -import 'package:mood_diary/components/tile/setting_tile.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/components/tile/setting_tile.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'local_send_server_logic.dart'; diff --git a/lib/components/local_send/local_send_view.dart b/lib/components/local_send/local_send_view.dart index a4d8685..d5cdc2f 100644 --- a/lib/components/local_send/local_send_view.dart +++ b/lib/components/local_send/local_send_view.dart @@ -1,8 +1,8 @@ import 'package:adaptive_dialog/adaptive_dialog.dart'; import 'package:flutter/material.dart'; -import 'package:mood_diary/components/local_send/local_send_client/local_send_client_view.dart'; -import 'package:mood_diary/components/local_send/local_send_server/local_send_server_view.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/components/local_send/local_send_client/local_send_client_view.dart'; +import 'package:moodiary/components/local_send/local_send_server/local_send_server_view.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'local_send_logic.dart'; diff --git a/lib/components/login_form/login_form_logic.dart b/lib/components/login_form/login_form_logic.dart index e57a5f3..2b8d408 100644 --- a/lib/components/login_form/login_form_logic.dart +++ b/lib/components/login_form/login_form_logic.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/pages/login/login_logic.dart'; -import 'package:mood_diary/router/app_routes.dart'; +import 'package:moodiary/pages/login/login_logic.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/utils/data/supabase.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/supabase.dart'; import 'login_form_state.dart'; class LoginFormLogic extends GetxController { diff --git a/lib/components/login_form/login_form_view.dart b/lib/components/login_form/login_form_view.dart index bda9e8f..1057b24 100644 --- a/lib/components/login_form/login_form_view.dart +++ b/lib/components/login_form/login_form_view.dart @@ -1,7 +1,7 @@ import 'dart:math'; import 'package:flutter/material.dart'; -import 'package:mood_diary/utils/function_extensions.dart'; +import 'package:moodiary/utils/function_extensions.dart'; import 'package:refreshed/refreshed.dart'; import 'login_form_logic.dart'; diff --git a/lib/components/media/media_audio_view.dart b/lib/components/media/media_audio_view.dart index 528c94a..4a27a1a 100644 --- a/lib/components/media/media_audio_view.dart +++ b/lib/components/media/media_audio_view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; -import 'package:mood_diary/components/audio_player/audio_player_view.dart'; +import 'package:moodiary/components/audio_player/audio_player_view.dart'; class MediaAudioComponent extends StatelessWidget { final DateTime dateTime; diff --git a/lib/components/media/media_image_view.dart b/lib/components/media/media_image_view.dart index e5a38cd..2e9a9d0 100644 --- a/lib/components/media/media_image_view.dart +++ b/lib/components/media/media_image_view.dart @@ -2,11 +2,10 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; +import 'package:moodiary/common/values/border.dart'; +import 'package:moodiary/router/app_routes.dart'; import 'package:refreshed/refreshed.dart'; -import '../../common/values/border.dart'; -import '../../router/app_routes.dart'; - class MediaImageComponent extends StatelessWidget { final DateTime dateTime; final List imageList; diff --git a/lib/components/media/media_video_view.dart b/lib/components/media/media_video_view.dart index c4a7412..8573d2a 100644 --- a/lib/components/media/media_video_view.dart +++ b/lib/components/media/media_video_view.dart @@ -3,12 +3,11 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:intl/intl.dart'; +import 'package:moodiary/common/values/border.dart'; +import 'package:moodiary/router/app_routes.dart'; import 'package:path/path.dart'; import 'package:refreshed/refreshed.dart'; -import '../../common/values/border.dart'; -import '../../router/app_routes.dart'; - class MediaVideoComponent extends StatelessWidget { final DateTime dateTime; final List videoList; diff --git a/lib/components/mood_icon/mood_icon_view.dart b/lib/components/mood_icon/mood_icon_view.dart index 1b3703b..0d3e37f 100644 --- a/lib/components/mood_icon/mood_icon_view.dart +++ b/lib/components/mood_icon/mood_icon_view.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/common/values/border.dart'; +import 'package:moodiary/common/values/border.dart'; class EmotionCurvePainter extends CustomPainter { final double value; diff --git a/lib/components/quill_embed/audio_embed.dart b/lib/components/quill_embed/audio_embed.dart index 0d38929..62231b6 100644 --- a/lib/components/quill_embed/audio_embed.dart +++ b/lib/components/quill_embed/audio_embed.dart @@ -1,7 +1,7 @@ import 'package:flutter/widgets.dart'; import 'package:flutter_quill/flutter_quill.dart'; +import 'package:moodiary/utils/file_util.dart'; -import '../../utils/file_util.dart'; import '../audio_player/audio_player_view.dart'; class AudioBlockEmbed extends BlockEmbed { diff --git a/lib/components/quill_embed/image_embed.dart b/lib/components/quill_embed/image_embed.dart index 91e56bb..d6281b1 100644 --- a/lib/components/quill_embed/image_embed.dart +++ b/lib/components/quill_embed/image_embed.dart @@ -2,11 +2,10 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:flutter_quill/flutter_quill.dart'; -import 'package:mood_diary/router/app_routes.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/utils/file_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/file_util.dart'; - class ImageBlockEmbed extends BlockEmbed { const ImageBlockEmbed(String value) : super(embedType, value); diff --git a/lib/components/quill_embed/video_embed.dart b/lib/components/quill_embed/video_embed.dart index 7e26943..579ebf2 100644 --- a/lib/components/quill_embed/video_embed.dart +++ b/lib/components/quill_embed/video_embed.dart @@ -1,8 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_quill/flutter_quill.dart'; -import 'package:mood_diary/components/video_player/video_player_view.dart'; - -import '../../utils/file_util.dart'; +import 'package:moodiary/components/video_player/video_player_view.dart'; +import 'package:moodiary/utils/file_util.dart'; class VideoBlockEmbed extends BlockEmbed { const VideoBlockEmbed(String value) : super(embedType, value); diff --git a/lib/components/record_sheet/record_sheet_logic.dart b/lib/components/record_sheet/record_sheet_logic.dart index 2360b80..f5efa5d 100644 --- a/lib/components/record_sheet/record_sheet_logic.dart +++ b/lib/components/record_sheet/record_sheet_logic.dart @@ -2,15 +2,15 @@ import 'dart:async'; import 'dart:math'; import 'package:flutter/material.dart'; -import 'package:mood_diary/components/wave_form/wave_form_logic.dart'; -import 'package:mood_diary/pages/edit/edit_logic.dart'; -import 'package:mood_diary/utils/permission_util.dart'; +import 'package:moodiary/components/wave_form/wave_form_logic.dart'; +import 'package:moodiary/pages/edit/edit_logic.dart'; +import 'package:moodiary/utils/file_util.dart'; +import 'package:moodiary/utils/permission_util.dart'; import 'package:permission_handler/permission_handler.dart'; import 'package:record/record.dart'; import 'package:refreshed/refreshed.dart'; import 'package:uuid/uuid.dart'; -import '../../utils/file_util.dart'; import 'record_sheet_state.dart'; class RecordSheetLogic extends GetxController with GetTickerProviderStateMixin { diff --git a/lib/components/record_sheet/record_sheet_view.dart b/lib/components/record_sheet/record_sheet_view.dart index 4ed4f89..2297a97 100644 --- a/lib/components/record_sheet/record_sheet_view.dart +++ b/lib/components/record_sheet/record_sheet_view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/components/wave_form/wave_form_view.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/components/wave_form/wave_form_view.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'record_sheet_logic.dart'; diff --git a/lib/components/register_form/register_form_logic.dart b/lib/components/register_form/register_form_logic.dart index 599e3b0..9d40e85 100644 --- a/lib/components/register_form/register_form_logic.dart +++ b/lib/components/register_form/register_form_logic.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/pages/login/login_logic.dart'; +import 'package:moodiary/pages/login/login_logic.dart'; +import 'package:moodiary/utils/data/supabase.dart'; +import 'package:moodiary/utils/notice_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/supabase.dart'; -import '../../utils/notice_util.dart'; import 'register_form_state.dart'; class RegisterFormLogic extends GetxController { diff --git a/lib/components/register_form/register_form_view.dart b/lib/components/register_form/register_form_view.dart index f76e623..7715ab7 100644 --- a/lib/components/register_form/register_form_view.dart +++ b/lib/components/register_form/register_form_view.dart @@ -1,7 +1,7 @@ import 'dart:math'; import 'package:flutter/material.dart'; -import 'package:mood_diary/utils/function_extensions.dart'; +import 'package:moodiary/utils/function_extensions.dart'; import 'package:refreshed/refreshed.dart'; import 'register_form_logic.dart'; diff --git a/lib/components/remove_password/remove_password_logic.dart b/lib/components/remove_password/remove_password_logic.dart index 1359950..c3fb2bb 100644 --- a/lib/components/remove_password/remove_password_logic.dart +++ b/lib/components/remove_password/remove_password_logic.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:mood_diary/pages/home/setting/setting_logic.dart'; +import 'package:moodiary/pages/home/setting/setting_logic.dart'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/notice_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/pref.dart'; -import '../../utils/notice_util.dart'; import 'remove_password_state.dart'; class RemovePasswordLogic extends GetxController diff --git a/lib/components/remove_password/remove_password_state.dart b/lib/components/remove_password/remove_password_state.dart index acb96d1..bea7874 100644 --- a/lib/components/remove_password/remove_password_state.dart +++ b/lib/components/remove_password/remove_password_state.dart @@ -1,4 +1,4 @@ -import '../../utils/data/pref.dart'; +import 'package:moodiary/utils/data/pref.dart'; class RemovePasswordState { String password = ''; diff --git a/lib/components/remove_password/remove_password_view.dart b/lib/components/remove_password/remove_password_view.dart index 2c59275..c856a1b 100644 --- a/lib/components/remove_password/remove_password_view.dart +++ b/lib/components/remove_password/remove_password_view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/main.dart'; -import 'package:mood_diary/utils/auth_util.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/utils/auth_util.dart'; import 'package:refreshed/refreshed.dart'; import 'remove_password_logic.dart'; diff --git a/lib/components/search_card/search_card_logic.dart b/lib/components/search_card/search_card_logic.dart index 22fe241..82e5e01 100644 --- a/lib/components/search_card/search_card_logic.dart +++ b/lib/components/search_card/search_card_logic.dart @@ -1,6 +1,6 @@ -import 'package:mood_diary/common/models/isar/diary.dart'; -import 'package:mood_diary/pages/diary_details/diary_details_logic.dart'; -import 'package:mood_diary/router/app_routes.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/pages/diary_details/diary_details_logic.dart'; +import 'package:moodiary/router/app_routes.dart'; import 'package:refreshed/refreshed.dart'; import 'search_card_state.dart'; diff --git a/lib/components/search_card/search_card_view.dart b/lib/components/search_card/search_card_view.dart index d077b55..016fd79 100644 --- a/lib/components/search_card/search_card_view.dart +++ b/lib/components/search_card/search_card_view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/common/models/isar/diary.dart'; -import 'package:mood_diary/common/values/border.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/common/values/border.dart'; import 'package:refreshed/refreshed.dart'; import 'search_card_logic.dart'; diff --git a/lib/components/search_sheet/search_sheet_logic.dart b/lib/components/search_sheet/search_sheet_logic.dart index 89e951d..4d0bf33 100644 --- a/lib/components/search_sheet/search_sheet_logic.dart +++ b/lib/components/search_sheet/search_sheet_logic.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; +import 'package:moodiary/utils/data/isar.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/isar.dart'; import 'search_sheet_state.dart'; class SearchSheetLogic extends GetxController { diff --git a/lib/components/search_sheet/search_sheet_state.dart b/lib/components/search_sheet/search_sheet_state.dart index 84f00b2..344e88a 100644 --- a/lib/components/search_sheet/search_sheet_state.dart +++ b/lib/components/search_sheet/search_sheet_state.dart @@ -1,4 +1,4 @@ -import 'package:mood_diary/common/models/isar/diary.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; import 'package:refreshed/refreshed.dart'; class SearchSheetState { diff --git a/lib/components/search_sheet/search_sheet_view.dart b/lib/components/search_sheet/search_sheet_view.dart index 19dac9d..1f46cc8 100644 --- a/lib/components/search_sheet/search_sheet_view.dart +++ b/lib/components/search_sheet/search_sheet_view.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/common/values/border.dart'; -import 'package:mood_diary/components/search_card/search_card_logic.dart'; -import 'package:mood_diary/components/search_card/search_card_view.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/common/values/border.dart'; +import 'package:moodiary/components/search_card/search_card_logic.dart'; +import 'package:moodiary/components/search_card/search_card_view.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'search_sheet_logic.dart'; diff --git a/lib/components/set_password/set_password_logic.dart b/lib/components/set_password/set_password_logic.dart index dfb789c..b080837 100644 --- a/lib/components/set_password/set_password_logic.dart +++ b/lib/components/set_password/set_password_logic.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:mood_diary/pages/home/setting/setting_logic.dart'; +import 'package:moodiary/pages/home/setting/setting_logic.dart'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/notice_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/pref.dart'; -import '../../utils/notice_util.dart'; import 'set_password_state.dart'; class SetPasswordLogic extends GetxController diff --git a/lib/components/set_password/set_password_view.dart b/lib/components/set_password/set_password_view.dart index a05da7d..a3267b6 100644 --- a/lib/components/set_password/set_password_view.dart +++ b/lib/components/set_password/set_password_view.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'set_password_logic.dart'; diff --git a/lib/components/side_bar/side_bar_logic.dart b/lib/components/side_bar/side_bar_logic.dart index 9ffde61..dd6495a 100644 --- a/lib/components/side_bar/side_bar_logic.dart +++ b/lib/components/side_bar/side_bar_logic.dart @@ -1,14 +1,14 @@ import 'dart:async'; -import 'package:mood_diary/api/api.dart'; -import 'package:mood_diary/pages/home/home_logic.dart'; -import 'package:mood_diary/router/app_routes.dart'; -import 'package:mood_diary/utils/cache_util.dart'; -import 'package:mood_diary/utils/package_util.dart'; +import 'package:moodiary/api/api.dart'; +import 'package:moodiary/pages/home/home_logic.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/utils/cache_util.dart'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/package_util.dart'; import 'package:refreshed/refreshed.dart'; import 'package:url_launcher/url_launcher.dart'; -import '../../utils/data/pref.dart'; import 'side_bar_state.dart'; class SideBarLogic extends GetxController { diff --git a/lib/components/side_bar/side_bar_state.dart b/lib/components/side_bar/side_bar_state.dart index bbd38f4..0a064d7 100644 --- a/lib/components/side_bar/side_bar_state.dart +++ b/lib/components/side_bar/side_bar_state.dart @@ -1,9 +1,8 @@ -import 'package:mood_diary/common/models/isar/diary.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/utils/data/pref.dart'; import 'package:package_info_plus/package_info_plus.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/pref.dart'; - class SideBarState { var packageInfo = Rx(null); diff --git a/lib/components/side_bar/side_bar_view.dart b/lib/components/side_bar/side_bar_view.dart index d9008b9..9eb0de2 100644 --- a/lib/components/side_bar/side_bar_view.dart +++ b/lib/components/side_bar/side_bar_view.dart @@ -1,12 +1,12 @@ import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; -import 'package:mood_diary/common/values/icons.dart'; -import 'package:mood_diary/components/tile/setting_tile.dart'; -import 'package:mood_diary/utils/function_extensions.dart'; +import 'package:moodiary/common/values/icons.dart'; +import 'package:moodiary/components/tile/setting_tile.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/utils/function_extensions.dart'; import 'package:refreshed/refreshed.dart'; -import '../../main.dart'; import 'side_bar_logic.dart'; class SideBarComponent extends StatelessWidget { diff --git a/lib/components/sync_dash_board/sync_dash_board_logic.dart b/lib/components/sync_dash_board/sync_dash_board_logic.dart index 5e61342..23bfc22 100644 --- a/lib/components/sync_dash_board/sync_dash_board_logic.dart +++ b/lib/components/sync_dash_board/sync_dash_board_logic.dart @@ -1,9 +1,8 @@ import 'package:flutter/widgets.dart'; -import 'package:mood_diary/components/sync_dash_board/sync_dash_board_state.dart'; +import 'package:moodiary/components/sync_dash_board/sync_dash_board_state.dart'; +import 'package:moodiary/utils/webdav_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/webdav_util.dart'; - class SyncDashBoardLogic extends GetxController { final SyncDashBoardState state = SyncDashBoardState(); late final PageController pageController; diff --git a/lib/components/sync_dash_board/sync_dash_board_view.dart b/lib/components/sync_dash_board/sync_dash_board_view.dart index 84bb756..48de33a 100644 --- a/lib/components/sync_dash_board/sync_dash_board_view.dart +++ b/lib/components/sync_dash_board/sync_dash_board_view.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/components/loading/loading.dart'; -import 'package:mood_diary/components/local_send/local_send_view.dart'; -import 'package:mood_diary/components/sync_dash_board/sync_dash_board_state.dart'; -import 'package:mood_diary/components/sync_dash_board/web_dav_dashboard/web_dav_dashboard_view.dart'; +import 'package:moodiary/components/loading/loading.dart'; +import 'package:moodiary/components/local_send/local_send_view.dart'; +import 'package:moodiary/components/sync_dash_board/sync_dash_board_state.dart'; +import 'package:moodiary/components/sync_dash_board/web_dav_dashboard/web_dav_dashboard_view.dart'; import 'package:refreshed/refreshed.dart'; import 'package:smooth_page_indicator/smooth_page_indicator.dart'; diff --git a/lib/components/sync_dash_board/web_dav_dashboard/web_dav_dashboard_logic.dart b/lib/components/sync_dash_board/web_dav_dashboard/web_dav_dashboard_logic.dart index a4c6909..2884761 100644 --- a/lib/components/sync_dash_board/web_dav_dashboard/web_dav_dashboard_logic.dart +++ b/lib/components/sync_dash_board/web_dav_dashboard/web_dav_dashboard_logic.dart @@ -1,12 +1,12 @@ -import 'package:mood_diary/main.dart'; -import 'package:mood_diary/pages/home/diary/diary_logic.dart'; -import 'package:mood_diary/router/app_routes.dart'; +import 'package:moodiary/common/values/webdav.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/pages/home/diary/diary_logic.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/utils/data/isar.dart'; +import 'package:moodiary/utils/notice_util.dart'; +import 'package:moodiary/utils/webdav_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../../common/values/webdav.dart'; -import '../../../utils/data/isar.dart'; -import '../../../utils/notice_util.dart'; -import '../../../utils/webdav_util.dart'; import 'web_dav_dashboard_state.dart'; class WebDavDashboardLogic extends GetxController { diff --git a/lib/components/sync_dash_board/web_dav_dashboard/web_dav_dashboard_state.dart b/lib/components/sync_dash_board/web_dav_dashboard/web_dav_dashboard_state.dart index 00f88ed..987d021 100644 --- a/lib/components/sync_dash_board/web_dav_dashboard/web_dav_dashboard_state.dart +++ b/lib/components/sync_dash_board/web_dav_dashboard/web_dav_dashboard_state.dart @@ -1,8 +1,7 @@ -import 'package:mood_diary/common/models/isar/diary.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/common/values/webdav.dart'; import 'package:refreshed/refreshed.dart'; -import '../../../common/values/webdav.dart'; - class WebDavDashboardState { Rx connectivityStatus = WebDavConnectivityStatus.connecting.obs; diff --git a/lib/components/sync_dash_board/web_dav_dashboard/web_dav_dashboard_view.dart b/lib/components/sync_dash_board/web_dav_dashboard/web_dav_dashboard_view.dart index 30903a7..8cc57d3 100644 --- a/lib/components/sync_dash_board/web_dav_dashboard/web_dav_dashboard_view.dart +++ b/lib/components/sync_dash_board/web_dav_dashboard/web_dav_dashboard_view.dart @@ -1,12 +1,12 @@ import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; -import 'package:mood_diary/components/loading/loading.dart'; -import 'package:mood_diary/components/tile/setting_tile.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/common/values/webdav.dart'; +import 'package:moodiary/components/loading/loading.dart'; +import 'package:moodiary/components/tile/setting_tile.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/utils/webdav_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../../common/values/webdav.dart'; -import '../../../utils/webdav_util.dart'; import 'web_dav_dashboard_logic.dart'; import 'web_dav_dashboard_state.dart'; diff --git a/lib/components/theme_mode_dialog/theme_mode_dialog_logic.dart b/lib/components/theme_mode_dialog/theme_mode_dialog_logic.dart index 1481784..1cae428 100644 --- a/lib/components/theme_mode_dialog/theme_mode_dialog_logic.dart +++ b/lib/components/theme_mode_dialog/theme_mode_dialog_logic.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/pages/home/setting/setting_logic.dart'; +import 'package:moodiary/pages/home/setting/setting_logic.dart'; +import 'package:moodiary/utils/data/pref.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/pref.dart'; import 'theme_mode_dialog_state.dart'; class ThemeModeDialogLogic extends GetxController { diff --git a/lib/components/theme_mode_dialog/theme_mode_dialog_state.dart b/lib/components/theme_mode_dialog/theme_mode_dialog_state.dart index 8f7ee9c..703ce4b 100644 --- a/lib/components/theme_mode_dialog/theme_mode_dialog_state.dart +++ b/lib/components/theme_mode_dialog/theme_mode_dialog_state.dart @@ -1,4 +1,4 @@ -import '../../utils/data/pref.dart'; +import 'package:moodiary/utils/data/pref.dart'; class ThemeModeDialogState { int themeMode = PrefUtil.getValue('themeMode')!; diff --git a/lib/components/theme_mode_dialog/theme_mode_dialog_view.dart b/lib/components/theme_mode_dialog/theme_mode_dialog_view.dart index f1ce7d3..f55d5b2 100644 --- a/lib/components/theme_mode_dialog/theme_mode_dialog_view.dart +++ b/lib/components/theme_mode_dialog/theme_mode_dialog_view.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; -import '../../main.dart'; import 'theme_mode_dialog_logic.dart'; class ThemeModeDialogComponent extends StatelessWidget { diff --git a/lib/components/tile/setting_tile.dart b/lib/components/tile/setting_tile.dart index 0a2bd18..65196a2 100644 --- a/lib/components/tile/setting_tile.dart +++ b/lib/components/tile/setting_tile.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/components/base/text.dart'; +import 'package:moodiary/components/base/text.dart'; class AdaptiveTitleTile extends StatelessWidget { const AdaptiveTitleTile({super.key, required this.title, this.subtitle}); diff --git a/lib/components/update_dialog/update_dialog_logic.dart b/lib/components/update_dialog/update_dialog_logic.dart index f07120e..952c71b 100644 --- a/lib/components/update_dialog/update_dialog_logic.dart +++ b/lib/components/update_dialog/update_dialog_logic.dart @@ -1,4 +1,4 @@ -import 'package:mood_diary/common/models/github.dart'; +import 'package:moodiary/common/models/github.dart'; import 'package:refreshed/refreshed.dart'; import 'package:url_launcher/url_launcher.dart'; diff --git a/lib/components/update_dialog/update_dialog_view.dart b/lib/components/update_dialog/update_dialog_view.dart index 1b70e44..b287d8f 100644 --- a/lib/components/update_dialog/update_dialog_view.dart +++ b/lib/components/update_dialog/update_dialog_view.dart @@ -1,10 +1,9 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/common/models/github.dart'; -import 'package:mood_diary/components/update_dialog/update_dialog_logic.dart'; +import 'package:moodiary/common/models/github.dart'; +import 'package:moodiary/components/update_dialog/update_dialog_logic.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; -import '../../main.dart'; - class UpdateDialogComponent extends StatelessWidget { const UpdateDialogComponent({super.key, required this.githubRelease}); diff --git a/lib/components/video_player/video_player_view.dart b/lib/components/video_player/video_player_view.dart index fadd6c5..168a534 100644 --- a/lib/components/video_player/video_player_view.dart +++ b/lib/components/video_player/video_player_view.dart @@ -1,6 +1,6 @@ import 'package:chewie/chewie.dart'; import 'package:flutter/material.dart'; -import 'package:mood_diary/components/loading/loading.dart'; +import 'package:moodiary/components/loading/loading.dart'; import 'package:refreshed/refreshed.dart'; import 'video_player_logic.dart'; diff --git a/lib/components/web_dav/web_dav_logic.dart b/lib/components/web_dav/web_dav_logic.dart index 24b4acc..8bda54f 100644 --- a/lib/components/web_dav/web_dav_logic.dart +++ b/lib/components/web_dav/web_dav_logic.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/utils/webdav_util.dart'; +import 'package:moodiary/common/values/webdav.dart'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/notice_util.dart'; +import 'package:moodiary/utils/webdav_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../common/values/webdav.dart'; -import '../../utils/data/pref.dart'; -import '../../utils/notice_util.dart'; import 'web_dav_state.dart'; class WebDavLogic extends GetxController { diff --git a/lib/components/web_dav/web_dav_state.dart b/lib/components/web_dav/web_dav_state.dart index ebe1216..d7dcfd3 100644 --- a/lib/components/web_dav/web_dav_state.dart +++ b/lib/components/web_dav/web_dav_state.dart @@ -1,10 +1,9 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/common/values/webdav.dart'; +import 'package:moodiary/common/values/webdav.dart'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/webdav_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/pref.dart'; -import '../../utils/webdav_util.dart'; - class WebDavState { final formKey = GlobalKey(); diff --git a/lib/components/web_dav/web_dav_view.dart b/lib/components/web_dav/web_dav_view.dart index 36dd245..025e66f 100644 --- a/lib/components/web_dav/web_dav_view.dart +++ b/lib/components/web_dav/web_dav_view.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; -import 'package:mood_diary/common/values/border.dart'; -import 'package:mood_diary/common/values/webdav.dart'; -import 'package:mood_diary/components/tile/setting_tile.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/common/values/border.dart'; +import 'package:moodiary/common/values/webdav.dart'; +import 'package:moodiary/components/tile/setting_tile.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'web_dav_logic.dart'; diff --git a/lib/components/window_buttons/window_buttons.dart b/lib/components/window_buttons/window_buttons.dart index b9b297d..766e800 100644 --- a/lib/components/window_buttons/window_buttons.dart +++ b/lib/components/window_buttons/window_buttons.dart @@ -3,8 +3,8 @@ import 'dart:io'; import 'package:bitsdojo_window/bitsdojo_window.dart'; import 'package:flutter/material.dart'; -import 'package:mood_diary/api/api.dart'; -import 'package:mood_diary/utils/cache_util.dart'; +import 'package:moodiary/api/api.dart'; +import 'package:moodiary/utils/cache_util.dart'; import 'package:refreshed/refreshed.dart'; class WindowButtons extends StatelessWidget { diff --git a/lib/main.dart b/lib/main.dart index 488fadd..b7f4a1e 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -12,20 +12,20 @@ import 'package:flutter_quill/flutter_quill.dart'; import 'package:fluttertoast/fluttertoast.dart'; import 'package:intl/find_locale.dart'; import 'package:intl/intl.dart'; -import 'package:mood_diary/common/values/language.dart'; -import 'package:mood_diary/components/env_badge/badge.dart'; -import 'package:mood_diary/components/frosted_glass_overlay/frosted_glass_overlay_view.dart'; -import 'package:mood_diary/router/app_pages.dart'; -import 'package:mood_diary/router/app_routes.dart'; -import 'package:mood_diary/src/rust/frb_generated.dart'; -import 'package:mood_diary/utils/data/env.dart'; -import 'package:mood_diary/utils/data/isar.dart'; -import 'package:mood_diary/utils/data/pref.dart'; -import 'package:mood_diary/utils/log_util.dart'; -import 'package:mood_diary/utils/media_util.dart'; -import 'package:mood_diary/utils/notice_util.dart'; -import 'package:mood_diary/utils/theme_util.dart'; -import 'package:mood_diary/utils/webdav_util.dart'; +import 'package:moodiary/common/values/language.dart'; +import 'package:moodiary/components/env_badge/badge.dart'; +import 'package:moodiary/components/frosted_glass_overlay/frosted_glass_overlay_view.dart'; +import 'package:moodiary/router/app_pages.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/src/rust/frb_generated.dart'; +import 'package:moodiary/utils/data/env.dart'; +import 'package:moodiary/utils/data/isar.dart'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/log_util.dart'; +import 'package:moodiary/utils/media_util.dart'; +import 'package:moodiary/utils/notice_util.dart'; +import 'package:moodiary/utils/theme_util.dart'; +import 'package:moodiary/utils/webdav_util.dart'; import 'package:refreshed/refreshed.dart'; import 'package:video_player_media_kit/video_player_media_kit.dart'; diff --git a/lib/pages/about/about_logic.dart b/lib/pages/about/about_logic.dart index ba4709a..f2a2055 100644 --- a/lib/pages/about/about_logic.dart +++ b/lib/pages/about/about_logic.dart @@ -1,6 +1,6 @@ import 'package:device_info_plus/device_info_plus.dart'; -import 'package:mood_diary/router/app_routes.dart'; -import 'package:mood_diary/utils/package_util.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/utils/package_util.dart'; import 'package:refreshed/refreshed.dart'; import 'package:url_launcher/url_launcher.dart'; diff --git a/lib/pages/about/about_view.dart b/lib/pages/about/about_view.dart index e0aec14..b73f68b 100644 --- a/lib/pages/about/about_view.dart +++ b/lib/pages/about/about_view.dart @@ -1,11 +1,11 @@ import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; -import 'package:mood_diary/components/base/button.dart'; -import 'package:mood_diary/components/tile/setting_tile.dart'; -import 'package:mood_diary/utils/update_util.dart'; +import 'package:moodiary/components/base/button.dart'; +import 'package:moodiary/components/tile/setting_tile.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/utils/update_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../main.dart'; import 'about_logic.dart'; class AboutPage extends StatelessWidget { diff --git a/lib/pages/analyse/analyse_logic.dart b/lib/pages/analyse/analyse_logic.dart index ee3565f..8c50027 100644 --- a/lib/pages/analyse/analyse_logic.dart +++ b/lib/pages/analyse/analyse_logic.dart @@ -2,13 +2,13 @@ import 'dart:convert'; import 'package:calendar_date_picker2/calendar_date_picker2.dart'; import 'package:flutter/material.dart'; -import 'package:mood_diary/api/api.dart'; -import 'package:mood_diary/common/models/hunyuan.dart'; -import 'package:mood_diary/utils/array_util.dart'; -import 'package:mood_diary/utils/signature_util.dart'; +import 'package:moodiary/api/api.dart'; +import 'package:moodiary/common/models/hunyuan.dart'; +import 'package:moodiary/utils/array_util.dart'; +import 'package:moodiary/utils/data/isar.dart'; +import 'package:moodiary/utils/signature_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/isar.dart'; import 'analyse_state.dart'; class AnalyseLogic extends GetxController { diff --git a/lib/pages/analyse/analyse_view.dart b/lib/pages/analyse/analyse_view.dart index 0b37973..d4e6c95 100644 --- a/lib/pages/analyse/analyse_view.dart +++ b/lib/pages/analyse/analyse_view.dart @@ -1,12 +1,12 @@ import 'package:fl_chart/fl_chart.dart'; import 'package:flutter/material.dart'; -import 'package:mood_diary/common/values/icons.dart'; -import 'package:mood_diary/components/base/button.dart'; -import 'package:mood_diary/components/mood_icon/mood_icon_view.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/common/values/icons.dart'; +import 'package:moodiary/components/base/button.dart'; +import 'package:moodiary/components/mood_icon/mood_icon_view.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/utils/array_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/array_util.dart'; import 'analyse_logic.dart'; class AnalysePage extends StatelessWidget { diff --git a/lib/pages/backup_sync/backup_sync_logic.dart b/lib/pages/backup_sync/backup_sync_logic.dart index ea4454c..36d30c9 100644 --- a/lib/pages/backup_sync/backup_sync_logic.dart +++ b/lib/pages/backup_sync/backup_sync_logic.dart @@ -1,12 +1,11 @@ import 'package:file_picker/file_picker.dart'; import 'package:flutter/foundation.dart'; +import 'package:moodiary/utils/file_util.dart'; +import 'package:moodiary/utils/log_util.dart'; +import 'package:moodiary/utils/notice_util.dart'; import 'package:refreshed/refreshed.dart'; import 'package:share_plus/share_plus.dart'; -import '../../utils/file_util.dart'; -import '../../utils/log_util.dart'; -import '../../utils/notice_util.dart'; - class BackupSyncLogic extends GetxController { Future exportFile() async { NoticeUtil.showToast('正在处理中'); diff --git a/lib/pages/backup_sync/backup_sync_view.dart b/lib/pages/backup_sync/backup_sync_view.dart index 0839546..a8c4e75 100644 --- a/lib/pages/backup_sync/backup_sync_view.dart +++ b/lib/pages/backup_sync/backup_sync_view.dart @@ -1,12 +1,12 @@ import 'package:adaptive_dialog/adaptive_dialog.dart'; import 'package:flutter/material.dart'; -import 'package:mood_diary/components/base/button.dart'; -import 'package:mood_diary/components/local_send/local_send_view.dart'; -import 'package:mood_diary/components/tile/setting_tile.dart'; -import 'package:mood_diary/components/web_dav/web_dav_view.dart'; +import 'package:moodiary/components/base/button.dart'; +import 'package:moodiary/components/local_send/local_send_view.dart'; +import 'package:moodiary/components/tile/setting_tile.dart'; +import 'package:moodiary/components/web_dav/web_dav_view.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; -import '../../main.dart'; import 'backup_sync_logic.dart'; class BackupSyncPage extends StatelessWidget { diff --git a/lib/pages/category_manager/category_manager_logic.dart b/lib/pages/category_manager/category_manager_logic.dart index 6f2d27a..2652bee 100644 --- a/lib/pages/category_manager/category_manager_logic.dart +++ b/lib/pages/category_manager/category_manager_logic.dart @@ -1,9 +1,9 @@ -import 'package:mood_diary/common/models/isar/category.dart'; -import 'package:mood_diary/pages/home/diary/diary_logic.dart'; +import 'package:moodiary/common/models/isar/category.dart'; +import 'package:moodiary/pages/home/diary/diary_logic.dart'; +import 'package:moodiary/utils/data/isar.dart'; +import 'package:moodiary/utils/notice_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/isar.dart'; -import '../../utils/notice_util.dart'; import 'category_manager_state.dart'; class CategoryManagerLogic extends GetxController { diff --git a/lib/pages/category_manager/category_manager_state.dart b/lib/pages/category_manager/category_manager_state.dart index 97e6329..ded4ef9 100644 --- a/lib/pages/category_manager/category_manager_state.dart +++ b/lib/pages/category_manager/category_manager_state.dart @@ -1,4 +1,4 @@ -import 'package:mood_diary/common/models/isar/category.dart'; +import 'package:moodiary/common/models/isar/category.dart'; import 'package:refreshed/refreshed.dart'; class CategoryManagerState { diff --git a/lib/pages/category_manager/category_manager_view.dart b/lib/pages/category_manager/category_manager_view.dart index b97fb86..100638e 100644 --- a/lib/pages/category_manager/category_manager_view.dart +++ b/lib/pages/category_manager/category_manager_view.dart @@ -1,9 +1,9 @@ import 'package:adaptive_dialog/adaptive_dialog.dart'; import 'package:flutter/material.dart'; -import 'package:mood_diary/components/base/button.dart'; -import 'package:mood_diary/components/loading/loading.dart'; -import 'package:mood_diary/components/tile/setting_tile.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/components/base/button.dart'; +import 'package:moodiary/components/loading/loading.dart'; +import 'package:moodiary/components/tile/setting_tile.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'category_manager_logic.dart'; diff --git a/lib/pages/diary_details/diary_details_logic.dart b/lib/pages/diary_details/diary_details_logic.dart index 33a047c..2c69e77 100644 --- a/lib/pages/diary_details/diary_details_logic.dart +++ b/lib/pages/diary_details/diary_details_logic.dart @@ -4,11 +4,11 @@ import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_quill/flutter_quill.dart'; -import 'package:mood_diary/common/models/isar/diary.dart'; -import 'package:mood_diary/router/app_routes.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/utils/data/isar.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/isar.dart'; import 'diary_details_state.dart'; class DiaryDetailsLogic extends GetxController { diff --git a/lib/pages/diary_details/diary_details_state.dart b/lib/pages/diary_details/diary_details_state.dart index 5cd8b61..7979098 100644 --- a/lib/pages/diary_details/diary_details_state.dart +++ b/lib/pages/diary_details/diary_details_state.dart @@ -1,8 +1,7 @@ -import 'package:mood_diary/common/models/isar/diary.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/utils/data/pref.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/pref.dart'; - class DiaryDetailsState { Diary diary = Get.arguments[0]; diff --git a/lib/pages/diary_details/diary_details_view.dart b/lib/pages/diary_details/diary_details_view.dart index 4cb9d1a..446e62c 100644 --- a/lib/pages/diary_details/diary_details_view.dart +++ b/lib/pages/diary_details/diary_details_view.dart @@ -4,21 +4,21 @@ import 'dart:math'; import 'package:flutter/material.dart'; import 'package:flutter_quill/flutter_quill.dart'; import 'package:intl/intl.dart'; -import 'package:mood_diary/common/models/isar/diary.dart'; -import 'package:mood_diary/common/values/icons.dart'; -import 'package:mood_diary/components/base/button.dart'; -import 'package:mood_diary/components/mood_icon/mood_icon_view.dart'; -import 'package:mood_diary/main.dart'; -import 'package:mood_diary/utils/data/pref.dart'; -import 'package:mood_diary/utils/theme_util.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/common/values/icons.dart'; +import 'package:moodiary/components/base/button.dart'; +import 'package:moodiary/components/mood_icon/mood_icon_view.dart'; +import 'package:moodiary/components/quill_embed/audio_embed.dart'; +import 'package:moodiary/components/quill_embed/image_embed.dart'; +import 'package:moodiary/components/quill_embed/text_indent.dart'; +import 'package:moodiary/components/quill_embed/video_embed.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/file_util.dart'; +import 'package:moodiary/utils/theme_util.dart'; import 'package:refreshed/refreshed.dart'; import 'package:smooth_page_indicator/smooth_page_indicator.dart'; -import '../../components/quill_embed/audio_embed.dart'; -import '../../components/quill_embed/image_embed.dart'; -import '../../components/quill_embed/text_indent.dart'; -import '../../components/quill_embed/video_embed.dart'; -import '../../utils/file_util.dart'; import 'diary_details_logic.dart'; class DiaryDetailsPage extends StatelessWidget { diff --git a/lib/pages/diary_setting/diary_setting_logic.dart b/lib/pages/diary_setting/diary_setting_logic.dart index 034df5c..4950b65 100644 --- a/lib/pages/diary_setting/diary_setting_logic.dart +++ b/lib/pages/diary_setting/diary_setting_logic.dart @@ -1,6 +1,6 @@ +import 'package:moodiary/utils/data/pref.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/pref.dart'; import 'diary_setting_state.dart'; class DiarySettingLogic extends GetxController { diff --git a/lib/pages/diary_setting/diary_setting_state.dart b/lib/pages/diary_setting/diary_setting_state.dart index 21ac04a..d2ab22f 100644 --- a/lib/pages/diary_setting/diary_setting_state.dart +++ b/lib/pages/diary_setting/diary_setting_state.dart @@ -1,7 +1,6 @@ +import 'package:moodiary/utils/data/pref.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/pref.dart'; - class DiarySettingState { // 图片质量 RxInt quality = PrefUtil.getValue('quality')!.obs; diff --git a/lib/pages/diary_setting/diary_setting_view.dart b/lib/pages/diary_setting/diary_setting_view.dart index 4d4a1b9..88aab02 100644 --- a/lib/pages/diary_setting/diary_setting_view.dart +++ b/lib/pages/diary_setting/diary_setting_view.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/components/base/button.dart'; -import 'package:mood_diary/components/tile/setting_tile.dart'; +import 'package:moodiary/components/base/button.dart'; +import 'package:moodiary/components/tile/setting_tile.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; -import '../../main.dart'; import 'diary_setting_logic.dart'; class DiarySettingPage extends StatelessWidget { diff --git a/lib/pages/draw/draw_logic.dart b/lib/pages/draw/draw_logic.dart index aa47026..aafa80f 100644 --- a/lib/pages/draw/draw_logic.dart +++ b/lib/pages/draw/draw_logic.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_drawing_board/flutter_drawing_board.dart'; -import 'package:mood_diary/pages/edit/edit_logic.dart'; +import 'package:moodiary/pages/edit/edit_logic.dart'; import 'package:refreshed/refreshed.dart'; import 'draw_state.dart'; diff --git a/lib/pages/draw/draw_view.dart b/lib/pages/draw/draw_view.dart index 1b79f8b..1741851 100644 --- a/lib/pages/draw/draw_view.dart +++ b/lib/pages/draw/draw_view.dart @@ -4,8 +4,8 @@ import 'package:adaptive_dialog/adaptive_dialog.dart'; import 'package:flutter/material.dart'; import 'package:flutter_colorpicker/flutter_colorpicker.dart'; import 'package:flutter_drawing_board/flutter_drawing_board.dart'; -import 'package:mood_diary/components/base/button.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/components/base/button.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'draw_logic.dart'; diff --git a/lib/pages/edit/edit_logic.dart b/lib/pages/edit/edit_logic.dart index 9977b0d..ed1a104 100644 --- a/lib/pages/edit/edit_logic.dart +++ b/lib/pages/edit/edit_logic.dart @@ -8,27 +8,27 @@ import 'package:flutter/material.dart'; import 'package:flutter_quill/flutter_quill.dart'; import 'package:image_picker/image_picker.dart'; import 'package:latlong2/latlong.dart'; -import 'package:mood_diary/api/api.dart'; -import 'package:mood_diary/common/models/isar/diary.dart'; -import 'package:mood_diary/common/values/diary_type.dart'; -import 'package:mood_diary/components/keyboard_listener/keyboard_listener.dart'; -import 'package:mood_diary/components/quill_embed/text_indent.dart'; -import 'package:mood_diary/components/quill_embed/video_embed.dart'; -import 'package:mood_diary/main.dart'; -import 'package:mood_diary/router/app_routes.dart'; -import 'package:mood_diary/src/rust/api/kmp.dart'; -import 'package:mood_diary/utils/media_util.dart'; +import 'package:moodiary/api/api.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/common/values/diary_type.dart'; +import 'package:moodiary/common/values/keyboard_state.dart'; +import 'package:moodiary/components/keyboard_listener/keyboard_listener.dart'; +import 'package:moodiary/components/quill_embed/audio_embed.dart'; +import 'package:moodiary/components/quill_embed/image_embed.dart'; +import 'package:moodiary/components/quill_embed/text_indent.dart'; +import 'package:moodiary/components/quill_embed/video_embed.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/src/rust/api/kmp.dart'; +import 'package:moodiary/utils/data/isar.dart'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/file_util.dart'; +import 'package:moodiary/utils/media_util.dart'; +import 'package:moodiary/utils/notice_util.dart'; import 'package:path/path.dart'; import 'package:refreshed/refreshed.dart'; import 'package:uuid/uuid.dart'; -import '../../common/values/keyboard_state.dart'; -import '../../components/quill_embed/audio_embed.dart'; -import '../../components/quill_embed/image_embed.dart'; -import '../../utils/data/isar.dart'; -import '../../utils/data/pref.dart'; -import '../../utils/file_util.dart'; -import '../../utils/notice_util.dart'; import 'edit_state.dart'; class EditLogic extends GetxController { diff --git a/lib/pages/edit/edit_state.dart b/lib/pages/edit/edit_state.dart index 1917b5d..cd5e911 100644 --- a/lib/pages/edit/edit_state.dart +++ b/lib/pages/edit/edit_state.dart @@ -1,10 +1,9 @@ import 'package:cross_file/cross_file.dart'; -import 'package:mood_diary/common/models/isar/diary.dart'; -import 'package:mood_diary/common/values/diary_type.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/common/values/diary_type.dart'; +import 'package:moodiary/utils/data/pref.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/pref.dart'; - class EditState { // 当前编辑的日记对象 late Diary currentDiary; diff --git a/lib/pages/edit/edit_view.dart b/lib/pages/edit/edit_view.dart index 02f009d..0805cd1 100644 --- a/lib/pages/edit/edit_view.dart +++ b/lib/pages/edit/edit_view.dart @@ -8,23 +8,23 @@ import 'package:flutter_quill/flutter_quill.dart'; import 'package:image_picker/image_picker.dart'; import 'package:markdown_widget/config/configs.dart'; import 'package:markdown_widget/widget/markdown.dart'; -import 'package:mood_diary/common/values/border.dart'; -import 'package:mood_diary/common/values/colors.dart'; -import 'package:mood_diary/common/values/diary_type.dart'; -import 'package:mood_diary/components/base/sheet.dart'; -import 'package:mood_diary/components/category_add/category_add_view.dart'; -import 'package:mood_diary/components/expand_button/expand_button_view.dart'; -import 'package:mood_diary/components/lottie_modal/lottie_modal.dart'; -import 'package:mood_diary/components/markdown_bar/markdown_bar.dart'; -import 'package:mood_diary/components/mood_icon/mood_icon_view.dart'; -import 'package:mood_diary/components/quill_embed/audio_embed.dart'; -import 'package:mood_diary/components/quill_embed/image_embed.dart'; -import 'package:mood_diary/components/quill_embed/text_indent.dart'; -import 'package:mood_diary/components/quill_embed/video_embed.dart'; -import 'package:mood_diary/components/record_sheet/record_sheet_view.dart'; -import 'package:mood_diary/components/tile/setting_tile.dart'; -import 'package:mood_diary/main.dart'; -import 'package:mood_diary/utils/theme_util.dart'; +import 'package:moodiary/common/values/border.dart'; +import 'package:moodiary/common/values/colors.dart'; +import 'package:moodiary/common/values/diary_type.dart'; +import 'package:moodiary/components/base/sheet.dart'; +import 'package:moodiary/components/category_add/category_add_view.dart'; +import 'package:moodiary/components/expand_button/expand_button_view.dart'; +import 'package:moodiary/components/lottie_modal/lottie_modal.dart'; +import 'package:moodiary/components/markdown_bar/markdown_bar.dart'; +import 'package:moodiary/components/mood_icon/mood_icon_view.dart'; +import 'package:moodiary/components/quill_embed/audio_embed.dart'; +import 'package:moodiary/components/quill_embed/image_embed.dart'; +import 'package:moodiary/components/quill_embed/text_indent.dart'; +import 'package:moodiary/components/quill_embed/video_embed.dart'; +import 'package:moodiary/components/record_sheet/record_sheet_view.dart'; +import 'package:moodiary/components/tile/setting_tile.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/utils/theme_util.dart'; import 'package:refreshed/refreshed.dart'; import 'edit_logic.dart'; diff --git a/lib/pages/font/font_logic.dart b/lib/pages/font/font_logic.dart index 11b37e6..cb31466 100644 --- a/lib/pages/font/font_logic.dart +++ b/lib/pages/font/font_logic.dart @@ -3,13 +3,13 @@ import 'dart:io'; import 'package:chinese_font_library/chinese_font_library.dart'; import 'package:file_picker/file_picker.dart'; import 'package:flutter/material.dart'; -import 'package:mood_diary/src/rust/api/font.dart'; -import 'package:mood_diary/utils/file_util.dart'; +import 'package:moodiary/src/rust/api/font.dart'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/file_util.dart'; +import 'package:moodiary/utils/notice_util.dart'; +import 'package:moodiary/utils/theme_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/pref.dart'; -import '../../utils/notice_util.dart'; -import '../../utils/theme_util.dart'; import 'font_state.dart'; class FontLogic extends GetxController with GetSingleTickerProviderStateMixin { diff --git a/lib/pages/font/font_state.dart b/lib/pages/font/font_state.dart index d72756f..0bc8064 100644 --- a/lib/pages/font/font_state.dart +++ b/lib/pages/font/font_state.dart @@ -1,7 +1,6 @@ +import 'package:moodiary/utils/data/pref.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/pref.dart'; - class FontState { RxDouble fontScale = PrefUtil.getValue('fontScale')!.obs; RxDouble bottomSheetHeight = 300.0.obs; diff --git a/lib/pages/font/font_view.dart b/lib/pages/font/font_view.dart index 7742f0f..c5f0bef 100644 --- a/lib/pages/font/font_view.dart +++ b/lib/pages/font/font_view.dart @@ -1,12 +1,12 @@ import 'package:adaptive_dialog/adaptive_dialog.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:mood_diary/common/values/border.dart'; -import 'package:mood_diary/components/base/button.dart'; -import 'package:mood_diary/components/base/text.dart'; -import 'package:mood_diary/components/loading/loading.dart'; -import 'package:mood_diary/components/tile/setting_tile.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/common/values/border.dart'; +import 'package:moodiary/components/base/button.dart'; +import 'package:moodiary/components/base/text.dart'; +import 'package:moodiary/components/loading/loading.dart'; +import 'package:moodiary/components/tile/setting_tile.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'package:rive_animated_icon/rive_animated_icon.dart'; diff --git a/lib/pages/home/assistant/assistant_logic.dart b/lib/pages/home/assistant/assistant_logic.dart index 37cbebc..f8ed5a5 100644 --- a/lib/pages/home/assistant/assistant_logic.dart +++ b/lib/pages/home/assistant/assistant_logic.dart @@ -2,13 +2,13 @@ import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:mood_diary/api/api.dart'; -import 'package:mood_diary/common/models/hunyuan.dart'; -import 'package:mood_diary/common/values/keyboard_state.dart'; -import 'package:mood_diary/utils/signature_util.dart'; +import 'package:moodiary/api/api.dart'; +import 'package:moodiary/common/models/hunyuan.dart'; +import 'package:moodiary/common/values/keyboard_state.dart'; +import 'package:moodiary/utils/notice_util.dart'; +import 'package:moodiary/utils/signature_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../../utils/notice_util.dart'; import 'assistant_state.dart'; class AssistantLogic extends GetxController with WidgetsBindingObserver { diff --git a/lib/pages/home/assistant/assistant_state.dart b/lib/pages/home/assistant/assistant_state.dart index 4f24b31..5420d46 100644 --- a/lib/pages/home/assistant/assistant_state.dart +++ b/lib/pages/home/assistant/assistant_state.dart @@ -1,5 +1,5 @@ -import 'package:mood_diary/common/models/hunyuan.dart'; -import 'package:mood_diary/common/values/keyboard_state.dart'; +import 'package:moodiary/common/models/hunyuan.dart'; +import 'package:moodiary/common/values/keyboard_state.dart'; import 'package:refreshed/refreshed.dart'; class AssistantState { diff --git a/lib/pages/home/assistant/assistant_view.dart b/lib/pages/home/assistant/assistant_view.dart index 8bdb82e..ff3989e 100644 --- a/lib/pages/home/assistant/assistant_view.dart +++ b/lib/pages/home/assistant/assistant_view.dart @@ -2,12 +2,12 @@ import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:intl/intl.dart'; import 'package:markdown_widget/markdown_widget.dart'; -import 'package:mood_diary/common/values/border.dart'; -import 'package:mood_diary/components/base/button.dart'; -import 'package:mood_diary/components/base/text.dart'; +import 'package:moodiary/common/values/border.dart'; +import 'package:moodiary/components/base/button.dart'; +import 'package:moodiary/components/base/text.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; -import '../../../main.dart'; import 'assistant_logic.dart'; class AssistantPage extends StatelessWidget { diff --git a/lib/pages/home/calendar/calendar_logic.dart b/lib/pages/home/calendar/calendar_logic.dart index 571bfa8..77ac0ad 100644 --- a/lib/pages/home/calendar/calendar_logic.dart +++ b/lib/pages/home/calendar/calendar_logic.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/utils/log_util.dart'; +import 'package:moodiary/utils/data/isar.dart'; +import 'package:moodiary/utils/log_util.dart'; import 'package:refreshed/refreshed.dart'; import 'package:scrollable_positioned_list/scrollable_positioned_list.dart'; -import '../../../utils/data/isar.dart'; import 'calendar_state.dart'; class CalendarLogic extends GetxController { diff --git a/lib/pages/home/calendar/calendar_state.dart b/lib/pages/home/calendar/calendar_state.dart index 936e29e..800bfe6 100644 --- a/lib/pages/home/calendar/calendar_state.dart +++ b/lib/pages/home/calendar/calendar_state.dart @@ -1,4 +1,4 @@ -import 'package:mood_diary/common/models/isar/diary.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; import 'package:refreshed/refreshed.dart'; class CalendarState { diff --git a/lib/pages/home/calendar/calendar_view.dart b/lib/pages/home/calendar/calendar_view.dart index ce3ef99..3a246ab 100644 --- a/lib/pages/home/calendar/calendar_view.dart +++ b/lib/pages/home/calendar/calendar_view.dart @@ -1,11 +1,11 @@ import 'package:calendar_date_picker2/calendar_date_picker2.dart'; import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; -import 'package:mood_diary/common/values/colors.dart'; -import 'package:mood_diary/components/diary_card/calendar_diary_card_view.dart'; -import 'package:mood_diary/components/loading/loading.dart'; -import 'package:mood_diary/components/time_line/time_line_view.dart'; -import 'package:mood_diary/utils/array_util.dart'; +import 'package:moodiary/common/values/colors.dart'; +import 'package:moodiary/components/diary_card/calendar_diary_card_view.dart'; +import 'package:moodiary/components/loading/loading.dart'; +import 'package:moodiary/components/time_line/time_line_view.dart'; +import 'package:moodiary/utils/array_util.dart'; import 'package:refreshed/refreshed.dart'; import 'package:scrollable_positioned_list/scrollable_positioned_list.dart'; diff --git a/lib/pages/home/diary/diary_logic.dart b/lib/pages/home/diary/diary_logic.dart index 6361352..4affa61 100644 --- a/lib/pages/home/diary/diary_logic.dart +++ b/lib/pages/home/diary/diary_logic.dart @@ -1,16 +1,16 @@ import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; -import 'package:mood_diary/common/values/view_mode.dart'; -import 'package:mood_diary/components/diary_tab_view/diary_tab_view_logic.dart'; -import 'package:mood_diary/components/scroll/fix_scroll.dart'; -import 'package:mood_diary/pages/home/home_logic.dart'; +import 'package:moodiary/api/api.dart'; +import 'package:moodiary/common/values/view_mode.dart'; +import 'package:moodiary/components/diary_tab_view/diary_tab_view_logic.dart'; +import 'package:moodiary/components/scroll/fix_scroll.dart'; +import 'package:moodiary/pages/home/home_logic.dart'; +import 'package:moodiary/utils/cache_util.dart'; +import 'package:moodiary/utils/data/isar.dart'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/webdav_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../../api/api.dart'; -import '../../../utils/cache_util.dart'; -import '../../../utils/data/isar.dart'; -import '../../../utils/data/pref.dart'; -import '../../../utils/webdav_util.dart'; import 'diary_state.dart'; class DiaryLogic extends GetxController with GetTickerProviderStateMixin { diff --git a/lib/pages/home/diary/diary_state.dart b/lib/pages/home/diary/diary_state.dart index e4def53..4fe61a8 100644 --- a/lib/pages/home/diary/diary_state.dart +++ b/lib/pages/home/diary/diary_state.dart @@ -1,12 +1,11 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/common/models/isar/category.dart'; -import 'package:mood_diary/common/values/view_mode.dart'; -import 'package:mood_diary/components/scroll/fix_scroll.dart'; +import 'package:moodiary/common/models/isar/category.dart'; +import 'package:moodiary/common/values/view_mode.dart'; +import 'package:moodiary/components/scroll/fix_scroll.dart'; +import 'package:moodiary/utils/data/isar.dart'; +import 'package:moodiary/utils/data/pref.dart'; import 'package:refreshed/refreshed.dart'; -import '../../../utils/data/isar.dart'; -import '../../../utils/data/pref.dart'; - class DiaryState { //自定义标题名称,如果为空则为默认值 late String customTitleName; diff --git a/lib/pages/home/diary/diary_view.dart b/lib/pages/home/diary/diary_view.dart index 9509bba..5af109e 100644 --- a/lib/pages/home/diary/diary_view.dart +++ b/lib/pages/home/diary/diary_view.dart @@ -2,20 +2,20 @@ import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; -import 'package:mood_diary/common/values/view_mode.dart'; -import 'package:mood_diary/components/base/sheet.dart'; -import 'package:mood_diary/components/base/text.dart'; -import 'package:mood_diary/components/category_choice_sheet/category_choice_sheet_view.dart'; -import 'package:mood_diary/components/diary_tab_view/diary_tab_view_view.dart'; -import 'package:mood_diary/components/keepalive/keepalive.dart'; -import 'package:mood_diary/components/scroll/fix_scroll.dart'; -import 'package:mood_diary/components/search_sheet/search_sheet_view.dart'; -import 'package:mood_diary/components/sync_dash_board/sync_dash_board_view.dart'; +import 'package:moodiary/common/values/view_mode.dart'; +import 'package:moodiary/components/base/sheet.dart'; +import 'package:moodiary/components/base/text.dart'; +import 'package:moodiary/components/category_choice_sheet/category_choice_sheet_view.dart'; +import 'package:moodiary/components/diary_tab_view/diary_tab_view_view.dart'; +import 'package:moodiary/components/keepalive/keepalive.dart'; +import 'package:moodiary/components/scroll/fix_scroll.dart'; +import 'package:moodiary/components/search_sheet/search_sheet_view.dart'; +import 'package:moodiary/components/sync_dash_board/sync_dash_board_view.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/utils/webdav_util.dart'; import 'package:refreshed/refreshed.dart'; import 'package:rive_animated_icon/rive_animated_icon.dart'; -import '../../../main.dart'; -import '../../../utils/webdav_util.dart'; import 'diary_logic.dart'; class DiaryPage extends StatelessWidget { diff --git a/lib/pages/home/home_logic.dart b/lib/pages/home/home_logic.dart index b26ee57..e8ec362 100644 --- a/lib/pages/home/home_logic.dart +++ b/lib/pages/home/home_logic.dart @@ -2,14 +2,14 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:mood_diary/components/frosted_glass_overlay/frosted_glass_overlay_logic.dart'; -import 'package:mood_diary/pages/home/diary/diary_logic.dart'; -import 'package:mood_diary/router/app_routes.dart'; +import 'package:moodiary/common/values/diary_type.dart'; +import 'package:moodiary/components/frosted_glass_overlay/frosted_glass_overlay_logic.dart'; +import 'package:moodiary/pages/home/diary/diary_logic.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/data/supabase.dart'; import 'package:refreshed/refreshed.dart'; -import '../../common/values/diary_type.dart'; -import '../../utils/data/pref.dart'; -import '../../utils/data/supabase.dart'; import 'home_state.dart'; class HomeLogic extends GetxController with GetTickerProviderStateMixin { diff --git a/lib/pages/home/home_view.dart b/lib/pages/home/home_view.dart index f9d3305..4d1736b 100644 --- a/lib/pages/home/home_view.dart +++ b/lib/pages/home/home_view.dart @@ -3,16 +3,16 @@ import 'dart:math'; import 'package:flutter/material.dart'; import 'package:flutter_adaptive_scaffold/flutter_adaptive_scaffold.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; -import 'package:mood_diary/common/values/border.dart'; -import 'package:mood_diary/common/values/diary_type.dart'; -import 'package:mood_diary/pages/home/calendar/calendar_view.dart'; -import 'package:mood_diary/pages/home/diary/diary_view.dart'; -import 'package:mood_diary/pages/home/media/media_view.dart'; -import 'package:mood_diary/pages/home/setting/setting_view.dart'; +import 'package:moodiary/common/values/border.dart'; +import 'package:moodiary/common/values/diary_type.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/pages/home/calendar/calendar_view.dart'; +import 'package:moodiary/pages/home/diary/diary_view.dart'; +import 'package:moodiary/pages/home/media/media_view.dart'; +import 'package:moodiary/pages/home/setting/setting_view.dart'; import 'package:refreshed/refreshed.dart'; import 'package:unicons/unicons.dart'; -import '../../main.dart'; import 'home_logic.dart'; class HomePage extends StatelessWidget { diff --git a/lib/pages/home/media/media_logic.dart b/lib/pages/home/media/media_logic.dart index 8f6af02..a84bc51 100644 --- a/lib/pages/home/media/media_logic.dart +++ b/lib/pages/home/media/media_logic.dart @@ -1,12 +1,12 @@ import 'package:flutter/animation.dart'; import 'package:flutter/foundation.dart'; -import 'package:mood_diary/common/values/media_type.dart'; +import 'package:moodiary/common/values/media_type.dart'; +import 'package:moodiary/utils/file_util.dart'; +import 'package:moodiary/utils/media_util.dart'; +import 'package:moodiary/utils/notice_util.dart'; import 'package:refreshed/refreshed.dart'; import 'package:scrollable_positioned_list/scrollable_positioned_list.dart'; -import '../../../utils/file_util.dart'; -import '../../../utils/media_util.dart'; -import '../../../utils/notice_util.dart'; import 'media_state.dart'; class MediaLogic extends GetxController with GetSingleTickerProviderStateMixin { diff --git a/lib/pages/home/media/media_state.dart b/lib/pages/home/media/media_state.dart index 208360b..e34c533 100644 --- a/lib/pages/home/media/media_state.dart +++ b/lib/pages/home/media/media_state.dart @@ -1,4 +1,4 @@ -import 'package:mood_diary/common/values/media_type.dart'; +import 'package:moodiary/common/values/media_type.dart'; import 'package:refreshed/refreshed.dart'; class MediaState { diff --git a/lib/pages/home/media/media_view.dart b/lib/pages/home/media/media_view.dart index 2bd899e..2df7d5e 100644 --- a/lib/pages/home/media/media_view.dart +++ b/lib/pages/home/media/media_view.dart @@ -1,17 +1,17 @@ import 'package:calendar_date_picker2/calendar_date_picker2.dart'; import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; -import 'package:mood_diary/common/values/border.dart'; -import 'package:mood_diary/common/values/media_type.dart'; -import 'package:mood_diary/components/loading/loading.dart'; -import 'package:mood_diary/components/lottie_modal/lottie_modal.dart'; -import 'package:mood_diary/components/media/media_audio_view.dart'; -import 'package:mood_diary/components/media/media_video_view.dart'; +import 'package:moodiary/common/values/border.dart'; +import 'package:moodiary/common/values/media_type.dart'; +import 'package:moodiary/components/loading/loading.dart'; +import 'package:moodiary/components/lottie_modal/lottie_modal.dart'; +import 'package:moodiary/components/media/media_audio_view.dart'; +import 'package:moodiary/components/media/media_image_view.dart'; +import 'package:moodiary/components/media/media_video_view.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'package:scrollable_positioned_list/scrollable_positioned_list.dart'; -import '../../../components/media/media_image_view.dart'; -import '../../../main.dart'; import 'media_logic.dart'; class MediaPage extends StatelessWidget { diff --git a/lib/pages/home/setting/setting_logic.dart b/lib/pages/home/setting/setting_logic.dart index 7e130d4..06f2d0e 100644 --- a/lib/pages/home/setting/setting_logic.dart +++ b/lib/pages/home/setting/setting_logic.dart @@ -1,15 +1,15 @@ import 'dart:async'; import 'package:flutter/services.dart'; -import 'package:mood_diary/components/dashboard/dashboard_logic.dart'; -import 'package:mood_diary/pages/home/diary/diary_logic.dart'; -import 'package:mood_diary/pages/home/home_logic.dart'; -import 'package:mood_diary/router/app_routes.dart'; +import 'package:moodiary/components/dashboard/dashboard_logic.dart'; +import 'package:moodiary/pages/home/diary/diary_logic.dart'; +import 'package:moodiary/pages/home/home_logic.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/file_util.dart'; +import 'package:moodiary/utils/notice_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../../utils/data/pref.dart'; -import '../../../utils/file_util.dart'; -import '../../../utils/notice_util.dart'; import 'setting_state.dart'; class SettingLogic extends GetxController { diff --git a/lib/pages/home/setting/setting_state.dart b/lib/pages/home/setting/setting_state.dart index 17f0608..a8ab9bb 100644 --- a/lib/pages/home/setting/setting_state.dart +++ b/lib/pages/home/setting/setting_state.dart @@ -1,8 +1,7 @@ -import 'package:mood_diary/common/values/language.dart'; +import 'package:moodiary/common/values/language.dart'; +import 'package:moodiary/utils/data/pref.dart'; import 'package:refreshed/refreshed.dart'; -import '../../../utils/data/pref.dart'; - class SettingState { //当前占用空间 String dataUsage = ''; diff --git a/lib/pages/home/setting/setting_view.dart b/lib/pages/home/setting/setting_view.dart index 7277463..ba66d18 100644 --- a/lib/pages/home/setting/setting_view.dart +++ b/lib/pages/home/setting/setting_view.dart @@ -1,21 +1,21 @@ import 'package:adaptive_dialog/adaptive_dialog.dart'; import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; -import 'package:mood_diary/common/values/border.dart'; -import 'package:mood_diary/common/values/colors.dart'; -import 'package:mood_diary/common/values/language.dart'; -import 'package:mood_diary/components/base/sheet.dart'; -import 'package:mood_diary/components/base/text.dart'; -import 'package:mood_diary/components/color_sheet/color_sheet_view.dart'; -import 'package:mood_diary/components/dashboard/dashboard_view.dart'; -import 'package:mood_diary/components/language_dialog/language_dialog_view.dart'; -import 'package:mood_diary/components/remove_password/remove_password_view.dart'; -import 'package:mood_diary/components/set_password/set_password_view.dart'; -import 'package:mood_diary/components/theme_mode_dialog/theme_mode_dialog_view.dart'; -import 'package:mood_diary/components/tile/setting_tile.dart'; +import 'package:moodiary/common/values/border.dart'; +import 'package:moodiary/common/values/colors.dart'; +import 'package:moodiary/common/values/language.dart'; +import 'package:moodiary/components/base/sheet.dart'; +import 'package:moodiary/components/base/text.dart'; +import 'package:moodiary/components/color_sheet/color_sheet_view.dart'; +import 'package:moodiary/components/dashboard/dashboard_view.dart'; +import 'package:moodiary/components/language_dialog/language_dialog_view.dart'; +import 'package:moodiary/components/remove_password/remove_password_view.dart'; +import 'package:moodiary/components/set_password/set_password_view.dart'; +import 'package:moodiary/components/theme_mode_dialog/theme_mode_dialog_view.dart'; +import 'package:moodiary/components/tile/setting_tile.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; -import '../../../main.dart'; import 'setting_logic.dart'; class SettingPage extends StatelessWidget { diff --git a/lib/pages/image/image_view.dart b/lib/pages/image/image_view.dart index 94036c8..8c8c94e 100644 --- a/lib/pages/image/image_view.dart +++ b/lib/pages/image/image_view.dart @@ -1,9 +1,9 @@ import 'dart:io'; import 'package:flutter/material.dart'; -import 'package:mood_diary/common/values/media_type.dart'; -import 'package:mood_diary/components/base/button.dart'; -import 'package:mood_diary/utils/media_util.dart'; +import 'package:moodiary/common/values/media_type.dart'; +import 'package:moodiary/components/base/button.dart'; +import 'package:moodiary/utils/media_util.dart'; import 'package:photo_view/photo_view.dart'; import 'package:photo_view/photo_view_gallery.dart'; import 'package:refreshed/refreshed.dart'; diff --git a/lib/pages/laboratory/laboratory_logic.dart b/lib/pages/laboratory/laboratory_logic.dart index 93d0872..1fd10dd 100644 --- a/lib/pages/laboratory/laboratory_logic.dart +++ b/lib/pages/laboratory/laboratory_logic.dart @@ -1,13 +1,12 @@ import 'dart:async'; import 'dart:io'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/file_util.dart'; +import 'package:moodiary/utils/notice_util.dart'; import 'package:refreshed/refreshed.dart'; import 'package:share_plus/share_plus.dart'; -import '../../utils/data/pref.dart'; -import '../../utils/file_util.dart'; -import '../../utils/notice_util.dart'; - class LaboratoryLogic extends GetxController { Future setTencentID({required String id, required String key}) async { await PrefUtil.setValue('tencentId', id); diff --git a/lib/pages/laboratory/laboratory_view.dart b/lib/pages/laboratory/laboratory_view.dart index d78dbed..8fa360b 100644 --- a/lib/pages/laboratory/laboratory_view.dart +++ b/lib/pages/laboratory/laboratory_view.dart @@ -1,10 +1,10 @@ import 'package:adaptive_dialog/adaptive_dialog.dart'; import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/utils/data/pref.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/pref.dart'; import 'laboratory_logic.dart'; class LaboratoryPage extends StatelessWidget { diff --git a/lib/pages/lock/lock_logic.dart b/lib/pages/lock/lock_logic.dart index b8f52c3..0a1e63d 100644 --- a/lib/pages/lock/lock_logic.dart +++ b/lib/pages/lock/lock_logic.dart @@ -1,7 +1,7 @@ import 'package:flutter/animation.dart'; import 'package:flutter/services.dart'; -import 'package:mood_diary/router/app_routes.dart'; -import 'package:mood_diary/utils/auth_util.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/utils/auth_util.dart'; import 'package:refreshed/refreshed.dart'; import 'lock_state.dart'; diff --git a/lib/pages/lock/lock_state.dart b/lib/pages/lock/lock_state.dart index ef8981f..e5243a5 100644 --- a/lib/pages/lock/lock_state.dart +++ b/lib/pages/lock/lock_state.dart @@ -1,7 +1,6 @@ +import 'package:moodiary/utils/data/pref.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/pref.dart'; - class LockState { late RxString password; diff --git a/lib/pages/lock/lock_view.dart b/lib/pages/lock/lock_view.dart index 54ad196..2a125d1 100644 --- a/lib/pages/lock/lock_view.dart +++ b/lib/pages/lock/lock_view.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; -import 'package:mood_diary/main.dart'; -import 'package:mood_diary/utils/auth_util.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/utils/auth_util.dart'; import 'package:refreshed/refreshed.dart'; import 'lock_logic.dart'; diff --git a/lib/pages/login/login_view.dart b/lib/pages/login/login_view.dart index dd027b9..a3d2cb2 100644 --- a/lib/pages/login/login_view.dart +++ b/lib/pages/login/login_view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/components/login_form/login_form_view.dart'; -import 'package:mood_diary/components/register_form/register_form_view.dart'; +import 'package:moodiary/components/login_form/login_form_view.dart'; +import 'package:moodiary/components/register_form/register_form_view.dart'; import 'package:refreshed/refreshed.dart'; import 'login_logic.dart'; diff --git a/lib/pages/map/map_logic.dart b/lib/pages/map/map_logic.dart index d05583d..6a23587 100644 --- a/lib/pages/map/map_logic.dart +++ b/lib/pages/map/map_logic.dart @@ -2,15 +2,15 @@ import 'package:flutter/services.dart'; import 'package:flutter_map/flutter_map.dart'; import 'package:geolocator/geolocator.dart'; import 'package:latlong2/latlong.dart'; -import 'package:mood_diary/pages/diary_details/diary_details_logic.dart'; -import 'package:mood_diary/router/app_routes.dart'; -import 'package:mood_diary/utils/permission_util.dart'; +import 'package:moodiary/pages/diary_details/diary_details_logic.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/utils/data/isar.dart'; +import 'package:moodiary/utils/log_util.dart'; +import 'package:moodiary/utils/notice_util.dart'; +import 'package:moodiary/utils/permission_util.dart'; import 'package:permission_handler/permission_handler.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/isar.dart'; -import '../../utils/log_util.dart'; -import '../../utils/notice_util.dart'; import 'map_state.dart'; class MapLogic extends GetxController { diff --git a/lib/pages/map/map_state.dart b/lib/pages/map/map_state.dart index 2c3e9fb..9043cfd 100644 --- a/lib/pages/map/map_state.dart +++ b/lib/pages/map/map_state.dart @@ -1,9 +1,8 @@ import 'dart:math'; import 'package:latlong2/latlong.dart'; -import 'package:mood_diary/common/models/map.dart'; - -import '../../utils/data/pref.dart'; +import 'package:moodiary/common/models/map.dart'; +import 'package:moodiary/utils/data/pref.dart'; class MapState { LatLng? currentLatLng; diff --git a/lib/pages/map/map_view.dart b/lib/pages/map/map_view.dart index 7e67c2f..110f3e1 100644 --- a/lib/pages/map/map_view.dart +++ b/lib/pages/map/map_view.dart @@ -5,12 +5,12 @@ import 'package:flutter_map/flutter_map.dart'; import 'package:flutter_map_marker_cluster/flutter_map_marker_cluster.dart'; import 'package:flutter_map_tile_caching/flutter_map_tile_caching.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; -import 'package:mood_diary/components/base/button.dart'; -import 'package:mood_diary/components/bubble/bubble_view.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/components/base/button.dart'; +import 'package:moodiary/components/bubble/bubble_view.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/utils/file_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/file_util.dart'; import 'map_logic.dart'; class MapPage extends StatelessWidget { diff --git a/lib/pages/recycle/recycle_logic.dart b/lib/pages/recycle/recycle_logic.dart index 83c7cb8..b14684b 100644 --- a/lib/pages/recycle/recycle_logic.dart +++ b/lib/pages/recycle/recycle_logic.dart @@ -1,11 +1,11 @@ -import 'package:mood_diary/common/models/isar/diary.dart'; -import 'package:mood_diary/pages/home/diary/diary_logic.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/pages/home/diary/diary_logic.dart'; +import 'package:moodiary/utils/data/isar.dart'; +import 'package:moodiary/utils/file_util.dart'; +import 'package:moodiary/utils/notice_util.dart'; +import 'package:moodiary/utils/webdav_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/isar.dart'; -import '../../utils/file_util.dart'; -import '../../utils/notice_util.dart'; -import '../../utils/webdav_util.dart'; import 'recycle_state.dart'; class RecycleLogic extends GetxController { diff --git a/lib/pages/recycle/recycle_state.dart b/lib/pages/recycle/recycle_state.dart index bafd426..a9ac7a6 100644 --- a/lib/pages/recycle/recycle_state.dart +++ b/lib/pages/recycle/recycle_state.dart @@ -1,4 +1,4 @@ -import 'package:mood_diary/common/models/isar/diary.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; class RecycleState { //回收站日记数组 diff --git a/lib/pages/recycle/recycle_view.dart b/lib/pages/recycle/recycle_view.dart index cacf2eb..282a51c 100644 --- a/lib/pages/recycle/recycle_view.dart +++ b/lib/pages/recycle/recycle_view.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/components/base/button.dart'; -import 'package:mood_diary/components/tile/setting_tile.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/components/base/button.dart'; +import 'package:moodiary/components/tile/setting_tile.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'recycle_logic.dart'; diff --git a/lib/pages/share/share_logic.dart b/lib/pages/share/share_logic.dart index f805348..d9536ac 100644 --- a/lib/pages/share/share_logic.dart +++ b/lib/pages/share/share_logic.dart @@ -4,11 +4,11 @@ import 'dart:ui'; import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; +import 'package:moodiary/utils/file_util.dart'; import 'package:refreshed/refreshed.dart'; import 'package:share_plus/share_plus.dart'; import 'package:uuid/uuid.dart'; -import '../../utils/file_util.dart'; import 'share_state.dart'; class ShareLogic extends GetxController { diff --git a/lib/pages/share/share_state.dart b/lib/pages/share/share_state.dart index cbf459f..a9785e5 100644 --- a/lib/pages/share/share_state.dart +++ b/lib/pages/share/share_state.dart @@ -1,5 +1,5 @@ import 'package:flutter/cupertino.dart'; -import 'package:mood_diary/common/models/isar/diary.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; class ShareState { late GlobalKey key; diff --git a/lib/pages/share/share_view.dart b/lib/pages/share/share_view.dart index f8c1af0..11ea06d 100644 --- a/lib/pages/share/share_view.dart +++ b/lib/pages/share/share_view.dart @@ -1,12 +1,12 @@ import 'dart:io'; import 'package:flutter/material.dart'; -import 'package:mood_diary/common/values/icons.dart'; -import 'package:mood_diary/components/mood_icon/mood_icon_view.dart'; +import 'package:moodiary/common/values/icons.dart'; +import 'package:moodiary/components/mood_icon/mood_icon_view.dart'; +import 'package:moodiary/main.dart'; +import 'package:moodiary/utils/file_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../main.dart'; -import '../../utils/file_util.dart'; import 'share_logic.dart'; class SharePage extends StatelessWidget { diff --git a/lib/pages/sponsor/sponsor_view.dart b/lib/pages/sponsor/sponsor_view.dart index a49fca7..e5dd78f 100644 --- a/lib/pages/sponsor/sponsor_view.dart +++ b/lib/pages/sponsor/sponsor_view.dart @@ -3,8 +3,8 @@ import 'dart:math'; import 'package:confetti/confetti.dart'; import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; -import 'package:mood_diary/components/base/button.dart'; -import 'package:mood_diary/main.dart'; +import 'package:moodiary/components/base/button.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; import 'sponsor_logic.dart'; diff --git a/lib/pages/start/start_logic.dart b/lib/pages/start/start_logic.dart index ea227e5..5f06a5d 100644 --- a/lib/pages/start/start_logic.dart +++ b/lib/pages/start/start_logic.dart @@ -3,14 +3,13 @@ import 'dart:io'; import 'package:crypto/crypto.dart'; import 'package:device_info_plus/device_info_plus.dart'; -import 'package:mood_diary/router/app_routes.dart'; -import 'package:mood_diary/utils/channel.dart'; -import 'package:mood_diary/utils/package_util.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/utils/channel.dart'; +import 'package:moodiary/utils/data/pref.dart'; +import 'package:moodiary/utils/package_util.dart'; import 'package:refreshed/refreshed.dart'; import 'package:uuid/uuid.dart'; -import '../../utils/data/pref.dart'; - class StartLogic extends GetxController { void toPrivacy() { Get.toNamed(AppRoutes.privacyPage); diff --git a/lib/pages/start/start_view.dart b/lib/pages/start/start_view.dart index 9c1ee20..c29bf63 100644 --- a/lib/pages/start/start_view.dart +++ b/lib/pages/start/start_view.dart @@ -2,9 +2,9 @@ import 'dart:io'; import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; +import 'package:moodiary/main.dart'; import 'package:refreshed/refreshed.dart'; -import '../../main.dart'; import 'start_logic.dart'; class StartPage extends StatelessWidget { diff --git a/lib/pages/user/user_logic.dart b/lib/pages/user/user_logic.dart index b0369ee..44a7259 100644 --- a/lib/pages/user/user_logic.dart +++ b/lib/pages/user/user_logic.dart @@ -1,7 +1,7 @@ -import 'package:mood_diary/router/app_routes.dart'; +import 'package:moodiary/router/app_routes.dart'; +import 'package:moodiary/utils/data/supabase.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/data/supabase.dart'; import 'user_state.dart'; class UserLogic extends GetxController { diff --git a/lib/pages/user/user_state.dart b/lib/pages/user/user_state.dart index 8626ce5..654c28a 100644 --- a/lib/pages/user/user_state.dart +++ b/lib/pages/user/user_state.dart @@ -1,7 +1,6 @@ +import 'package:moodiary/utils/data/supabase.dart'; import 'package:supabase_flutter/supabase_flutter.dart'; -import '../../utils/data/supabase.dart'; - class UserState { late User? user = SupabaseUtil().user; diff --git a/lib/pages/user/user_view.dart b/lib/pages/user/user_view.dart index c36c7c2..5c15b96 100644 --- a/lib/pages/user/user_view.dart +++ b/lib/pages/user/user_view.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; +import 'package:moodiary/utils/log_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/log_util.dart'; import 'user_logic.dart'; class UserPage extends StatelessWidget { diff --git a/lib/pages/video/video_view.dart b/lib/pages/video/video_view.dart index 497177a..2ecaf81 100644 --- a/lib/pages/video/video_view.dart +++ b/lib/pages/video/video_view.dart @@ -2,10 +2,10 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:media_kit_video/media_kit_video.dart'; -import 'package:mood_diary/common/values/media_type.dart'; +import 'package:moodiary/common/values/media_type.dart'; +import 'package:moodiary/utils/media_util.dart'; import 'package:refreshed/refreshed.dart'; -import '../../utils/media_util.dart'; import 'video_logic.dart'; class VideoPage extends StatelessWidget { diff --git a/lib/pages/web_view/web_view_view.dart b/lib/pages/web_view/web_view_view.dart index ef6e2cc..c98e323 100644 --- a/lib/pages/web_view/web_view_view.dart +++ b/lib/pages/web_view/web_view_view.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart'; -import 'package:mood_diary/common/values/colors.dart'; -import 'package:mood_diary/pages/web_view/web_view_state.dart'; +import 'package:moodiary/common/values/colors.dart'; +import 'package:moodiary/pages/web_view/web_view_state.dart'; import 'package:refreshed/refreshed.dart'; import 'web_view_logic.dart'; diff --git a/lib/router/app_pages.dart b/lib/router/app_pages.dart index 1f68d9b..0e733a8 100644 --- a/lib/router/app_pages.dart +++ b/lib/router/app_pages.dart @@ -1,48 +1,48 @@ -import 'package:mood_diary/pages/about/about_logic.dart'; -import 'package:mood_diary/pages/about/about_view.dart'; -import 'package:mood_diary/pages/agreement/agreement_view.dart'; -import 'package:mood_diary/pages/analyse/analyse_logic.dart'; -import 'package:mood_diary/pages/analyse/analyse_view.dart'; -import 'package:mood_diary/pages/backup_sync/backup_sync_logic.dart'; -import 'package:mood_diary/pages/backup_sync/backup_sync_view.dart'; -import 'package:mood_diary/pages/category_manager/category_manager_logic.dart'; -import 'package:mood_diary/pages/category_manager/category_manager_view.dart'; -import 'package:mood_diary/pages/diary_details/diary_details_view.dart'; -import 'package:mood_diary/pages/diary_setting/diary_setting_logic.dart'; -import 'package:mood_diary/pages/diary_setting/diary_setting_view.dart'; -import 'package:mood_diary/pages/draw/draw_logic.dart'; -import 'package:mood_diary/pages/draw/draw_view.dart'; -import 'package:mood_diary/pages/edit/edit_logic.dart'; -import 'package:mood_diary/pages/edit/edit_view.dart'; -import 'package:mood_diary/pages/font/font_logic.dart'; -import 'package:mood_diary/pages/font/font_view.dart'; -import 'package:mood_diary/pages/home/assistant/assistant_logic.dart'; -import 'package:mood_diary/pages/home/assistant/assistant_view.dart'; -import 'package:mood_diary/pages/home/home_logic.dart'; -import 'package:mood_diary/pages/home/home_view.dart'; -import 'package:mood_diary/pages/image/image_logic.dart'; -import 'package:mood_diary/pages/image/image_view.dart'; -import 'package:mood_diary/pages/laboratory/laboratory_logic.dart'; -import 'package:mood_diary/pages/laboratory/laboratory_view.dart'; -import 'package:mood_diary/pages/lock/lock_logic.dart'; -import 'package:mood_diary/pages/lock/lock_view.dart'; -import 'package:mood_diary/pages/login/login_logic.dart'; -import 'package:mood_diary/pages/login/login_view.dart'; -import 'package:mood_diary/pages/map/map_logic.dart'; -import 'package:mood_diary/pages/map/map_view.dart'; -import 'package:mood_diary/pages/privacy/privacy_logic.dart'; -import 'package:mood_diary/pages/privacy/privacy_view.dart'; -import 'package:mood_diary/pages/recycle/recycle_logic.dart'; -import 'package:mood_diary/pages/recycle/recycle_view.dart'; -import 'package:mood_diary/pages/share/share_logic.dart'; -import 'package:mood_diary/pages/share/share_view.dart'; -import 'package:mood_diary/pages/sponsor/sponsor_view.dart'; -import 'package:mood_diary/pages/start/start_logic.dart'; -import 'package:mood_diary/pages/start/start_view.dart'; -import 'package:mood_diary/pages/user/user_logic.dart'; -import 'package:mood_diary/pages/user/user_view.dart'; -import 'package:mood_diary/pages/video/video_logic.dart'; -import 'package:mood_diary/pages/video/video_view.dart'; +import 'package:moodiary/pages/about/about_logic.dart'; +import 'package:moodiary/pages/about/about_view.dart'; +import 'package:moodiary/pages/agreement/agreement_view.dart'; +import 'package:moodiary/pages/analyse/analyse_logic.dart'; +import 'package:moodiary/pages/analyse/analyse_view.dart'; +import 'package:moodiary/pages/backup_sync/backup_sync_logic.dart'; +import 'package:moodiary/pages/backup_sync/backup_sync_view.dart'; +import 'package:moodiary/pages/category_manager/category_manager_logic.dart'; +import 'package:moodiary/pages/category_manager/category_manager_view.dart'; +import 'package:moodiary/pages/diary_details/diary_details_view.dart'; +import 'package:moodiary/pages/diary_setting/diary_setting_logic.dart'; +import 'package:moodiary/pages/diary_setting/diary_setting_view.dart'; +import 'package:moodiary/pages/draw/draw_logic.dart'; +import 'package:moodiary/pages/draw/draw_view.dart'; +import 'package:moodiary/pages/edit/edit_logic.dart'; +import 'package:moodiary/pages/edit/edit_view.dart'; +import 'package:moodiary/pages/font/font_logic.dart'; +import 'package:moodiary/pages/font/font_view.dart'; +import 'package:moodiary/pages/home/assistant/assistant_logic.dart'; +import 'package:moodiary/pages/home/assistant/assistant_view.dart'; +import 'package:moodiary/pages/home/home_logic.dart'; +import 'package:moodiary/pages/home/home_view.dart'; +import 'package:moodiary/pages/image/image_logic.dart'; +import 'package:moodiary/pages/image/image_view.dart'; +import 'package:moodiary/pages/laboratory/laboratory_logic.dart'; +import 'package:moodiary/pages/laboratory/laboratory_view.dart'; +import 'package:moodiary/pages/lock/lock_logic.dart'; +import 'package:moodiary/pages/lock/lock_view.dart'; +import 'package:moodiary/pages/login/login_logic.dart'; +import 'package:moodiary/pages/login/login_view.dart'; +import 'package:moodiary/pages/map/map_logic.dart'; +import 'package:moodiary/pages/map/map_view.dart'; +import 'package:moodiary/pages/privacy/privacy_logic.dart'; +import 'package:moodiary/pages/privacy/privacy_view.dart'; +import 'package:moodiary/pages/recycle/recycle_logic.dart'; +import 'package:moodiary/pages/recycle/recycle_view.dart'; +import 'package:moodiary/pages/share/share_logic.dart'; +import 'package:moodiary/pages/share/share_view.dart'; +import 'package:moodiary/pages/sponsor/sponsor_view.dart'; +import 'package:moodiary/pages/start/start_logic.dart'; +import 'package:moodiary/pages/start/start_view.dart'; +import 'package:moodiary/pages/user/user_logic.dart'; +import 'package:moodiary/pages/user/user_view.dart'; +import 'package:moodiary/pages/video/video_logic.dart'; +import 'package:moodiary/pages/video/video_view.dart'; import 'package:refreshed/refreshed.dart'; import '../pages/sponsor/sponsor_logic.dart'; diff --git a/lib/utils/data/isar.dart b/lib/utils/data/isar.dart index abf4a78..45f2da5 100644 --- a/lib/utils/data/isar.dart +++ b/lib/utils/data/isar.dart @@ -5,18 +5,18 @@ import 'package:flutter/material.dart'; import 'package:flutter_quill/flutter_quill.dart'; import 'package:isar/isar.dart'; import 'package:latlong2/latlong.dart'; -import 'package:mood_diary/common/models/isar/category.dart'; -import 'package:mood_diary/common/models/isar/diary.dart'; -import 'package:mood_diary/common/models/isar/sync_record.dart'; -import 'package:mood_diary/common/models/map.dart'; -import 'package:mood_diary/common/values/diary_type.dart'; -import 'package:mood_diary/utils/data/pref.dart'; +import 'package:moodiary/common/models/isar/category.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/common/models/isar/sync_record.dart'; +import 'package:moodiary/common/models/map.dart'; +import 'package:moodiary/common/values/diary_type.dart'; +import 'package:moodiary/components/quill_embed/audio_embed.dart'; +import 'package:moodiary/components/quill_embed/image_embed.dart'; +import 'package:moodiary/components/quill_embed/video_embed.dart'; +import 'package:moodiary/utils/data/pref.dart'; import 'package:path/path.dart'; import 'package:uuid/uuid.dart'; -import '../../components/quill_embed/audio_embed.dart'; -import '../../components/quill_embed/image_embed.dart'; -import '../../components/quill_embed/video_embed.dart'; import '../file_util.dart'; import '../webdav_util.dart'; diff --git a/lib/utils/data/pref.dart b/lib/utils/data/pref.dart index 116be9e..3d2a44b 100644 --- a/lib/utils/data/pref.dart +++ b/lib/utils/data/pref.dart @@ -1,10 +1,10 @@ import 'package:flutter/foundation.dart'; -import 'package:mood_diary/common/values/colors.dart'; -import 'package:mood_diary/common/values/view_mode.dart'; -import 'package:mood_diary/utils/auth_util.dart'; -import 'package:mood_diary/utils/media_util.dart'; -import 'package:mood_diary/utils/package_util.dart'; -import 'package:mood_diary/utils/theme_util.dart'; +import 'package:moodiary/common/values/colors.dart'; +import 'package:moodiary/common/values/view_mode.dart'; +import 'package:moodiary/utils/auth_util.dart'; +import 'package:moodiary/utils/media_util.dart'; +import 'package:moodiary/utils/package_util.dart'; +import 'package:moodiary/utils/theme_util.dart'; import 'package:path_provider/path_provider.dart'; import 'package:shared_preferences/shared_preferences.dart'; diff --git a/lib/utils/data/supabase.dart b/lib/utils/data/supabase.dart index 3a8403c..083a86f 100644 --- a/lib/utils/data/supabase.dart +++ b/lib/utils/data/supabase.dart @@ -1,5 +1,5 @@ -import 'package:mood_diary/common/models/isar/diary.dart'; -import 'package:mood_diary/utils/data/pref.dart'; +import 'package:moodiary/common/models/isar/diary.dart'; +import 'package:moodiary/utils/data/pref.dart'; import 'package:supabase_flutter/supabase_flutter.dart'; class SupabaseUtil { diff --git a/lib/utils/http_util.dart b/lib/utils/http_util.dart index 57ad5df..54461ad 100644 --- a/lib/utils/http_util.dart +++ b/lib/utils/http_util.dart @@ -3,7 +3,7 @@ import 'dart:convert'; import 'package:dio/dio.dart'; import 'package:flutter/foundation.dart'; -import 'package:mood_diary/utils/log_util.dart'; +import 'package:moodiary/utils/log_util.dart'; import 'notice_util.dart'; diff --git a/lib/utils/layout_util.dart b/lib/utils/layout_util.dart index f3cba60..aac3426 100644 --- a/lib/utils/layout_util.dart +++ b/lib/utils/layout_util.dart @@ -1,5 +1,5 @@ import 'package:flutter/services.dart'; -import 'package:mood_diary/common/values/size.dart'; +import 'package:moodiary/common/values/size.dart'; import 'package:refreshed/refreshed.dart'; class LayoutUtil { diff --git a/lib/utils/literunner.dart b/lib/utils/literunner.dart index 1b29ad2..8e5c529 100644 --- a/lib/utils/literunner.dart +++ b/lib/utils/literunner.dart @@ -1,7 +1,7 @@ import 'dart:typed_data'; -import 'package:mood_diary/common/models/tflite.dart'; -import 'package:mood_diary/utils/tokenization.dart'; +import 'package:moodiary/common/models/tflite.dart'; +import 'package:moodiary/utils/tokenization.dart'; import 'package:tflite_flutter/tflite_flutter.dart'; /// Runs inference with a TensorFlow Lite model. diff --git a/lib/utils/log_util.dart b/lib/utils/log_util.dart index 97f5840..649ad94 100644 --- a/lib/utils/log_util.dart +++ b/lib/utils/log_util.dart @@ -3,7 +3,7 @@ import 'dart:io'; import 'package:flutter/foundation.dart'; import 'package:logger/logger.dart'; -import 'package:mood_diary/utils/file_util.dart'; +import 'package:moodiary/utils/file_util.dart'; class FileOutput extends LogOutput { final bool overrideExisting; diff --git a/lib/utils/media_util.dart b/lib/utils/media_util.dart index 3d0567a..9916db6 100644 --- a/lib/utils/media_util.dart +++ b/lib/utils/media_util.dart @@ -9,9 +9,9 @@ import 'package:image_picker/image_picker.dart'; import 'package:image_picker_android/image_picker_android.dart'; import 'package:image_picker_platform_interface/image_picker_platform_interface.dart'; import 'package:mime/mime.dart'; -import 'package:mood_diary/src/rust/api/compress.dart'; -import 'package:mood_diary/utils/log_util.dart'; -import 'package:mood_diary/utils/notice_util.dart'; +import 'package:moodiary/src/rust/api/compress.dart'; +import 'package:moodiary/utils/log_util.dart'; +import 'package:moodiary/utils/notice_util.dart'; import 'package:path/path.dart'; import 'package:uuid/uuid.dart'; diff --git a/lib/utils/update_util.dart b/lib/utils/update_util.dart index d984a4f..3483e6d 100644 --- a/lib/utils/update_util.dart +++ b/lib/utils/update_util.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:mood_diary/api/api.dart'; -import 'package:mood_diary/components/update_dialog/update_dialog_view.dart'; +import 'package:moodiary/api/api.dart'; +import 'package:moodiary/components/update_dialog/update_dialog_view.dart'; import 'package:refreshed/refreshed.dart'; import 'notice_util.dart'; diff --git a/lib/utils/webdav_util.dart b/lib/utils/webdav_util.dart index ba0144d..68533e4 100644 --- a/lib/utils/webdav_util.dart +++ b/lib/utils/webdav_util.dart @@ -3,9 +3,9 @@ import 'dart:convert'; import 'dart:io'; import 'package:flutter/foundation.dart' as flutter; -import 'package:mood_diary/common/models/isar/category.dart'; -import 'package:mood_diary/common/values/webdav.dart'; -import 'package:mood_diary/pages/home/diary/diary_logic.dart'; +import 'package:moodiary/common/models/isar/category.dart'; +import 'package:moodiary/common/values/webdav.dart'; +import 'package:moodiary/pages/home/diary/diary_logic.dart'; import 'package:refreshed/refreshed.dart'; import 'package:webdav_client/webdav_client.dart' as webdav; diff --git a/pubspec.lock b/pubspec.lock index ff52109..7ba6b4a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1206,10 +1206,10 @@ packages: dependency: transitive description: name: http - sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010 + sha256: fe7ab022b76f3034adc518fb6ea04a82387620e19977665ea18d30a1cf43442f url: "https://pub.dev" source: hosted - version: "1.2.2" + version: "1.3.0" http_multi_server: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index a58df13..7bfe800 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ -name: mood_diary -description: "A new Flutter project." +name: moodiary +description: "A fully open source cross-platform diary app written by flutter and rust." publish_to: 'none' version: 2.7.1+71