Skip to content
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

Merged
merged 11 commits into from
Jul 8, 2023

Conversation

kenzieschmoll
Copy link
Member

This refactors some code out of device_dialog.dart and into connection_info.dart and vm_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.

@kenzieschmoll kenzieschmoll requested a review from a team as a code owner July 7, 2023 22:53
@kenzieschmoll kenzieschmoll requested review from bkonyi and removed request for a team July 7, 2023 22:53
}
}

class VMFlagsDialog extends StatefulWidget {
Copy link
Member Author

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 {
Copy link
Member Author

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.

Comment on lines +66 to +88
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,
],
),
),
],
);
Copy link
Member Author

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

@kenzieschmoll kenzieschmoll merged commit 182c5ed into flutter:master Jul 8, 2023
@kenzieschmoll kenzieschmoll deleted the static-tab-bar branch July 8, 2023 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants