Fix typos (#121171)
* Fix typos * lowercase animated & opacity * Undo typo fix --------- Co-authored-by: Michael Goderbauer <goderbauer@google.com>
This commit is contained in:
@@ -12,13 +12,13 @@ void main() {
|
||||
const example.ChipApp(),
|
||||
);
|
||||
|
||||
ChoiceChip choosenChip = tester.widget(find.byType(ChoiceChip).at(1));
|
||||
expect(choosenChip.selected, true);
|
||||
ChoiceChip chosenChip = tester.widget(find.byType(ChoiceChip).at(1));
|
||||
expect(chosenChip.selected, true);
|
||||
|
||||
await tester.tap(find.byType(ChoiceChip).at(0));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
choosenChip = tester.widget(find.byType(ChoiceChip).at(0));
|
||||
expect(choosenChip.selected, true);
|
||||
chosenChip = tester.widget(find.byType(ChoiceChip).at(0));
|
||||
expect(chosenChip.selected, true);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ void main() {
|
||||
|
||||
expect(find.byType(VerticalDivider), findsOneWidget);
|
||||
|
||||
// Divider is positioned horizintally.
|
||||
// Divider is positioned horizontally.
|
||||
Offset expanded = tester.getTopRight(find.byType(Expanded).first);
|
||||
expect(expanded.dx, tester.getTopLeft(find.byType(VerticalDivider)).dx);
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import 'package:flutter_api_samples/material/list_tile/list_tile.4.dart' as exam
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Can choose different title aligments from popup menu', (WidgetTester tester) async {
|
||||
testWidgets('Can choose different title alignments from popup menu', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
const example.ListTileApp(),
|
||||
);
|
||||
|
||||
@@ -43,7 +43,7 @@ Offset _textOffsetToPosition<T extends State<StatefulWidget>>(WidgetTester teste
|
||||
}
|
||||
|
||||
void main() {
|
||||
const Duration durationBetweenActons = Duration(milliseconds: 20);
|
||||
const Duration durationBetweenActions = Duration(milliseconds: 20);
|
||||
const String defaultText = 'I am a magnifier, fear me!';
|
||||
|
||||
Future<void> showMagnifier(WidgetTester tester, String characterToTapOn) async {
|
||||
@@ -51,11 +51,11 @@ void main() {
|
||||
|
||||
// Double tap 'Magnifier' word to show the selection handles.
|
||||
final TestGesture testGesture = await tester.startGesture(tapOffset);
|
||||
await tester.pump(durationBetweenActons);
|
||||
await tester.pump(durationBetweenActions);
|
||||
await testGesture.up();
|
||||
await tester.pump(durationBetweenActons);
|
||||
await tester.pump(durationBetweenActions);
|
||||
await testGesture.down(tapOffset);
|
||||
await tester.pump(durationBetweenActons);
|
||||
await tester.pump(durationBetweenActions);
|
||||
await testGesture.up();
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user