-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On using MarkdownStyleSheet: The method 'merge' was called on null #105
Comments
Hello, I am using this same plugin and i'm also getting this same error in dependancy example. Below is my IDE error log.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, thanks in advance. I am using flutter_html_view plugin to read display blogs. I am getting html data from wordpress api. I am getting 12-13 blogs from the API. All of them are working, except one.
When I open that blog, it says "The method 'merge' was called on null ".
However, if I remove the stylesheet, I no longer get any error. Below is my code. Please check and help:
`class BlogDetails extends StatefulWidget {
Map data={};
BlogDetails({this.data});
@OverRide
_BlogDetailsState createState() => _BlogDetailsState();
}
class _BlogDetailsState extends State {
@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.data['title']['rendered']),
),
body:
Padding(
padding: const EdgeInsets.all(8.0),
child: HtmlView(
data: widget.data['content']['rendered'],
styleSheet: MarkdownStyleSheet(
p: TextStyle(fontSize: 18, color: Colors.black, fontWeight: FontWeight.w300),
h1: TextStyle(fontSize: 25, color: Colors.black, letterSpacing: 3),
a: TextStyle(color: Colors.blue),
strong: TextStyle(fontWeight: FontWeight.w400),
blockSpacing: 15,
listIndent: 5,
),
onLaunchFail: ()=>print('Waheguru'),
),
)
);
}
}`
The text was updated successfully, but these errors were encountered: