Skip to content

Commit b0e7c9c

Browse files
authored
Move AnimatedIcons example and fix typo in cupertino/text_selection_toolbar.dart (#113937)
1 parent 400136b commit b0e7c9c

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

examples/api/test/material/animated_icon/animated_icon.1_test.dart renamed to examples/api/test/material/animated_icon/animated_icons_data.0_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// found in the LICENSE file.
44

55
import 'package:flutter/material.dart';
6-
import 'package:flutter_api_samples/material/animated_icon/animated_icon.1.dart'
6+
import 'package:flutter_api_samples/material/animated_icon/animated_icons_data.0.dart'
77
as example;
88
import 'package:flutter_test/flutter_test.dart';
99

packages/flutter/lib/src/cupertino/text_selection_toolbar.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ class _RenderCupertinoTextSelectionToolbarItems extends RenderBox with Container
869869
}
870870
}
871871

872-
// Returns true iff the single child is hit by the given position.
872+
// Returns true if the single child is hit by the given position.
873873
static bool hitTestChild(RenderBox? child, BoxHitTestResult result, { required Offset position }) {
874874
if (child == null) {
875875
return false;

packages/flutter/lib/src/material/animated_icons/animated_icons.dart

-7
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ part of material_animated_icons;
2222
/// ** See code in examples/api/lib/material/animated_icon/animated_icon.0.dart **
2323
/// {@end-tool}
2424
///
25-
/// {@tool dartpad}
26-
/// This example showcases all the available [AnimatedIcons] in a [GridView].
27-
/// The icons are animated forward and reverse in a loop.
28-
///
29-
/// ** See code in examples/api/lib/material/animated_icon/animated_icon.1.dart **
30-
/// {@end-tool}
31-
///
3225
/// See also:
3326
///
3427
/// * [Icons], for the list of available static Material Icons.

packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart

+11
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ part of material_animated_icons;
1313
/// Identifier for the supported Material Design animated icons.
1414
///
1515
/// Use with [AnimatedIcon] class to show specific animated icons.
16+
///
17+
/// {@tool dartpad}
18+
/// This example shows how to create an animated icon. The icon is animated
19+
/// forward and reverse in a loop.
20+
///
21+
/// ** See code in examples/api/lib/material/animated_icon/animated_icons_data.0.dart **
22+
/// {@end-tool}
23+
///
24+
/// See also:
25+
///
26+
/// * [Icons], for the list of available static Material Icons.
1627
abstract class AnimatedIcons {
1728

1829
/// The Material Design add to event icon animation.

0 commit comments

Comments
 (0)