Skip to content

Commit

Permalink
Move AnimatedIcons example and fix typo in `cupertino/text_selectio…
Browse files Browse the repository at this point in the history
…n_toolbar.dart` (flutter#113937)
  • Loading branch information
TahaTesser committed Oct 25, 2022
1 parent 400136b commit b0e7c9c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b0e7c9c

Please sign in to comment.