HistoryOfEverything
HistoryOfEverything copied to clipboard
Error: The getter 'children' isn't defined for the class 'InlineSpan'. when running Flutter run
I got this error when running flutter run --verbose
What did I miss here? I ran on Macbook.
./../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/builder.dart:326:49: Error: The getter 'children' isn't defined for the class
'InlineSpan'.
[ ] - 'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('../../flutter/packages/flutter/lib/src/painting/inline_span.dart').
[ ] Try correcting the name to the name of an existing getter, or defining a getter or field named 'children'.
[ ] List<TextSpan> children = previous.text.children != null
[ ] ^^^^^^^^
I had the same problem. I fixed it by replacing old flutter_markdown: ^0.2.0
by new flutter_markdown: ^0.6.1
in the pubspec.yaml
file.
Then in ./lib/article/article_widget.dart
file replace old blockquotePadding: 20.0
by new blockquotePadding: EdgeInsets.all (20.0)
(line 92)
I build success on Macbook M1.