-
Notifications
You must be signed in to change notification settings - Fork 27.6k
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
[widget_test] pumpWidget on Chip with EdgeInsets.symmetric causes _RenderChip violation of intrinsic protocol contract exception #49478
Comments
Hi @kurakurakuda |
Hi, @iapicca Thank you for your response. flutter doctor -v
flutter test --verbose
Thank you. |
and below is sample chip widget failed.
|
Related to #32116 |
Any update on this? |
@Onwa1kenobi |
I'm getting this error as well. |
Reproducible on the latest master flutter doctor -v
Minimal reproducible code sample
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Sample',
home: Scaffold(
appBar: AppBar(
title: Text('Sample'),
),
body: Chip(
label: Text(
'10',
),
//padding: const EdgeInsets.all(4.0), //This doesn't cause a failure
padding: const EdgeInsets.symmetric(horizontal: 4.0), //This line causes the test failure
),
),
);
}
}
import 'package:bug/main.dart';
import 'package:flutter_test/flutter_test.dart';
void main () {
testWidgets("Chip tester pump test", (WidgetTester tester) async {
await tester.pumpWidget(MyApp());
});
} Exception and stack
|
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Hi, all.
I am creating widget test refer to https://flutter.dev/docs/testing .
When I test the page including chip widget, I encoutered this error.
When running the app, there is no error.
Could you help this ?
Error is below.
logs
The text was updated successfully, but these errors were encountered: