Skip to content

Conversation

manavsuresh
Copy link

@manavsuresh manavsuresh commented Jun 29, 2025

-Added Critical Indicator
image

-Added Warning Indicator with blinking Animation
image

-The values are from the preset values for the rover.

@manavsuresh manavsuresh self-assigned this Jun 29, 2025
@manavsuresh manavsuresh added type: enhancement New feature or request area: frontend An issue with the front end GUI and removed area: frontend An issue with the front end labels Jun 29, 2025
@manavsuresh manavsuresh linked an issue Jun 29, 2025 that may be closed by this pull request
@manavsuresh manavsuresh marked this pull request as ready for review July 8, 2025 16:27
@manavsuresh manavsuresh requested a review from a team as a code owner July 8, 2025 16:27
@manavsuresh
Copy link
Author

  • Centered Battery Indicator Relative to the window instead of the Footer components.

  • Warning Indicator (4 Second Flashing Animation)
    Warning_Indicator

  • Critical Indicator
    image

Copy link
Member

@Gold872 Gold872 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work! You've picked up the structure of the dashboard and flutter very well. Just a few minor things that could be improved before merging.

Comment on lines 68 to 90
child: Wrap(
crossAxisAlignment: WrapCrossAlignment.center,
alignment: WrapAlignment.spaceBetween,
children: [
MessageDisplay(showLogs: showLogs),
const StatusIcons(),
],
child: SizedBox(
height: 48,
child: Row(
children: [
Expanded(
child: Align(
alignment: Alignment.centerLeft,
child: MessageDisplay(showLogs: showLogs),
),
),
const Expanded(
child: Center(
child: BatteryWarningDisplay(),
),
),
const Expanded(
child: Align(
alignment: Alignment.centerRight,
child: StatusIcons(),
),
),
],
),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this would make the battery display centered, if the window was made more narrow, this would cause issues with proportions when some widgets stopped fitting. Look into using a NavigationToolbar instead which should handle this better.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still get the same RenderFlex overflow issue when the window size is smaller than the minimum required width with the NavigationToolbar Implementation.
The NavigationToolbar currently just wraps the existing components and doesn't manage layout scaling. So, I guess, unless I update the individual widget properties to adapt to the available space. Or is there a better way to do this?

The RenderFlex overflow error was already occurring before the battery indicator implementation when the window was smaller than required.

@override
void initState() {
super.initState();
_footerModel = FooterViewModel();
Copy link
Member

@Gold872 Gold872 Jul 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid data possibly getting out of sync, the footer view model should be passed into the widget instead of having it be created in the state

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GUI type: enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Voltage Warning Indicator

2 participants