Unverified Commit b0e7c9c4 authored by Taha Tesser's avatar Taha Tesser Committed by GitHub

Move `AnimatedIcons` example and fix typo in `cupertino/text_selection_toolbar.dart` (#113937)

parent 400136b0
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_api_samples/material/animated_icon/animated_icon.1.dart' import 'package:flutter_api_samples/material/animated_icon/animated_icons_data.0.dart'
as example; as example;
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
......
...@@ -869,7 +869,7 @@ class _RenderCupertinoTextSelectionToolbarItems extends RenderBox with Container ...@@ -869,7 +869,7 @@ class _RenderCupertinoTextSelectionToolbarItems extends RenderBox with Container
} }
} }
// Returns true iff the single child is hit by the given position. // Returns true if the single child is hit by the given position.
static bool hitTestChild(RenderBox? child, BoxHitTestResult result, { required Offset position }) { static bool hitTestChild(RenderBox? child, BoxHitTestResult result, { required Offset position }) {
if (child == null) { if (child == null) {
return false; return false;
......
...@@ -22,13 +22,6 @@ part of material_animated_icons; ...@@ -22,13 +22,6 @@ part of material_animated_icons;
/// ** See code in examples/api/lib/material/animated_icon/animated_icon.0.dart ** /// ** See code in examples/api/lib/material/animated_icon/animated_icon.0.dart **
/// {@end-tool} /// {@end-tool}
/// ///
/// {@tool dartpad}
/// This example showcases all the available [AnimatedIcons] in a [GridView].
/// The icons are animated forward and reverse in a loop.
///
/// ** See code in examples/api/lib/material/animated_icon/animated_icon.1.dart **
/// {@end-tool}
///
/// See also: /// See also:
/// ///
/// * [Icons], for the list of available static Material Icons. /// * [Icons], for the list of available static Material Icons.
......
...@@ -13,6 +13,17 @@ part of material_animated_icons; ...@@ -13,6 +13,17 @@ part of material_animated_icons;
/// Identifier for the supported Material Design animated icons. /// Identifier for the supported Material Design animated icons.
/// ///
/// Use with [AnimatedIcon] class to show specific animated icons. /// Use with [AnimatedIcon] class to show specific animated icons.
///
/// {@tool dartpad}
/// This example shows how to create an animated icon. The icon is animated
/// forward and reverse in a loop.
///
/// ** See code in examples/api/lib/material/animated_icon/animated_icons_data.0.dart **
/// {@end-tool}
///
/// See also:
///
/// * [Icons], for the list of available static Material Icons.
abstract class AnimatedIcons { abstract class AnimatedIcons {
/// The Material Design add to event icon animation. /// The Material Design add to event icon animation.
......
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