fix(ui): improve Connect Device screen layout alignment#3093
Merged
marcnause merged 4 commits intofossasia:flutterfrom Feb 26, 2026
Merged
fix(ui): improve Connect Device screen layout alignment#3093marcnause merged 4 commits intofossasia:flutterfrom
marcnause merged 4 commits intofossasia:flutterfrom
Conversation
Contributor
Reviewer's GuideRefactors the Connect Device screen’s connection steps into a styled, full‑width card-like container with consistent typography and spacing, and slightly tightens surrounding layout margins for better visual alignment. Flow diagram for rendering connection steps in the updated Connect Device screenflowchart TD
A[Build_ConnectDeviceScreen] --> B{pslabIsConnected?}
B -- Yes --> C[Show_connected_status_text_with_reduced_bottom_margin]
B -- No --> D[Show_steps_to_connect_container]
D --> E[Padding_horizontal_16]
E --> F[Container_full_width]
F --> G[Apply_surface_background_and_rounded_border]
G --> H[Column_crossAxisAlignment_start]
H --> I[Title_stepsToConnectTitle_fontSize_16_bold]
I --> J[Spacing_12]
J --> K[Step1_stepText_fontSize_14_lineHeight_1_35]
K --> L[Spacing_8]
L --> M[Step2_stepText_fontSize_14_lineHeight_1_35]
M --> N[Spacing_8]
N --> O[Step3_stepText_fontSize_14_lineHeight_1_35]
O --> P[Spacing_8]
P --> Q[Step4_stepText_fontSize_14_lineHeight_1_35]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Consider renaming
_stepTextto something more specific like_connectStepTextto make its purpose clearer when scanning the file alongside other potential helper widgets. - The new hard-coded paddings (outer
Paddingwith 16 and innerContainerwith 16) change the previous 40px horizontal margin; double-check whether these should instead reference shared spacing constants or match the surrounding layout’s horizontal rhythm for consistency. - For the step text and title styling, you might want to reuse
Theme.of(context).textThemevariants instead of rawTextStyleto keep typography consistent across the app and pick up theme-level changes automatically.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider renaming `_stepText` to something more specific like `_connectStepText` to make its purpose clearer when scanning the file alongside other potential helper widgets.
- The new hard-coded paddings (outer `Padding` with 16 and inner `Container` with 16) change the previous 40px horizontal margin; double-check whether these should instead reference shared spacing constants or match the surrounding layout’s horizontal rhythm for consistency.
- For the step text and title styling, you might want to reuse `Theme.of(context).textTheme` variants instead of raw `TextStyle` to keep typography consistent across the app and pick up theme-level changes automatically.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Contributor
|
Hello @bhavjsh, |
Contributor
Build StatusBuild successful. APKs to test: https://github.com/fossasia/pslab-app/actions/runs/22460730913/artifacts/5680120047. Screenshots |
28adcfa to
1dc5c4f
Compare
marcnause
approved these changes
Feb 26, 2026
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.







-1_instruments_screen.png?raw=true)
-2_nav_drawer.png?raw=true)
-3_accelerometer.png?raw=true)
-4_power_source.png?raw=true)
-5_multimeter.png?raw=true)
-6_wave_generator.png?raw=true)
-7_oscilloscope.png?raw=true)
Improved the Connect Device screen UI by placing the connection steps inside a rectangular container with consistent padding and alignment for better visual structure.
Reduced unnecessary spacing for improved layout balance.
Recording attached.
pslab.mp4
Summary by Sourcery
Improve the Connect Device screen layout for clearer, better-aligned connection instructions.
Enhancements: