-
Notifications
You must be signed in to change notification settings - Fork 336
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 connection info widgets and clean up device dialog #6004
Conversation
} | ||
} | ||
|
||
class VMFlagsDialog extends StatefulWidget { |
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.
all of this code below was copied to vm_flag_widgets.dart
} | ||
} | ||
|
||
class VMFlagsDialog extends StatefulWidget { |
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.
all of the code below was copied. No functional changes.
return Column( | ||
mainAxisSize: MainAxisSize.min, | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
for (var entry in entries) | ||
Padding( | ||
padding: EdgeInsets.only( | ||
bottom: entry == entries.last ? 0.0 : denseRowSpacing, | ||
), | ||
child: Row( | ||
mainAxisSize: MainAxisSize.min, | ||
children: [ | ||
Text('${entry.title}: ', style: boldText), | ||
SelectableText( | ||
entry.description, | ||
style: theme.subtleTextStyle, | ||
), | ||
if (entry.actions.isNotEmpty) ...entry.actions, | ||
], | ||
), | ||
), | ||
], | ||
); |
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.
copied from device_dialog.dart
This refactors some code out of device_dialog.dart and into
connection_info.dart
andvm_flag_widgets.dart
. This is breaking up a larger change to support static tooling in DevTools, and these shared widgets will be used on the landing / home screen in a follow up PR.