Skip to content

Instantly share code, notes, and snippets.

@bartekpacia
Last active October 26, 2022 09:28
Show Gist options
  • Save bartekpacia/09804f3fdd44eaae4189e71cdccb5f58 to your computer and use it in GitHub Desktop.
Save bartekpacia/09804f3fdd44eaae4189e71cdccb5f58 to your computer and use it in GitHub Desktop.
Bug repro.
patrolTest(
'never settles when an invisible child of IndexedStack is requesting frames',
($) async {
await expectLater(
() async => $.pumpWidgetAndSettle(
MaterialApp(
home: Scaffold(
body: IndexedStack(
children: const [
Center(child: Text('first child')),
Center(child: CircularProgressIndicator())
],
),
),
),
),
throwsA(
isA<AssertionError>().having(
(err) => err.message,
'message',
'pumpAndSettle timed out',
),
),
);
},
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment