From 2097fe64f024b2802ea011a268dac39bd78d7751 Mon Sep 17 00:00:00 2001 From: Taha Tesser Date: Wed, 16 Feb 2022 06:20:22 +0200 Subject: [PATCH] `CupertinoPicker`: Update example (#98525) --- .../api/lib/cupertino/picker/cupertino_picker.0.dart | 12 ++++++------ .../cupertino/picker/cupertino_picker.0_test.dart | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/api/lib/cupertino/picker/cupertino_picker.0.dart b/examples/api/lib/cupertino/picker/cupertino_picker.0.dart index 5bbcd03b2a..d1631638a4 100644 --- a/examples/api/lib/cupertino/picker/cupertino_picker.0.dart +++ b/examples/api/lib/cupertino/picker/cupertino_picker.0.dart @@ -8,12 +8,12 @@ import 'package:flutter/cupertino.dart'; const double _kItemExtent = 32.0; const List _fruitNames = [ - '🍎 Apple', - '🥭 Mango', - '🍌 Banana', - '🍊 Orange', - '🍍 Pineapple', - '🍓 Strawberry', + 'Apple', + 'Mango', + 'Banana', + 'Orange', + 'Pineapple', + 'Strawberry', ]; void main() => runApp(const MyApp()); diff --git a/examples/api/test/cupertino/picker/cupertino_picker.0_test.dart b/examples/api/test/cupertino/picker/cupertino_picker.0_test.dart index fd0998e003..168e2f57ac 100644 --- a/examples/api/test/cupertino/picker/cupertino_picker.0_test.dart +++ b/examples/api/test/cupertino/picker/cupertino_picker.0_test.dart @@ -14,11 +14,11 @@ void main() { ); // Open the Cupertino picker. - await tester.tap(find.text('🍎 Apple')); + await tester.tap(find.text('Apple')); await tester.pumpAndSettle(); // Drag the wheel to change fruit selection. - await tester.drag(find.text('🥭 Mango'), _kRowOffset, touchSlopY: 0, warnIfMissed: false); // see top of file + await tester.drag(find.text('Mango'), _kRowOffset, touchSlopY: 0, warnIfMissed: false); // see top of file await tester.pump(); await tester.pump(const Duration(milliseconds: 500)); @@ -27,6 +27,6 @@ void main() { await tester.tapAt(const Offset(1.0, 1.0)); await tester.pumpAndSettle(); - expect(find.text('🍌 Banana'), findsOneWidget); + expect(find.text('Banana'), findsOneWidget); }); }