Skip to content
Prev Previous commit
Next Next commit
[flutter_markdown] fix test
  • Loading branch information
dawidope committed Apr 10, 2024
commit 5a9e025aa826243056669f8006d2458b26744fa7
6 changes: 3 additions & 3 deletions packages/flutter_markdown/test/footnote_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ void defineTests() {
);

final Iterable<Widget> widgets = tester.allWidgets;
final RichText richText = widgets
.firstWhere((Widget widget) => widget is RichText) as RichText;
final Text text =
widgets.firstWhere((Widget widget) => widget is Text) as Text;

final TextSpan span = richText.text as TextSpan;
final TextSpan span = text.textSpan! as TextSpan;
final List<InlineSpan>? children = span.children;

expect(children, isNotNull);
Expand Down