Add missing links to examples that aren't linked anywhere (#130422)
## Description This adds links to examples that were not linked anywhere. ## Related Issues - Fixes #129956 ## Tests - Documentation only change
This commit is contained in:
@@ -114,6 +114,13 @@ class ActionIconThemeData with Diagnosticable {
|
||||
/// An inherited widget that overrides the default icon of [BackButtonIcon],
|
||||
/// [CloseButtonIcon], [DrawerButtonIcon], and [EndDrawerButtonIcon] in this
|
||||
/// widget's subtree.
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This example shows how to define custom builders for drawer and back
|
||||
/// buttons.
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/action_buttons/action_icon_theme.0.dart **
|
||||
/// {@end-tool}
|
||||
class ActionIconTheme extends InheritedTheme {
|
||||
/// Creates a theme that overrides the default icon of [BackButtonIcon],
|
||||
/// [CloseButtonIcon], [DrawerButtonIcon], and [EndDrawerButtonIcon] in this
|
||||
|
||||
@@ -279,6 +279,12 @@ class ScaffoldMessengerState extends State<ScaffoldMessenger> with TickerProvide
|
||||
/// the SnackBar to be visible.
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// Here is an example showing how to display a [SnackBar] with [showSnackBar]
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/scaffold/scaffold_messenger_state.show_snack_bar.0.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// Here is an example showing that a floating [SnackBar] appears above [Scaffold.floatingActionButton].
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/scaffold/scaffold_messenger_state.show_snack_bar.1.dart **
|
||||
|
||||
@@ -87,6 +87,19 @@ typedef ViewBuilder = Widget Function(Iterable<Widget> suggestions);
|
||||
/// ** See code in examples/api/lib/material/search_anchor/search_anchor.1.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This example shows how to fetch the search suggestions from a remote API.
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/search_anchor/search_anchor.3.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This example demonstrates fetching the search suggestions asynchronously and
|
||||
/// debouncing network calls.
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/search_anchor/search_anchor.4.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [SearchBar], a widget that defines a search bar.
|
||||
|
||||
@@ -250,6 +250,13 @@ class _SnackBarActionState extends State<SnackBarAction> {
|
||||
/// ** See code in examples/api/lib/material/snack_bar/snack_bar.1.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This example demonstrates the various [SnackBar] widget components,
|
||||
/// including an optional icon, in either floating or fixed format.
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/snack_bar/snack_bar.2.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [ScaffoldMessenger.of], to obtain the current [ScaffoldMessengerState],
|
||||
|
||||
@@ -69,6 +69,13 @@ enum _SwitchType { material, adaptive }
|
||||
/// ** See code in examples/api/lib/material/switch/switch.2.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This example shows how to use the ambient [CupertinoThemeData] to style all
|
||||
/// widgets which would otherwise use iOS defaults.
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/switch/switch.3.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [SwitchListTile], which combines this widget with a [ListTile] so that
|
||||
|
||||
@@ -178,6 +178,13 @@ class _TextFieldSelectionGestureDetectorBuilder extends TextSelectionGestureDete
|
||||
///
|
||||
/// {@macro flutter.widgets.editableText.accessibility}
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This sample shows how to style a text field to match a filled or outlined
|
||||
/// Material Design 3 text field.
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/text_field/text_field.2.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [TextFormField], which integrates with the [Form] widget.
|
||||
|
||||
@@ -132,6 +132,12 @@ class LinearBorderEdge {
|
||||
///
|
||||
/// Convenience constructors are included for the common case where just one edge is specified:
|
||||
/// [LinearBorder.start], [LinearBorder.end], [LinearBorder.top], [LinearBorder.bottom].
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This example shows how to draw different kinds of [LinearBorder]s.
|
||||
///
|
||||
/// ** See code in examples/api/lib/painting/linear_border/linear_border.0.dart **
|
||||
/// {@end-tool}
|
||||
class LinearBorder extends OutlinedBorder {
|
||||
/// Creates a rectangular box border that's rendered as zero to four lines.
|
||||
const LinearBorder({
|
||||
|
||||
@@ -3036,6 +3036,12 @@ class LimitedBox extends SingleChildRenderObjectWidget {
|
||||
/// A widget that imposes different constraints on its child than it gets
|
||||
/// from its parent, possibly allowing the child to overflow the parent.
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This example shows how an [OverflowBox] is used, and what its effect is.
|
||||
///
|
||||
/// ** See code in examples/api/lib/widgets/basic/overflowbox.0.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [RenderConstrainedOverflowBox] for details about how [OverflowBox] is
|
||||
|
||||
Reference in New Issue
Block a user