Add code sample to the CupertinoMagnifier/CupertinoTextMagnifier (#156028)

This PR adds code samples regarding the CupertinoMagnifier and CupertinoTextMagnifier

Fixes #154439
This commit is contained in:
RamonFarizel
2024-10-11 17:53:18 -03:00
committed by GitHub
parent 45033a29f9
commit 51aa2f5809
5 changed files with 232 additions and 0 deletions

View File

@@ -11,6 +11,12 @@ import 'package:flutter/widgets.dart';
/// A [CupertinoMagnifier] used for magnifying text in cases where a user's
/// finger may be blocking the point of interest, like a selection handle.
///
/// {@tool dartpad}
/// This sample demonstrates how to use [CupertinoTextMagnifier].
///
/// ** See code in examples/api/lib/widgets/magnifier/cupertino_text_magnifier.0.dart **
/// {@end-tool}
///
/// Delegates styling to [CupertinoMagnifier] with its position depending on
/// [magnifierInfo].
///
@@ -225,6 +231,12 @@ class _CupertinoTextMagnifierState extends State<CupertinoTextMagnifier>
/// A [RawMagnifier] used for magnifying text in cases where a user's
/// finger may be blocking the point of interest, like a selection handle.
///
/// {@tool dartpad}
/// This sample demonstrates how to use [CupertinoMagnifier].
///
/// ** See code in examples/api/lib/widgets/magnifier/cupertino_magnifier.0.dart **
/// {@end-tool}
///
/// [CupertinoMagnifier] is a wrapper around [RawMagnifier] that handles styling
/// and transitions.
///