fix(dashboard): display runtime over 24h in day format with auto-adaptive button width#2004
Open
wavever wants to merge 1 commit into
Open
fix(dashboard): display runtime over 24h in day format with auto-adaptive button width#2004wavever wants to merge 1 commit into
wavever wants to merge 1 commit into
Conversation
ef762fd to
4da65d6
Compare
oviron
added a commit
to oviron/FlClash
that referenced
this pull request
May 8, 2026
Backport chen08209#2004 (wavever). getTimeText now formats long uptime as days+hours instead of capping at 99:59:59. start_button caches the short and long format widths to avoid re-measuring on every frame, and the runTime provider read moves into the AnimatedBuilder builder so it rebuilds with the rest of the FAB.
…tive button width Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
4da65d6 to
38933f9
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
Improve dashboard runtime display for long-running sessions by switching to day format after 24 hours.
Problem
Issue #1824: dashboard runtime in the bottom-right stop button no longer increases visually after reaching
99:59:59.Changes
Xd HH:mm:ss) when runtime reaches 24 hours instead of capping at99:59:59.< 24h:HH:mm:ss>= 24h:Xd HH:mm:ssStartButtonto userunTimeProviderdirectly instead ofDateTime.now().Files
lib/common/utils.dartlib/views/dashboard/widgets/start_button.dartTest
Fixes #1824