-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add floating debugger controls when app is paused #2676
Conversation
packages/devtools_app/lib/src/debugger/debugger_controller.dart
Outdated
Show resolved
Hide resolved
Container( | ||
decoration: BoxDecoration( | ||
border: Border( | ||
left: i == 0 ? BorderSide(color: color) : BorderSide.none, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is only the left side special cased and not the right side.?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do this to make sure there are not any double borders. The right side of the previous element will serve as the left border for the next element (for all except the first since the first does not have a previous element)
return ValueListenableBuilder<bool>( | ||
valueListenable: controller.isPaused, | ||
builder: (context, paused, _) { | ||
if (!paused) return const SizedBox(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: rather than having this become a sized box when not paused consider making the ui unclickable when not paused and providing an animated transition showing and hiding the ui.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea. done - see pr description for gif
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will show up when an app is paused (except when the debugger screen is the current screen)
Fixes #2377
Fixes #2547