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:
Michael Goderbauer
2024-12-19 12:06:21 -08:00
committed by GitHub
parent 8e0993eda8
commit 5491c8c146
4411 changed files with 455108 additions and 415991 deletions

View File

@@ -7,9 +7,7 @@ import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('Flexible Transitions App is able to build', (WidgetTester tester) async {
await tester.pumpWidget(
const example.FlexibleRouteTransitionsApp(),
);
await tester.pumpWidget(const example.FlexibleRouteTransitionsApp());
expect(find.text('Zoom Page'), findsOneWidget);
expect(find.text('Zoom Transition'), findsOneWidget);
@@ -24,10 +22,10 @@ void main() {
expect(find.text('Cupertino Page'), findsOneWidget);
});
testWidgets('A vertical slide animation is passed to the previous route', (WidgetTester tester) async {
await tester.pumpWidget(
const example.FlexibleRouteTransitionsApp(),
);
testWidgets('A vertical slide animation is passed to the previous route', (
WidgetTester tester,
) async {
await tester.pumpWidget(const example.FlexibleRouteTransitionsApp());
expect(find.text('Zoom Page'), findsOneWidget);

View File

@@ -10,9 +10,7 @@ import '../navigator_utils.dart';
void main() {
testWidgets('Flexible Transitions App is able to build', (WidgetTester tester) async {
await tester.pumpWidget(
FlexibleRouteTransitionsApp(),
);
await tester.pumpWidget(FlexibleRouteTransitionsApp());
expect(find.text('Zoom Transition'), findsOneWidget);
expect(find.text('Crazy Vertical Transition'), findsOneWidget);
@@ -20,9 +18,7 @@ void main() {
});
testWidgets('on Pop the correct page shows', (WidgetTester tester) async {
await tester.pumpWidget(
FlexibleRouteTransitionsApp(),
);
await tester.pumpWidget(FlexibleRouteTransitionsApp());
await tester.pumpAndSettle();

View File

@@ -11,9 +11,7 @@ void main() {
testWidgets('Dismiss dialog with tap on the scrim and escape key', (WidgetTester tester) async {
const String dialogText = 'Tap in the scrim or press escape key to dismiss.';
await tester.pumpWidget(
const example.PopupRouteApp(),
);
await tester.pumpWidget(const example.PopupRouteApp());
expect(find.text(dialogText), findsNothing);

View File

@@ -7,9 +7,7 @@ import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('RouteObserver notifies RouteAware widget', (WidgetTester tester) async {
await tester.pumpWidget(
const example.RouteObserverApp(),
);
await tester.pumpWidget(const example.RouteObserverApp());
// Check the initial RouteObserver logs.
expect(find.text('didPush'), findsOneWidget);

View File

@@ -10,9 +10,7 @@ void main() {
testWidgets('Open and dismiss general dialog', (WidgetTester tester) async {
const String dialogText = 'Alert!';
await tester.pumpWidget(
const example.GeneralDialogApp(),
);
await tester.pumpWidget(const example.GeneralDialogApp());
expect(find.text(dialogText), findsNothing);