mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Move AnimatedIcons
example and fix typo in cupertino/text_selection_toolbar.dart
(#113937)
This commit is contained in:
parent
400136b007
commit
b0e7c9c4f0
@ -3,7 +3,7 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
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;
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
@ -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 }) {
|
||||
if (child == null) {
|
||||
return false;
|
||||
|
@ -22,13 +22,6 @@ part of material_animated_icons;
|
||||
/// ** See code in examples/api/lib/material/animated_icon/animated_icon.0.dart **
|
||||
/// {@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:
|
||||
///
|
||||
/// * [Icons], for the list of available static Material Icons.
|
||||
|
@ -13,6 +13,17 @@ part of material_animated_icons;
|
||||
/// Identifier for the supported Material Design 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 {
|
||||
|
||||
/// The Material Design add to event icon animation.
|
||||
|
Loading…
Reference in New Issue
Block a user