fix some formatting issues (#25474)

This commit is contained in:
Alexandre Ardhuin 2018-12-18 10:05:12 +01:00 committed by GitHub
parent 8ad4cbe06e
commit 32d65fef1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 26 additions and 26 deletions

View File

@ -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.
/// ///

View File

@ -474,7 +474,7 @@ final TextTreeConfiguration transitionTextConfiguration = TextTreeConfiguration(
/// <name>: <description>: /// <name>: <description>:
/// <properties> /// <properties>
/// <children> /// <children>
///``` /// ```
/// ///
/// See also: /// See also:
/// ///

View File

@ -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> {
/// 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:

View File

@ -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:

View File

@ -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
/// - 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
/// ///
/// 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
/// - 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')
/// ``` /// ```
/// ///

View File

@ -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.