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

This commit is contained in:
Taha Tesser 2022-10-25 10:27:06 +03:00 committed by GitHub
parent 400136b007
commit b0e7c9c4f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 9 deletions

View File

@ -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';

View File

@ -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;

View File

@ -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.

View File

@ -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.