From 32d65fef1ccd1892eb666a0600d8ba945fd15ceb Mon Sep 17 00:00:00 2001 From: Alexandre Ardhuin Date: Tue, 18 Dec 2018 10:05:12 +0100 Subject: [PATCH] fix some formatting issues (#25474) --- packages/flutter/lib/src/animation/tween_sequence.dart | 2 +- packages/flutter/lib/src/cupertino/date_picker.dart | 2 +- packages/flutter/lib/src/cupertino/dialog.dart | 2 +- packages/flutter/lib/src/foundation/diagnostics.dart | 2 +- packages/flutter/lib/src/painting/image_provider.dart | 4 ++-- .../flutter/lib/src/painting/image_resolution.dart | 2 +- packages/flutter/lib/src/painting/text_style.dart | 10 +++++----- .../flutter/lib/src/widgets/automatic_keep_alive.dart | 2 +- packages/flutter/lib/src/widgets/page_storage.dart | 6 +++--- packages/flutter/test/cupertino/action_sheet_test.dart | 2 +- .../flutter/test/cupertino/bottom_tab_bar_test.dart | 2 +- packages/flutter/test/cupertino/dialog_test.dart | 2 +- packages/flutter/test/material/dialog_theme_test.dart | 2 +- .../flexible_space_bar_collapse_mode_test.dart | 2 +- .../flutter/test/material/reorderable_list_test.dart | 2 +- packages/flutter_driver/test/common.dart | 2 +- packages/flutter_test/test/matchers_test.dart | 2 +- packages/flutter_tools/test/base/process_test.dart | 2 +- packages/flutter_tools/test/ios/ios_workflow_test.dart | 2 +- 19 files changed, 26 insertions(+), 26 deletions(-) diff --git a/packages/flutter/lib/src/animation/tween_sequence.dart b/packages/flutter/lib/src/animation/tween_sequence.dart index 490526fbd2e..7d584e68def 100644 --- a/packages/flutter/lib/src/animation/tween_sequence.dart +++ b/packages/flutter/lib/src/animation/tween_sequence.dart @@ -34,7 +34,7 @@ import 'tween.dart'; /// ), /// ], /// ).animate(myAnimationController); -///``` +/// ``` class TweenSequence extends Animatable { /// Construct a TweenSequence. /// diff --git a/packages/flutter/lib/src/cupertino/date_picker.dart b/packages/flutter/lib/src/cupertino/date_picker.dart index f6bd0ca75ba..624296ab96d 100644 --- a/packages/flutter/lib/src/cupertino/date_picker.dart +++ b/packages/flutter/lib/src/cupertino/date_picker.dart @@ -1340,4 +1340,4 @@ class _CupertinoTimerPickerState extends State { 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 c4207621640..443b03d8f4f 100644 --- a/packages/flutter/lib/src/cupertino/dialog.dart +++ b/packages/flutter/lib/src/cupertino/dialog.dart @@ -1694,4 +1694,4 @@ class _RenderCupertinoDialogActions extends RenderBox 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 abcf27a4ea4..95c96e0ee0c 100644 --- a/packages/flutter/lib/src/foundation/diagnostics.dart +++ b/packages/flutter/lib/src/foundation/diagnostics.dart @@ -474,7 +474,7 @@ final TextTreeConfiguration transitionTextConfiguration = TextTreeConfiguration( /// : : /// /// -///``` +/// ``` /// /// See also: /// diff --git a/packages/flutter/lib/src/painting/image_provider.dart b/packages/flutter/lib/src/painting/image_provider.dart index 5bb5f99e53a..d8c42771478 100644 --- a/packages/flutter/lib/src/painting/image_provider.dart +++ b/packages/flutter/lib/src/painting/image_provider.dart @@ -664,7 +664,7 @@ class MemoryImage extends ImageProvider { /// 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 @@ class MemoryImage extends ImageProvider { /// 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 7c6d7becd8d..b29727e4521 100644 --- a/packages/flutter/lib/src/painting/image_resolution.dart +++ b/packages/flutter/lib/src/painting/image_resolution.dart @@ -105,7 +105,7 @@ const String _kAssetManifestFileName = 'AssetManifest.json'; /// 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 102fb9cb678..daad2f04a38 100644 --- a/packages/flutter/lib/src/painting/text_style.dart +++ b/packages/flutter/lib/src/painting/text_style.dart @@ -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: /// -///```yaml +/// ```yaml /// flutter: /// fonts: /// - family: Raleway @@ -155,7 +155,7 @@ const String _kColorForegroundWarning = 'Cannot provide both a color and a foreg /// - 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 @@ const String _kColorForegroundWarning = 'Cannot provide both a color and a foreg /// /// Then the app can declare a font like in the example below: /// -///```yaml +/// ```yaml /// flutter: /// fonts: /// - family: Raleway @@ -205,14 +205,14 @@ const String _kColorForegroundWarning = 'Cannot provide both a color and a foreg /// - 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 b03cc7b0553..92cd0c8197e 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 @@ mixin AutomaticKeepAliveClientMixin on State { _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 e7c8d2f3538..103e6dc3e00 100644 --- a/packages/flutter/lib/src/widgets/page_storage.dart +++ b/packages/flutter/lib/src/widgets/page_storage.dart @@ -27,9 +27,9 @@ import 'framework.dart'; /// MyScrollableTabView( /// key: PageStorageKey(tab.text), // like 'Tab 1' /// tab: tab, -/// ), -/// }), -///) +/// ), +/// }), +/// ) /// ``` class PageStorageKey extends ValueKey { /// 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 0c450341c7c..b682b924ee4 100644 --- a/packages/flutter/test/cupertino/action_sheet_test.dart +++ b/packages/flutter/test/cupertino/action_sheet_test.dart @@ -970,4 +970,4 @@ Widget boilerplate(Widget child) { 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 ca54528dc3d..ceaf055d3d8 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 @@ void main() { 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 d1f58dfeaa0..1837918e888 100644 --- a/packages/flutter/test/cupertino/dialog_test.dart +++ b/packages/flutter/test/cupertino/dialog_test.dart @@ -1015,4 +1015,4 @@ Widget boilerplate(Widget child) { 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 77917e3bd70..50ecf13ccf1 100644 --- a/packages/flutter/test/material/dialog_theme_test.dart +++ b/packages/flutter/test/material/dialog_theme_test.dart @@ -128,4 +128,4 @@ void main() { 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 6ba8384fb34..f33d0e20872 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 @@ Future slowDrag(WidgetTester tester, Key widget, Offset offset) async { 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 7acdedc601c..535c7b298bb 100644 --- a/packages/flutter/test/material/reorderable_list_test.dart +++ b/packages/flutter/test/material/reorderable_list_test.dart @@ -937,4 +937,4 @@ class _StatefulState extends State<_Stateful> { ), ); } -} \ No newline at end of file +} diff --git a/packages/flutter_driver/test/common.dart b/packages/flutter_driver/test/common.dart index b10f9b34dfa..2f89c7cd7ed 100644 --- a/packages/flutter_driver/test/common.dart +++ b/packages/flutter_driver/test/common.dart @@ -24,4 +24,4 @@ void tryToDelete(Directory directory) { } 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 31367f42dec..87c5383fb9a 100644 --- a/packages/flutter_test/test/matchers_test.dart +++ b/packages/flutter_test/test/matchers_test.dart @@ -630,4 +630,4 @@ class _FakeSemanticsNode extends SemanticsNode { 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 f01f5bc4329..f8976902c7c 100644 --- a/packages/flutter_tools/test/base/process_test.dart +++ b/packages/flutter_tools/test/base/process_test.dart @@ -92,4 +92,4 @@ void main() { }); } -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 8b531e1ce20..b0844622fd2 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 @@ class CocoaPodsTestTarget extends CocoaPodsValidator { @override final bool hasHomebrew; -} \ No newline at end of file +}