infitio / flutter_markdown

Minimalistic, highly customizable - regexp based Markdown widget for Flutter
Other
14 stars 6 forks source link

Use DefaultTextStyle for not given textStyle in constructor #3

Closed SimonIT closed 4 years ago

SimonIT commented 4 years ago

The textStyle parameter in the constructor is not required, but it's accessed: https://github.com/infitio/flutter_markdown/blob/4fb973415cf472f133e6c2e7a354bee1d9c095c3/lib/mdeditor.dart#L87

Without the fix and not providing a text style it throws a NoSuchMethodError by accessing the fontSize

tiholic commented 4 years ago

@SimonIT new version released to pub 0.1.2