[NNBD] Migrate sample code pt 3 (#72837)
This commit is contained in:
parent
4219dea6e0
commit
691d05da98
@ -66,7 +66,7 @@ enum BottomNavigationBarType {
|
|||||||
/// case it's assumed that each item will have a different background color
|
/// case it's assumed that each item will have a different background color
|
||||||
/// and that background color will contrast well with white.
|
/// and that background color will contrast well with white.
|
||||||
///
|
///
|
||||||
/// {@tool dartpad --template=stateful_widget_material_no_null_safety}
|
/// {@tool dartpad --template=stateful_widget_material}
|
||||||
/// This example shows a [BottomNavigationBar] as it is used within a [Scaffold]
|
/// This example shows a [BottomNavigationBar] as it is used within a [Scaffold]
|
||||||
/// widget. The [BottomNavigationBar] has three [BottomNavigationBarItem]
|
/// widget. The [BottomNavigationBar] has three [BottomNavigationBarItem]
|
||||||
/// widgets and the [currentIndex] is set to index 0. The selected item is
|
/// widgets and the [currentIndex] is set to index 0. The selected item is
|
||||||
|
@ -596,7 +596,7 @@ class _BottomSheetSuspendedCurve extends ParametricCurve<double> {
|
|||||||
/// Returns a `Future` that resolves to the value (if any) that was passed to
|
/// Returns a `Future` that resolves to the value (if any) that was passed to
|
||||||
/// [Navigator.pop] when the modal bottom sheet was closed.
|
/// [Navigator.pop] when the modal bottom sheet was closed.
|
||||||
///
|
///
|
||||||
/// {@tool dartpad --template=stateless_widget_scaffold_no_null_safety}
|
/// {@tool dartpad --template=stateless_widget_scaffold}
|
||||||
///
|
///
|
||||||
/// This example demonstrates how to use `showModalBottomSheet` to display a
|
/// This example demonstrates how to use `showModalBottomSheet` to display a
|
||||||
/// bottom sheet that obscures the content behind it when a user taps a button.
|
/// bottom sheet that obscures the content behind it when a user taps a button.
|
||||||
|
@ -148,7 +148,7 @@ class ExpansionPanelRadio extends ExpansionPanel {
|
|||||||
/// Note that [expansionCallback] behaves differently for [ExpansionPanelList]
|
/// Note that [expansionCallback] behaves differently for [ExpansionPanelList]
|
||||||
/// and [ExpansionPanelList.radio].
|
/// and [ExpansionPanelList.radio].
|
||||||
///
|
///
|
||||||
/// {@tool dartpad --template=stateful_widget_scaffold_no_null_safety}
|
/// {@tool dartpad --template=stateful_widget_scaffold}
|
||||||
///
|
///
|
||||||
/// Here is a simple example of how to implement ExpansionPanelList.
|
/// Here is a simple example of how to implement ExpansionPanelList.
|
||||||
///
|
///
|
||||||
@ -156,8 +156,8 @@ class ExpansionPanelRadio extends ExpansionPanel {
|
|||||||
/// // stores ExpansionPanel state information
|
/// // stores ExpansionPanel state information
|
||||||
/// class Item {
|
/// class Item {
|
||||||
/// Item({
|
/// Item({
|
||||||
/// this.expandedValue,
|
/// required this.expandedValue,
|
||||||
/// this.headerValue,
|
/// required this.headerValue,
|
||||||
/// this.isExpanded = false,
|
/// this.isExpanded = false,
|
||||||
/// });
|
/// });
|
||||||
///
|
///
|
||||||
@ -252,7 +252,7 @@ class ExpansionPanelList extends StatefulWidget {
|
|||||||
/// arguments must not be null. The [children] objects must be instances
|
/// arguments must not be null. The [children] objects must be instances
|
||||||
/// of [ExpansionPanelRadio].
|
/// of [ExpansionPanelRadio].
|
||||||
///
|
///
|
||||||
/// {@tool dartpad --template=stateful_widget_scaffold_no_null_safety}
|
/// {@tool dartpad --template=stateful_widget_scaffold}
|
||||||
///
|
///
|
||||||
/// Here is a simple example of how to implement ExpansionPanelList.radio.
|
/// Here is a simple example of how to implement ExpansionPanelList.radio.
|
||||||
///
|
///
|
||||||
@ -260,9 +260,9 @@ class ExpansionPanelList extends StatefulWidget {
|
|||||||
/// // stores ExpansionPanel state information
|
/// // stores ExpansionPanel state information
|
||||||
/// class Item {
|
/// class Item {
|
||||||
/// Item({
|
/// Item({
|
||||||
/// this.id,
|
/// required this.id,
|
||||||
/// this.expandedValue,
|
/// required this.expandedValue,
|
||||||
/// this.headerValue,
|
/// required this.headerValue,
|
||||||
/// });
|
/// });
|
||||||
///
|
///
|
||||||
/// int id;
|
/// int id;
|
||||||
|
@ -53,7 +53,7 @@ enum StretchMode {
|
|||||||
/// [FlexibleSpaceBar.createSettings], to convey sizing information down to the
|
/// [FlexibleSpaceBar.createSettings], to convey sizing information down to the
|
||||||
/// [FlexibleSpaceBar].
|
/// [FlexibleSpaceBar].
|
||||||
///
|
///
|
||||||
/// {@tool dartpad --template=freeform_no_null_safety}
|
/// {@tool dartpad --template=freeform}
|
||||||
/// This sample application demonstrates the different features of the
|
/// This sample application demonstrates the different features of the
|
||||||
/// [FlexibleSpaceBar] when used in a [SliverAppBar]. This app bar is configured
|
/// [FlexibleSpaceBar] when used in a [SliverAppBar]. This app bar is configured
|
||||||
/// to stretch into the overscroll space, and uses the
|
/// to stretch into the overscroll space, and uses the
|
||||||
@ -78,7 +78,7 @@ enum StretchMode {
|
|||||||
/// stretch: true,
|
/// stretch: true,
|
||||||
/// onStretchTrigger: () {
|
/// onStretchTrigger: () {
|
||||||
/// // Function callback for stretch
|
/// // Function callback for stretch
|
||||||
/// return;
|
/// return Future.value();
|
||||||
/// },
|
/// },
|
||||||
/// expandedHeight: 300.0,
|
/// expandedHeight: 300.0,
|
||||||
/// flexibleSpace: FlexibleSpaceBar(
|
/// flexibleSpace: FlexibleSpaceBar(
|
||||||
|
@ -431,7 +431,7 @@ abstract class FloatingActionButtonLocation {
|
|||||||
/// You can create your own subclass of [StandardFabLocation]
|
/// You can create your own subclass of [StandardFabLocation]
|
||||||
/// to implement a custom [FloatingActionButtonLocation].
|
/// to implement a custom [FloatingActionButtonLocation].
|
||||||
///
|
///
|
||||||
/// {@tool dartpad --template=stateless_widget_material_no_null_safety}
|
/// {@tool dartpad --template=stateless_widget_material}
|
||||||
///
|
///
|
||||||
/// This is an example of a user-defined [FloatingActionButtonLocation].
|
/// This is an example of a user-defined [FloatingActionButtonLocation].
|
||||||
///
|
///
|
||||||
|
@ -40,7 +40,7 @@ const double _kMinButtonSize = kMinInteractiveDimension;
|
|||||||
/// requirements in the Material Design specification. The [alignment] controls
|
/// requirements in the Material Design specification. The [alignment] controls
|
||||||
/// how the icon itself is positioned within the hit region.
|
/// how the icon itself is positioned within the hit region.
|
||||||
///
|
///
|
||||||
/// {@tool dartpad --template=stateful_widget_scaffold_center_no_null_safety}
|
/// {@tool dartpad --template=stateful_widget_scaffold_center}
|
||||||
///
|
///
|
||||||
/// This sample shows an `IconButton` that uses the Material icon "volume_up" to
|
/// This sample shows an `IconButton` that uses the Material icon "volume_up" to
|
||||||
/// increase the volume.
|
/// increase the volume.
|
||||||
@ -84,7 +84,7 @@ const double _kMinButtonSize = kMinInteractiveDimension;
|
|||||||
/// the underlying [Material] along with the splash and highlight
|
/// the underlying [Material] along with the splash and highlight
|
||||||
/// [InkResponse] contributed by descendant widgets.
|
/// [InkResponse] contributed by descendant widgets.
|
||||||
///
|
///
|
||||||
/// {@tool dartpad --template=stateless_widget_scaffold_no_null_safety}
|
/// {@tool dartpad --template=stateless_widget_scaffold}
|
||||||
///
|
///
|
||||||
/// In this sample the icon button's background color is defined with an [Ink]
|
/// In this sample the icon button's background color is defined with an [Ink]
|
||||||
/// widget whose child is an [IconButton]. The icon button's filled background
|
/// widget whose child is an [IconButton]. The icon button's filled background
|
||||||
|
@ -57,7 +57,7 @@ const Duration _kElevationDuration = Duration(milliseconds: 75);
|
|||||||
/// Outline buttons have a minimum size of 88.0 by 36.0 which can be overridden
|
/// Outline buttons have a minimum size of 88.0 by 36.0 which can be overridden
|
||||||
/// with [ButtonTheme].
|
/// with [ButtonTheme].
|
||||||
///
|
///
|
||||||
/// {@tool dartpad --template=stateless_widget_scaffold_center_no_null_safety}
|
/// {@tool dartpad --template=stateless_widget_scaffold_center}
|
||||||
///
|
///
|
||||||
/// Here is an example of a basic [OutlineButton].
|
/// Here is an example of a basic [OutlineButton].
|
||||||
///
|
///
|
||||||
|
@ -243,12 +243,12 @@ class _LinearProgressIndicatorPainter extends CustomPainter {
|
|||||||
/// The minimum height of the indicator can be specified using [minHeight].
|
/// The minimum height of the indicator can be specified using [minHeight].
|
||||||
/// The indicator can be made taller by wrapping the widget with a [SizedBox].
|
/// The indicator can be made taller by wrapping the widget with a [SizedBox].
|
||||||
///
|
///
|
||||||
/// {@tool dartpad --template=stateful_widget_material_ticker_no_null_safety}
|
/// {@tool dartpad --template=stateful_widget_material_ticker}
|
||||||
///
|
///
|
||||||
/// This example shows a [LinearProgressIndicator] with a changing value.
|
/// This example shows a [LinearProgressIndicator] with a changing value.
|
||||||
///
|
///
|
||||||
/// ```dart
|
/// ```dart
|
||||||
/// AnimationController controller;
|
/// late AnimationController controller;
|
||||||
///
|
///
|
||||||
/// @override
|
/// @override
|
||||||
/// void initState() {
|
/// void initState() {
|
||||||
@ -481,12 +481,12 @@ class _CircularProgressIndicatorPainter extends CustomPainter {
|
|||||||
/// The indicator arc is displayed with [valueColor], an animated value. To
|
/// The indicator arc is displayed with [valueColor], an animated value. To
|
||||||
/// specify a constant color use: `AlwaysStoppedAnimation<Color>(color)`.
|
/// specify a constant color use: `AlwaysStoppedAnimation<Color>(color)`.
|
||||||
///
|
///
|
||||||
/// {@tool dartpad --template=stateful_widget_material_ticker_no_null_safety}
|
/// {@tool dartpad --template=stateful_widget_material_ticker}
|
||||||
///
|
///
|
||||||
/// This example shows a [CircularProgressIndicator] with a changing value.
|
/// This example shows a [CircularProgressIndicator] with a changing value.
|
||||||
///
|
///
|
||||||
/// ```dart
|
/// ```dart
|
||||||
/// AnimationController controller;
|
/// late AnimationController controller;
|
||||||
///
|
///
|
||||||
/// @override
|
/// @override
|
||||||
/// void initState() {
|
/// void initState() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user