fix some formatting issues (#25474)
diff --git a/packages/flutter/lib/src/animation/tween_sequence.dart b/packages/flutter/lib/src/animation/tween_sequence.dart
index 490526f..7d584e6 100644
--- a/packages/flutter/lib/src/animation/tween_sequence.dart
+++ b/packages/flutter/lib/src/animation/tween_sequence.dart
@@ -34,7 +34,7 @@
/// ),
/// ],
/// ).animate(myAnimationController);
-///```
+/// ```
class TweenSequence<T> extends Animatable<T> {
/// Construct a TweenSequence.
///
diff --git a/packages/flutter/lib/src/cupertino/date_picker.dart b/packages/flutter/lib/src/cupertino/date_picker.dart
index f6bd0ca..624296a 100644
--- a/packages/flutter/lib/src/cupertino/date_picker.dart
+++ b/packages/flutter/lib/src/cupertino/date_picker.dart
@@ -1340,4 +1340,4 @@
child: picker,
);
}
-}
\ No newline at end of file
+}
diff --git a/packages/flutter/lib/src/cupertino/dialog.dart b/packages/flutter/lib/src/cupertino/dialog.dart
index c420762..443b03d 100644
--- a/packages/flutter/lib/src/cupertino/dialog.dart
+++ b/packages/flutter/lib/src/cupertino/dialog.dart
@@ -1694,4 +1694,4 @@
bool hitTestChildren(HitTestResult result, { Offset position }) {
return defaultHitTestChildren(result, position: position);
}
-}
\ No newline at end of file
+}
diff --git a/packages/flutter/lib/src/foundation/diagnostics.dart b/packages/flutter/lib/src/foundation/diagnostics.dart
index abcf27a..95c96e0 100644
--- a/packages/flutter/lib/src/foundation/diagnostics.dart
+++ b/packages/flutter/lib/src/foundation/diagnostics.dart
@@ -474,7 +474,7 @@
/// <name>: <description>:
/// <properties>
/// <children>
-///```
+/// ```
///
/// See also:
///
diff --git a/packages/flutter/lib/src/painting/image_provider.dart b/packages/flutter/lib/src/painting/image_provider.dart
index 5bb5f99..d8c4277 100644
--- a/packages/flutter/lib/src/painting/image_provider.dart
+++ b/packages/flutter/lib/src/painting/image_provider.dart
@@ -664,7 +664,7 @@
/// AssetImage('icons/heart.png', scale: 1.5)
/// ```
///
-///## Assets in packages
+/// ## Assets in packages
///
/// To fetch an asset from a package, the [package] argument must be provided.
/// For instance, suppose the structure above is inside a package called
@@ -690,7 +690,7 @@
/// lib/backgrounds/background1.png
/// lib/backgrounds/background2.png
/// lib/backgrounds/background3.png
-///```
+/// ```
///
/// To include, say the first image, the `pubspec.yaml` of the app should specify
/// it in the `assets` section:
diff --git a/packages/flutter/lib/src/painting/image_resolution.dart b/packages/flutter/lib/src/painting/image_resolution.dart
index 7c6d7be..b29727e 100644
--- a/packages/flutter/lib/src/painting/image_resolution.dart
+++ b/packages/flutter/lib/src/painting/image_resolution.dart
@@ -105,7 +105,7 @@
/// lib/backgrounds/background1.png
/// lib/backgrounds/background2.png
/// lib/backgrounds/background3.png
-///```
+/// ```
///
/// To include, say the first image, the `pubspec.yaml` of the app should specify
/// it in the `assets` section:
diff --git a/packages/flutter/lib/src/painting/text_style.dart b/packages/flutter/lib/src/painting/text_style.dart
index 102fb9c..daad2f0 100644
--- a/packages/flutter/lib/src/painting/text_style.dart
+++ b/packages/flutter/lib/src/painting/text_style.dart
@@ -140,7 +140,7 @@
///
/// Custom fonts can be declared in the `pubspec.yaml` file as shown below:
///
-///```yaml
+/// ```yaml
/// flutter:
/// fonts:
/// - family: Raleway
@@ -155,7 +155,7 @@
/// - asset: fonts/Schyler-Regular.ttf
/// - asset: fonts/Schyler-Italic.ttf
/// style: italic
-///```
+/// ```
///
/// The `family` property determines the name of the font, which you can use in
/// the [fontFamily] argument. The `asset` property is a path to the font file,
@@ -197,7 +197,7 @@
///
/// Then the app can declare a font like in the example below:
///
-///```yaml
+/// ```yaml
/// flutter:
/// fonts:
/// - family: Raleway
@@ -205,14 +205,14 @@
/// - asset: assets/fonts/Raleway-Regular.ttf
/// - asset: packages/my_package/fonts/Raleway-Medium.ttf
/// weight: 500
-///```
+/// ```
///
/// The `lib/` is implied, so it should not be included in the asset path.
///
/// In this case, since the app locally defines the font, the TextStyle is
/// created without the `package` argument:
///
-///```dart
+/// ```dart
/// const TextStyle(fontFamily: 'Raleway')
/// ```
///
diff --git a/packages/flutter/lib/src/widgets/automatic_keep_alive.dart b/packages/flutter/lib/src/widgets/automatic_keep_alive.dart
index b03cc7b..92cd0c8 100644
--- a/packages/flutter/lib/src/widgets/automatic_keep_alive.dart
+++ b/packages/flutter/lib/src/widgets/automatic_keep_alive.dart
@@ -396,4 +396,4 @@
_ensureKeepAlive();
return null;
}
-}
\ No newline at end of file
+}
diff --git a/packages/flutter/lib/src/widgets/page_storage.dart b/packages/flutter/lib/src/widgets/page_storage.dart
index e7c8d2f..103e6dc 100644
--- a/packages/flutter/lib/src/widgets/page_storage.dart
+++ b/packages/flutter/lib/src/widgets/page_storage.dart
@@ -27,9 +27,9 @@
/// MyScrollableTabView(
/// key: PageStorageKey<String>(tab.text), // like 'Tab 1'
/// tab: tab,
-/// ),
-/// }),
-///)
+/// ),
+/// }),
+/// )
/// ```
class PageStorageKey<T> extends ValueKey<T> {
/// Creates a [ValueKey] that defines where [PageStorage] values will be saved.
diff --git a/packages/flutter/test/cupertino/action_sheet_test.dart b/packages/flutter/test/cupertino/action_sheet_test.dart
index 0c45034..b682b92 100644
--- a/packages/flutter/test/cupertino/action_sheet_test.dart
+++ b/packages/flutter/test/cupertino/action_sheet_test.dart
@@ -970,4 +970,4 @@
textDirection: TextDirection.ltr,
child: child,
);
-}
\ No newline at end of file
+}
diff --git a/packages/flutter/test/cupertino/bottom_tab_bar_test.dart b/packages/flutter/test/cupertino/bottom_tab_bar_test.dart
index ca54528..ceaf055 100644
--- a/packages/flutter/test/cupertino/bottom_tab_bar_test.dart
+++ b/packages/flutter/test/cupertino/bottom_tab_bar_test.dart
@@ -332,4 +332,4 @@
decoratedBoxHiddenBorder.decoration;
expect(boxDecorationHiddenBorder.border, isNull);
});
-}
\ No newline at end of file
+}
diff --git a/packages/flutter/test/cupertino/dialog_test.dart b/packages/flutter/test/cupertino/dialog_test.dart
index d1f58df..1837918 100644
--- a/packages/flutter/test/cupertino/dialog_test.dart
+++ b/packages/flutter/test/cupertino/dialog_test.dart
@@ -1015,4 +1015,4 @@
textDirection: TextDirection.ltr,
child: child,
);
-}
\ No newline at end of file
+}
diff --git a/packages/flutter/test/material/dialog_theme_test.dart b/packages/flutter/test/material/dialog_theme_test.dart
index 77917e3..50ecf13 100644
--- a/packages/flutter/test/material/dialog_theme_test.dart
+++ b/packages/flutter/test/material/dialog_theme_test.dart
@@ -128,4 +128,4 @@
skip: !Platform.isLinux,
);
});
-}
\ No newline at end of file
+}
diff --git a/packages/flutter/test/material/flexible_space_bar_collapse_mode_test.dart b/packages/flutter/test/material/flexible_space_bar_collapse_mode_test.dart
index 6ba8384..f33d0e2 100644
--- a/packages/flutter/test/material/flexible_space_bar_collapse_mode_test.dart
+++ b/packages/flutter/test/material/flexible_space_bar_collapse_mode_test.dart
@@ -249,4 +249,4 @@
await gesture.moveBy(offset);
await tester.pump(const Duration(milliseconds: 10));
await gesture.up();
-}
\ No newline at end of file
+}
diff --git a/packages/flutter/test/material/reorderable_list_test.dart b/packages/flutter/test/material/reorderable_list_test.dart
index 7acdedc..535c7b2 100644
--- a/packages/flutter/test/material/reorderable_list_test.dart
+++ b/packages/flutter/test/material/reorderable_list_test.dart
@@ -937,4 +937,4 @@
),
);
}
-}
\ No newline at end of file
+}
diff --git a/packages/flutter_driver/test/common.dart b/packages/flutter_driver/test/common.dart
index b10f9b3..2f89c7c 100644
--- a/packages/flutter_driver/test/common.dart
+++ b/packages/flutter_driver/test/common.dart
@@ -24,4 +24,4 @@
} on FileSystemException catch (error) {
print('Failed to delete ${directory.path}: $error');
}
-}
\ No newline at end of file
+}
diff --git a/packages/flutter_test/test/matchers_test.dart b/packages/flutter_test/test/matchers_test.dart
index 31367f4..87c5383 100644
--- a/packages/flutter_test/test/matchers_test.dart
+++ b/packages/flutter_test/test/matchers_test.dart
@@ -630,4 +630,4 @@
SemanticsData data;
@override
SemanticsData getSemanticsData() => data;
-}
\ No newline at end of file
+}
diff --git a/packages/flutter_tools/test/base/process_test.dart b/packages/flutter_tools/test/base/process_test.dart
index f01f5bc..f897690 100644
--- a/packages/flutter_tools/test/base/process_test.dart
+++ b/packages/flutter_tools/test/base/process_test.dart
@@ -92,4 +92,4 @@
});
}
-class PlainMockProcessManager extends Mock implements ProcessManager {}
\ No newline at end of file
+class PlainMockProcessManager extends Mock implements ProcessManager {}
diff --git a/packages/flutter_tools/test/ios/ios_workflow_test.dart b/packages/flutter_tools/test/ios/ios_workflow_test.dart
index 8b531e1..b084462 100644
--- a/packages/flutter_tools/test/ios/ios_workflow_test.dart
+++ b/packages/flutter_tools/test/ios/ios_workflow_test.dart
@@ -381,4 +381,4 @@
@override
final bool hasHomebrew;
-}
\ No newline at end of file
+}