feat(frontend): dark-tech UI polish + map/local-view aspect improvements#131
Open
xiaolefang-dm wants to merge 4 commits into
Open
feat(frontend): dark-tech UI polish + map/local-view aspect improvements#131xiaolefang-dm wants to merge 4 commits into
xiaolefang-dm wants to merge 4 commits into
Conversation
|
|
|
67afb0a to
eaf0198
Compare
|
|
|
- Change camera preview from BoxFit.contain (letterboxed) to BoxFit.cover (fills panel) - Fullscreen preview still uses BoxFit.contain to show full image
485c5f4 to
497f676
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR extends
xiaole/fix/camera-cover-fitwith a full frontend visual polish and layout fixes for better usability and consistency.Included changes
Keep camera preview fill behavior
BoxFit.coverto make camera preview fill its panel cleanly.Fix local planning view stretching
_LocalPlanningView, remove forcedaspectRatio: 1.0.gridInfo.width / gridInfo.height) when available.1.0only when grid data is unavailable.Web viewport layout strategy (portrait vs landscape)
aspect < 1): keep default stretch/fill behavior.aspect >= 1): lock app content to1:1, top-aligned.Dark-tech UI style refresh
main.dartand home/device/operate related pages.Home page color unification
Validation
flutter analyzeon modified frontend files (no blocking errors).flutter build websuccessfully after updates.Offline web resource support
This PR also removes runtime internet dependencies for the Flutter web app:
www.gstatic.comfonts.gstatic.com--no-web-resources-cdnThis makes the app safer to use in offline robot deployment environments.