Auto-format Framework (#160545)
This auto-formats all *.dart files in the repository outside of the `engine` subdirectory and enforces that these files stay formatted with a presubmit check. **Reviewers:** Please carefully review all the commits except for the one titled "formatted". The "formatted" commit was auto-generated by running `dev/tools/format.sh -a -f`. The other commits were hand-crafted to prepare the repo for the formatting change. I recommend reviewing the commits one-by-one via the "Commits" tab and avoiding Github's "Files changed" tab as it will likely slow down your browser because of the size of this PR. --------- Co-authored-by: Kate Lovett <katelovett@google.com> Co-authored-by: LongCatIsLooong <31859944+LongCatIsLooong@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8e0993eda8
commit
5491c8c146
@@ -14,10 +14,7 @@ class CheckboxListTileApp extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
theme: ThemeData(useMaterial3: true),
|
||||
home: const CheckboxListTileExample(),
|
||||
);
|
||||
return MaterialApp(theme: ThemeData(useMaterial3: true), home: const CheckboxListTileExample());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -13,10 +13,7 @@ class CheckboxListTileApp extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
theme: ThemeData(useMaterial3: true),
|
||||
home: const CheckboxListTileExample(),
|
||||
);
|
||||
return MaterialApp(theme: ThemeData(useMaterial3: true), home: const CheckboxListTileExample());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +55,8 @@ class _CheckboxListTileExampleState extends State<CheckboxListTileExample> {
|
||||
},
|
||||
title: const Text('Headline'),
|
||||
subtitle: const Text(
|
||||
'Longer supporting text to demonstrate how the text wraps and the checkbox is centered vertically with the text.'),
|
||||
'Longer supporting text to demonstrate how the text wraps and the checkbox is centered vertically with the text.',
|
||||
),
|
||||
),
|
||||
const Divider(height: 0),
|
||||
CheckboxListTile(
|
||||
@@ -70,7 +68,8 @@ class _CheckboxListTileExampleState extends State<CheckboxListTileExample> {
|
||||
},
|
||||
title: const Text('Headline'),
|
||||
subtitle: const Text(
|
||||
"Longer supporting text to demonstrate how the text wraps and how setting 'CheckboxListTile.isThreeLine = true' aligns the checkbox to the top vertically with the text."),
|
||||
"Longer supporting text to demonstrate how the text wraps and how setting 'CheckboxListTile.isThreeLine = true' aligns the checkbox to the top vertically with the text.",
|
||||
),
|
||||
isThreeLine: true,
|
||||
),
|
||||
const Divider(height: 0),
|
||||
|
||||
@@ -15,10 +15,7 @@ class LabeledCheckboxApp extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
theme: ThemeData(useMaterial3: true),
|
||||
home: const LabeledCheckboxExample(),
|
||||
);
|
||||
return MaterialApp(theme: ThemeData(useMaterial3: true), home: const LabeledCheckboxExample());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,10 +47,11 @@ class LinkedLabelCheckbox extends StatelessWidget {
|
||||
color: Colors.blueAccent,
|
||||
decoration: TextDecoration.underline,
|
||||
),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
debugPrint('Label has been tapped.');
|
||||
},
|
||||
recognizer:
|
||||
TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
debugPrint('Label has been tapped.');
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -13,10 +13,7 @@ class LabeledCheckboxApp extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
theme: ThemeData(useMaterial3: true),
|
||||
home: const LabeledCheckboxExample(),
|
||||
);
|
||||
return MaterialApp(theme: ThemeData(useMaterial3: true), home: const LabeledCheckboxExample());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user