Unverified Commit 32d65fef authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

fix some formatting issues (#25474)

parent 8ad4cbe0
...@@ -34,7 +34,7 @@ import 'tween.dart'; ...@@ -34,7 +34,7 @@ import 'tween.dart';
/// ), /// ),
/// ], /// ],
/// ).animate(myAnimationController); /// ).animate(myAnimationController);
///``` /// ```
class TweenSequence<T> extends Animatable<T> { class TweenSequence<T> extends Animatable<T> {
/// Construct a TweenSequence. /// Construct a TweenSequence.
/// ///
......
...@@ -1340,4 +1340,4 @@ class _CupertinoTimerPickerState extends State<CupertinoTimerPicker> { ...@@ -1340,4 +1340,4 @@ class _CupertinoTimerPickerState extends State<CupertinoTimerPicker> {
child: picker, child: picker,
); );
} }
} }
\ No newline at end of file
...@@ -1694,4 +1694,4 @@ class _RenderCupertinoDialogActions extends RenderBox ...@@ -1694,4 +1694,4 @@ class _RenderCupertinoDialogActions extends RenderBox
bool hitTestChildren(HitTestResult result, { Offset position }) { bool hitTestChildren(HitTestResult result, { Offset position }) {
return defaultHitTestChildren(result, position: position); return defaultHitTestChildren(result, position: position);
} }
} }
\ No newline at end of file
...@@ -474,7 +474,7 @@ final TextTreeConfiguration transitionTextConfiguration = TextTreeConfiguration( ...@@ -474,7 +474,7 @@ final TextTreeConfiguration transitionTextConfiguration = TextTreeConfiguration(
/// <name>: <description>: /// <name>: <description>:
/// <properties> /// <properties>
/// <children> /// <children>
///``` /// ```
/// ///
/// See also: /// See also:
/// ///
......
...@@ -664,7 +664,7 @@ class MemoryImage extends ImageProvider<MemoryImage> { ...@@ -664,7 +664,7 @@ class MemoryImage extends ImageProvider<MemoryImage> {
/// AssetImage('icons/heart.png', scale: 1.5) /// 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. /// To fetch an asset from a package, the [package] argument must be provided.
/// For instance, suppose the structure above is inside a package called /// For instance, suppose the structure above is inside a package called
...@@ -690,7 +690,7 @@ class MemoryImage extends ImageProvider<MemoryImage> { ...@@ -690,7 +690,7 @@ class MemoryImage extends ImageProvider<MemoryImage> {
/// lib/backgrounds/background1.png /// lib/backgrounds/background1.png
/// lib/backgrounds/background2.png /// lib/backgrounds/background2.png
/// lib/backgrounds/background3.png /// lib/backgrounds/background3.png
///``` /// ```
/// ///
/// To include, say the first image, the `pubspec.yaml` of the app should specify /// To include, say the first image, the `pubspec.yaml` of the app should specify
/// it in the `assets` section: /// it in the `assets` section:
......
...@@ -105,7 +105,7 @@ const String _kAssetManifestFileName = 'AssetManifest.json'; ...@@ -105,7 +105,7 @@ const String _kAssetManifestFileName = 'AssetManifest.json';
/// lib/backgrounds/background1.png /// lib/backgrounds/background1.png
/// lib/backgrounds/background2.png /// lib/backgrounds/background2.png
/// lib/backgrounds/background3.png /// lib/backgrounds/background3.png
///``` /// ```
/// ///
/// To include, say the first image, the `pubspec.yaml` of the app should specify /// To include, say the first image, the `pubspec.yaml` of the app should specify
/// it in the `assets` section: /// it in the `assets` section:
......
...@@ -140,7 +140,7 @@ const String _kColorForegroundWarning = 'Cannot provide both a color and a foreg ...@@ -140,7 +140,7 @@ const String _kColorForegroundWarning = 'Cannot provide both a color and a foreg
/// ///
/// Custom fonts can be declared in the `pubspec.yaml` file as shown below: /// Custom fonts can be declared in the `pubspec.yaml` file as shown below:
/// ///
///```yaml /// ```yaml
/// flutter: /// flutter:
/// fonts: /// fonts:
/// - family: Raleway /// - family: Raleway
...@@ -155,7 +155,7 @@ const String _kColorForegroundWarning = 'Cannot provide both a color and a foreg ...@@ -155,7 +155,7 @@ const String _kColorForegroundWarning = 'Cannot provide both a color and a foreg
/// - asset: fonts/Schyler-Regular.ttf /// - asset: fonts/Schyler-Regular.ttf
/// - asset: fonts/Schyler-Italic.ttf /// - asset: fonts/Schyler-Italic.ttf
/// style: italic /// style: italic
///``` /// ```
/// ///
/// The `family` property determines the name of the font, which you can use in /// 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, /// the [fontFamily] argument. The `asset` property is a path to the font file,
...@@ -197,7 +197,7 @@ const String _kColorForegroundWarning = 'Cannot provide both a color and a foreg ...@@ -197,7 +197,7 @@ const String _kColorForegroundWarning = 'Cannot provide both a color and a foreg
/// ///
/// Then the app can declare a font like in the example below: /// Then the app can declare a font like in the example below:
/// ///
///```yaml /// ```yaml
/// flutter: /// flutter:
/// fonts: /// fonts:
/// - family: Raleway /// - family: Raleway
...@@ -205,14 +205,14 @@ const String _kColorForegroundWarning = 'Cannot provide both a color and a foreg ...@@ -205,14 +205,14 @@ const String _kColorForegroundWarning = 'Cannot provide both a color and a foreg
/// - asset: assets/fonts/Raleway-Regular.ttf /// - asset: assets/fonts/Raleway-Regular.ttf
/// - asset: packages/my_package/fonts/Raleway-Medium.ttf /// - asset: packages/my_package/fonts/Raleway-Medium.ttf
/// weight: 500 /// weight: 500
///``` /// ```
/// ///
/// The `lib/` is implied, so it should not be included in the asset path. /// 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 /// In this case, since the app locally defines the font, the TextStyle is
/// created without the `package` argument: /// created without the `package` argument:
/// ///
///```dart /// ```dart
/// const TextStyle(fontFamily: 'Raleway') /// const TextStyle(fontFamily: 'Raleway')
/// ``` /// ```
/// ///
......
...@@ -396,4 +396,4 @@ mixin AutomaticKeepAliveClientMixin<T extends StatefulWidget> on State<T> { ...@@ -396,4 +396,4 @@ mixin AutomaticKeepAliveClientMixin<T extends StatefulWidget> on State<T> {
_ensureKeepAlive(); _ensureKeepAlive();
return null; return null;
} }
} }
\ No newline at end of file
...@@ -27,9 +27,9 @@ import 'framework.dart'; ...@@ -27,9 +27,9 @@ import 'framework.dart';
/// MyScrollableTabView( /// MyScrollableTabView(
/// key: PageStorageKey<String>(tab.text), // like 'Tab 1' /// key: PageStorageKey<String>(tab.text), // like 'Tab 1'
/// tab: tab, /// tab: tab,
/// ), /// ),
/// }), /// }),
///) /// )
/// ``` /// ```
class PageStorageKey<T> extends ValueKey<T> { class PageStorageKey<T> extends ValueKey<T> {
/// Creates a [ValueKey] that defines where [PageStorage] values will be saved. /// Creates a [ValueKey] that defines where [PageStorage] values will be saved.
......
...@@ -970,4 +970,4 @@ Widget boilerplate(Widget child) { ...@@ -970,4 +970,4 @@ Widget boilerplate(Widget child) {
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
child: child, child: child,
); );
} }
\ No newline at end of file
...@@ -332,4 +332,4 @@ void main() { ...@@ -332,4 +332,4 @@ void main() {
decoratedBoxHiddenBorder.decoration; decoratedBoxHiddenBorder.decoration;
expect(boxDecorationHiddenBorder.border, isNull); expect(boxDecorationHiddenBorder.border, isNull);
}); });
} }
\ No newline at end of file
...@@ -1015,4 +1015,4 @@ Widget boilerplate(Widget child) { ...@@ -1015,4 +1015,4 @@ Widget boilerplate(Widget child) {
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
child: child, child: child,
); );
} }
\ No newline at end of file
...@@ -128,4 +128,4 @@ void main() { ...@@ -128,4 +128,4 @@ void main() {
skip: !Platform.isLinux, skip: !Platform.isLinux,
); );
}); });
} }
\ No newline at end of file
...@@ -249,4 +249,4 @@ Future<void> slowDrag(WidgetTester tester, Key widget, Offset offset) async { ...@@ -249,4 +249,4 @@ Future<void> slowDrag(WidgetTester tester, Key widget, Offset offset) async {
await gesture.moveBy(offset); await gesture.moveBy(offset);
await tester.pump(const Duration(milliseconds: 10)); await tester.pump(const Duration(milliseconds: 10));
await gesture.up(); await gesture.up();
} }
\ No newline at end of file
...@@ -937,4 +937,4 @@ class _StatefulState extends State<_Stateful> { ...@@ -937,4 +937,4 @@ class _StatefulState extends State<_Stateful> {
), ),
); );
} }
} }
\ No newline at end of file
...@@ -24,4 +24,4 @@ void tryToDelete(Directory directory) { ...@@ -24,4 +24,4 @@ void tryToDelete(Directory directory) {
} on FileSystemException catch (error) { } on FileSystemException catch (error) {
print('Failed to delete ${directory.path}: $error'); print('Failed to delete ${directory.path}: $error');
} }
} }
\ No newline at end of file
...@@ -630,4 +630,4 @@ class _FakeSemanticsNode extends SemanticsNode { ...@@ -630,4 +630,4 @@ class _FakeSemanticsNode extends SemanticsNode {
SemanticsData data; SemanticsData data;
@override @override
SemanticsData getSemanticsData() => data; SemanticsData getSemanticsData() => data;
} }
\ No newline at end of file
...@@ -92,4 +92,4 @@ void main() { ...@@ -92,4 +92,4 @@ void main() {
}); });
} }
class PlainMockProcessManager extends Mock implements ProcessManager {} class PlainMockProcessManager extends Mock implements ProcessManager {}
\ No newline at end of file
...@@ -381,4 +381,4 @@ class CocoaPodsTestTarget extends CocoaPodsValidator { ...@@ -381,4 +381,4 @@ class CocoaPodsTestTarget extends CocoaPodsValidator {
@override @override
final bool hasHomebrew; final bool hasHomebrew;
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment