I'm trying to test the width and height of a container. I'm trying to do something like this:
expect(
find.byWidgetPredicate((Widget widget) =>
widget is Container && widget.width == 48),
findsOneWidget);
but. unfortunately, if I type widget.width, it will say that the getter width isn't defined for the class Container.
Aucun commentaire:
Enregistrer un commentaire