Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(ui): optimize UI for desktop platform #142

Merged
merged 23 commits into from
Jan 25, 2025
Merged

feat(ui): optimize UI for desktop platform #142

merged 23 commits into from
Jan 25, 2025

Conversation

ZhuJHua
Copy link
Owner

@ZhuJHua ZhuJHua commented Jan 24, 2025

No description provided.

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.
- 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.
Add a GlobalKey to the AnimatedSwitcher to prevent unnecessary rebuilds and optimize desktop page switching performance.
…ner 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
@github-actions github-actions bot added the feat label Jan 24, 2025
Update the version of `shared_preferences_android` from 2.4.2 to 2.4.3 in `pubspec.lock`.
- 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.
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.
- 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.
Adds display name, publisher display name, identity name and capabilities for publishing to the Microsoft Store.
Refactor the msix_config in `pubspec.yaml` by changing the indentation of the settings.
Update `display_name`, `publisher_display_name`, `identity_name`, and `publisher` in `msix_config` for store publishing.
Update `identity_name`, `publisher`, and `publisher_display_name` in `msix_config` for Microsoft Store publishing.
Add `logo_path` to pubspec.yaml for specifying the desktop application logo.
- 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()`.
@ZhuJHua ZhuJHua merged commit 042da7d into master Jan 25, 2025
2 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant