-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextInput can try to make a child into a parent of itself #23
Comments
Reproducible with the following test: import 'dart:ui' as ui;
import 'package:chicago/chicago.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
Widget wrap(Widget child) {
return Localizations(
locale: Locale('en', 'US'),
delegates: [
DefaultWidgetsLocalizations.delegate,
DefaultMaterialLocalizations.delegate,
],
child: MediaQuery(
data: MediaQueryData.fromWindow(ui.window),
child: Directionality(
textDirection: TextDirection.ltr,
child: Material(
child: Navigator(
onGenerateRoute: (RouteSettings settings) {
return MaterialPageRoute<void>(
settings: settings,
builder: (BuildContext context) => child,
);
},
),
),
),
),
);
}
testWidgets('Can render a TextInput with an onKeyEvent handler', (WidgetTester tester) async {
await tester.pumpWidget(wrap(
TextInput(onKeyEvent: (RawKeyEvent event) {}),
));
expect(find.byType(TextInput), findsOneWidget);
});
} |
tvolkert
added a commit
that referenced
this issue
Aug 13, 2021
As of 43f302e, the aforementioned test is checked in, and fails at Tot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cace425 introduced the a bug in
TextInput
that manifests as the following exception:The text was updated successfully, but these errors were encountered: