Skip to content
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

The getter 'selectable' was called on null. #6

Closed
liudonghua123 opened this issue Apr 20, 2020 · 5 comments
Closed

The getter 'selectable' was called on null. #6

liudonghua123 opened this issue Apr 20, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@liudonghua123
Copy link
Contributor

I use some code like this

  @override
  Widget build(BuildContext context) {
    String data =
        '[Welcome for pull request](https://github.com/asjqkkkk/markdown_widget)😄\n\n';
    return Column(
      children: [
        ...MarkdownGenerator(
          data: data,
          // styleConfig: StyleConfig(
          //   ulConfig: UlConfig(
          //     dotWidget: (int deep, int index) => Icon(Icons.android),
          //   ),
          // ),
        ).widgets,
        constructTag('标签', ['吉他', '弹指', '唱奏', '大师'])
      ],
    );
  }

Then I got the following error

image

@asjqkkkk
Copy link
Owner

Thank you, it's a broken update by v1.0.9😅
I'll fix it quickly

asjqkkkk added a commit that referenced this issue Apr 20, 2020
@asjqkkkk asjqkkkk added the bug Something isn't working label Apr 20, 2020
@asjqkkkk
Copy link
Owner

看到中文了,我直接用中文回复吧😄
这个issue在v1.1.0被修复了,可以直接通过升级来解决这个问题
如果不想升级的话,在 StyleConfig 配置一下 PConfig 就行,这是由v1,0.9带来的破坏性修复😅

@liudonghua123
Copy link
Contributor Author

嗯,我刚才也试着直接修改源码的方式,设置默认值可以解决,既然有新版本,那我就直接升级了。

在使用过程中发现字体的颜色这块是固定的,建议可以使用主题集成下来的颜色(大小不确定主题里面有没有定义)

谢谢 :)

@liudonghua123
Copy link
Contributor Author

我刚发现你才上传的新版本 https://pub.dev/packages/markdown_widget/versions ,我大概十分钟之前安装的还是 1.0.9 旧版本 😃

@asjqkkkk
Copy link
Owner

对,我刚刚升级就是修复这个issue

根据主题来设置颜色可以是一个很好的feature,不过这个需求不是必须的,而且可能修改的地方会比较多,我一个人精力不够

如果可以的话,可以通过提pr的方式来完成这个功能😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants