Commit Graph

387 Commits

Author SHA1 Message Date
ZhuJHua
fb77e91a33 chore(*): bump version to 2.7.2+72
Update the application version in pubspec.yaml from 2.7.1+71 to 2.7.2+72.
v2.7.2
2025-01-27 15:47:43 +08:00
ZhuJHua
5f62a228f0 refactor(media): reconstruct the media library, with more animation and better performance 2025-01-27 15:39:34 +08:00
ZhuJHua
be911fbd17 feat(ui): enhance image viewing and navigation
-   Improve image viewing experience by adding hero animations to images within `media_image_view.dart`, `image_embed.dart` for both quill and markdown, and `image_view.dart`.
-   Refactor diary title display by removing the arrow icon and using a single text widget in `diary_view.dart`.
-  Set  `showCupertinoParallax: false`  to false in all routes.
-   Change default transition to  `Transition.native` in `main.dart`.
2025-01-26 11:31:04 +08:00
ZhuJHua
509d8f17e2 feat(home): add shadow option for the HomeFab component
This commit introduces a `showShadow` option to the `HomeFabComponent`, enabling the display of a shadow effect for the floating action button. The `HomeView` is updated to set `showShadow` to true.
2025-01-26 11:00:19 +08:00
ZhuJHua
686bd4f41a feat(markdown): support markdown editing and embed rendering
- Implement markdown editing feature with toolbar.
- Add rendering for image, audio, and video embeds in markdown content.
- Add markdown content preview.
- Refactor and improve drawing and photo picking features.
- Implement rendering of markdown syntax highlighting.
- Add markdown to text plain text conversion.
- Add markdown type for diary.
2025-01-26 10:57:37 +08:00
ZhuJHua
00395a27ac feat(ui): enhance diary card text visibility and format
- Changed the color of the time text in both `grid_diary_card_view` and `list_diary_card_view` to `onSurfaceVariant` for better visibility.
- Adjusted the `maxLines` property in `list_diary_card_view` based on whether the diary has a title, enhancing content readability.
- Changed the format of the time in list_diary_card_view to `yMMMMEEEEd().add_Hms()`.
2025-01-25 22:28:13 +08:00
ZhuJHua
93a4325aec feat(pubspec): add logo path for desktop
Add `logo_path` to pubspec.yaml for specifying the desktop application logo.
2025-01-25 22:28:02 +08:00
ZhuJHua
0b5aa5f762 feat(msix): update msix config for store publishing
Update `identity_name`, `publisher`, and `publisher_display_name` in `msix_config` for Microsoft Store publishing.
2025-01-25 16:43:14 +08:00
ZhuJHua
c9fd39561f feat(msix): update msix configuration for store
Update `display_name`, `publisher_display_name`, `identity_name`, and `publisher` in `msix_config` for store publishing.
2025-01-25 16:40:48 +08:00
ZhuJHua
ad32aa616a chore(*): adjust msix_config settings in pubspec.yaml
Refactor the msix_config in `pubspec.yaml` by changing the indentation of the settings.
2025-01-25 16:37:55 +08:00
ZhuJHua
41e6113a0a feat(msix): add msix configuration for store publishing
Adds display name, publisher display name, identity name and capabilities for publishing to the Microsoft Store.
2025-01-25 16:36:01 +08:00
ZhuJHua
5cba840f80 feat(ui): add simple window button support for windows 2025-01-25 16:08:18 +08:00
ZhuJHua
2478c9c932 feat(ui): refine window buttons and UI components
- Replaced `IconButton` with `IconButton.filled` and adjusted icon sizes in `HomeFabView`.
- Added tooltips to buttons in `HomeFabView` for clarity.
- Improved `WindowButtons` widget to only display on Windows and provide an integrated dragging area, removed unnecessary code.
- Adjusted padding and spacing for MacOS in the navigation rail in `HomePage`.
- Modified `AdaptiveBackground` to simplify layout and remove `appWindow.startDragging()` from the background, use `GestureDetector` instead.
- Added `WindowButtons` at the top of the main application window for better integration.
2025-01-25 15:48:11 +08:00
ZhuJHua
67bf72284f style: code clean 2025-01-25 14:19:31 +08:00
ZhuJHua
022c4bb60d fix(*): remove pull to refresh at desktop platform 2025-01-25 14:19:03 +08:00
ZhuJHua
5fe6d66d48 fix(ui): add microsoft yahei ui as default font at windows 2025-01-25 14:18:14 +08:00
ZhuJHua
3584cca5c9 feat(text): optimize ellipsis text rendering
This commit optimizes the rendering of ellipsis text by:

-   Implementing a more efficient algorithm for truncating text.
-   Using `TextPainter.didExceedMaxLines` to detect overflow.
-   Adding support for custom ellipsis strings.
-   Fixing the layout logic for text width calculation.
-   Removing unnecessary `context` and adding `textStyle` optional parameters.
-   Updating code comments to be clearer.
2025-01-25 11:25:44 +08:00
ZhuJHua
58ca34bcf9 feat(about): enhance confetti effect and update duration
- Increased the duration of the confetti animation from 2 to 4 seconds.
- Updated confetti colors to a wider range, including red, orange, yellow, green, cyan, blue, and purple.
- Refactor code to remove extra `SafeArea` widget.
2025-01-25 11:25:18 +08:00
ZhuJHua
3c05149bed chore: update shared_preferences_android to 2.4.3
Update the version of `shared_preferences_android` from 2.4.2 to 2.4.3 in `pubspec.lock`.
2025-01-25 09:56:06 +08:00
ZhuJHua
4e525f4d30 feat(lint): add more lint rules 2025-01-25 09:49:17 +08:00
ZhuJHua
6ff78e4538 feat(markdown): add markdown preview support 2025-01-25 09:21:13 +08:00
ZhuJHua
502df877c1 feat(media): optimize UI layout 2025-01-25 09:20:07 +08:00
ZhuJHua
875edb6dba feat(about): Add easter eggs 2025-01-25 09:18:54 +08:00
ZhuJHua
7a2fe21a21 chore(deps): bump shared_preferences, waterfall_flow, slang_build_runner and other dependencies
Bumps [shared_preferences](https://pub.dev/packages/shared_preferences) from 2.3.5 to 2.4.0.
Bumps [waterfall_flow](https://pub.dev/packages/waterfall_flow) from 3.1.0 to 3.1.1.
Bumps [slang_build_runner](https://pub.dev/packages/slang_build_runner) from 4.4.0 to 4.4.2.
Also bumps other dependencies:
- glob from 2.1.2 to 2.1.3
- image_picker_macos from 0.2.1+1 to 0.2.1+2
2025-01-24 18:11:15 +08:00
ZhuJHua
c9d626ed3d fix(ui): improve desktop page switching performance
Add a GlobalKey to the AnimatedSwitcher to prevent unnecessary rebuilds and optimize desktop page switching performance.
2025-01-23 13:29:47 +08:00
ZhuJHua
0d0c95b78c feat(ui): optimize UI details
- Improve scrollbar theme.
- Add overlay color to TabBar.
- Add icon to PopupMenuButton.
- Update HomeFab icons and add label.
- Update placeholder and empty view in DiaryTabView.
- Update NavigationBar icons.
2025-01-23 02:47:45 +08:00
ZhuJHua
aa40bdb9ab feat(ui): optimize home page ui
Optimize the home page UI for desktop and mobile, including:
- Added a background for desktop.
- Added a draggable area at the top for desktop.
- Added FABs with animations for diary creation.
- Added a navigation bar for mobile.
- Added a to-top button for both desktop and mobile.
2025-01-23 01:09:45 +08:00
ZhuJHua
f22231ff33 refactor(*): optimize project structure 2025-01-23 01:06:57 +08:00
ZhuJHua
c94499ad43 chore: update Flutter version to 3.27.3
Update the Flutter version to 3.27.3 and adjust the minimum SDK constraints in pubspec.yaml. Update the Flutter version badge in the README files.
2025-01-22 14:29:22 +08:00
ZhuJHua
c67b13ecd3 chore: refine release notification workflow
Refine the release notification workflow to:
- Remove manual workflow dispatch trigger.
- Extract release information directly from GitHub event data.
- Format the Telegram message using markdown for better readability.
2025-01-22 11:21:07 +08:00
ZhuJHua
2ce60b0a21 chore(ci): enhance telegram notification with release details
Update the telegram notification workflow to fetch and include the latest release details in the message.
This includes the release name, tag, notes, and URL, providing more context for users.
2025-01-22 10:38:36 +08:00
ZhuJHua
cd4e699878 chore: simplify telegram release notification
Simplified the Telegram release notification by removing the assets list and reformatting the message for better readability.
2025-01-22 10:33:34 +08:00
ZhuJHua
bc5f9ee3b8 feat(*): add workflow to send release notifications to Telegram
This change introduces a new workflow that sends release notifications to a specified Telegram channel using the `appleboy/telegram-action`.
The workflow is triggered on new releases and includes the release name, tag, release notes, assets, and a link to the release page in the notification message.
2025-01-22 10:20:12 +08:00
ZhuJHua
d525ddaa70 feat(category): init support nested multi-level classification
Added `parentId` and `level` fields to the Category model to support nested multi-level classification. Also added an index for the `level` field.
2025-01-22 10:16:49 +08:00
ZhuJHua
df1020b7ee chore(deps): bump flutter_quill from 11.0.0-dev.20 to 11.0.0-dev.21
Remove unused dependencies:
- fading_edge_scrollview
- google_fonts
- http_status_code
- pinput
- simple_gesture_detector
- table_calendar
2025-01-22 10:15:21 +08:00
ZhuJHua
7fee9ae8ae feat(readme): update Flutter and Dart version requirements
- Updated Flutter SDK requirement to >= 3.27.2 Stable.
- Updated Dart requirement to >= 3.6.1.
- Added a note encouraging the use of the latest Flutter version and recommending FVM for Flutter version management.
2025-01-21 17:16:20 +08:00
ZhuJHua
f7da792bdb feat(dependencies): update SDK and package versions
- Updates the Dart SDK version to `>=3.6.1`.
- Updates the Flutter version to `>=3.27.2`.
- Updates the `syncfusion_flutter_sliders` package to version `28.1.41`.
- Adds `msix_config` for application configuration.
2025-01-21 17:06:20 +08:00
ZhuJHua
f84f636529 feat(android): update NDK and Kotlin versions
- Updates the NDK version to "27.2.12479018" in `android/app/build.gradle`.
- Updates the Kotlin Android plugin version to "2.1.0" in `android/settings.gradle`.
- Add abiFilters 'arm64-v8a'
2025-01-21 13:27:46 +08:00
ZhuJHua
6eba9a1a1e chore(readme): update readme for new features and improvements 2025-01-21 13:26:45 +08:00
ZhuJHua
c4f5780dab refactor(*): organize the project structure and use absolute paths uniformly 2025-01-21 10:00:44 +08:00
ZhuJHua
581655b2dd feat(markdown): add support for markdown diary
- Add markdown_bar component for markdown editing.
- Update edit page to support markdown diary type.
- Update home page floating button to include markdown diary.
- Update edit_logic to include markdown controller.
- Update markdown and remove markdown_toolbar package.
- Add support to preview markdown.
- Add support to markdown_bar for markdown editing.
- Add support to markdown parser for markdown editing.
- Update home page floating button to include markdown diary.
2025-01-21 09:47:04 +08:00
ZhuJHua
e4c356560d feat(ui): adjust lock page and correct localization
-   Adjusted the lock page's `AppBar` to remove the leading widget and prevent auto-implication.
-   Made the lock page's `AppBar` to extend behind the body.
-   Corrected the "weather" localization to "Weather".
2025-01-19 21:44:02 +08:00
ZhuJHua
93d378637e chore(deps): update flutter_quill to 11.0.0-dev.20 2025-01-19 16:50:24 +08:00
ZhuJHua
589a87b30d chore(flutter): update flutter version to 3.27.2 2025-01-19 16:50:12 +08:00
ZhuJHua
51e87f9ae6 build(macos): update code signing and provisioning settings 2025-01-19 16:49:42 +08:00
ZhuJHua
08df9bba04 chore(*): bump version to 2.7.1+71
The version number in `pubspec.yaml` has been updated from `2.7.0+70` to `2.7.1+71`.
v2.7.1
2025-01-19 07:15:12 +08:00
ZhuJHua
137a1f3c98 chore(readme): update screenshots for different languages
- Replace `mobile_dark.webp`, `mobile_light.webp`, `desktop_dark.webp`, and `desktop_light.webp` with language-specific screenshots in the `res/screenshot/` directory.
- Update the references to these screenshots in `README.md` and `README.zh.md` to include language indicators.
2025-01-19 07:13:00 +08:00
ZhuJHua
042a715595 fix(calendar): filter visible diaries
Modify Isar database query to only get visible diaries.
2025-01-19 07:07:51 +08:00
ZhuJHua
7736c72780 feat(l10n): add localization for diary operations and data sync
- Add `diaryDelete`, `diaryEdit`, `diaryShare`, `diaryCount` and `dataSync` translations to `intl_en.arb` and `intl_zh.arb`.
- Update diary list and diary details to use new localization strings.
- Add `sensors_plus` plugin to Podfile.lock.
- Update `diary_view` with localized strings
- update `diary_details_view` with localized strings
2025-01-19 07:05:16 +08:00
ZhuJHua
86f337c0a2 feat(edit): add audio file selection 2025-01-19 06:05:09 +08:00