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

It lost data #186

Closed
k3sc opened this issue Nov 19, 2019 · 10 comments · Fixed by #122
Closed

It lost data #186

k3sc opened this issue Nov 19, 2019 · 10 comments · Fixed by #122
Assignees
Labels
bugfix Fixes a bug in the package medium-priority
Milestone

Comments

@k3sc
Copy link

k3sc commented Nov 19, 2019

<p>csaaaa</p><p>dasfdsa</p><p><font size=\"4\" face=\"黑体\">dsafdsa</font></p><p><font size=\"4\" face=\"黑体\">fdsa</font></p>

@coder-xb
Copy link

I have the same problem as you, because flutter_html doesn't support the font tag, but I haven't found a solution yet.

@k3sc
Copy link
Author

k3sc commented Nov 19, 2019

@missXb I've found an alternative, though not a perfect one.
set
useRichText: false,
after that
defaultTextStyle: TextStyle(fontFamily: 'serif'),

      customRender: (node, children) {

        print("customRender");

        if (node is dom.Element) {

          switch (node.localName) {

            case "font":

              return Column(

                children: children,

              );

          }

        }

      },

@coder-xb
Copy link

@k3sc I tried it, but the final effect is still a problem. The things that the font tag turns out will automatically wrap.
WX20191119-145949@2x

@coder-xb
Copy link

The html corresponding to the above picture:<p>Milink通过<font face="宋体">提供智能合约、分布式大数据存储、开放接口等机制或服务,降低社区开发者进行开发和使用的成本,实现区块链社交智能生态</font><font face="宋体">。</font></p>

@Sub6Resources
Copy link
Owner

I plan on fully supporting the font tag very soon. There is an open PR adding support for font.

@Sub6Resources Sub6Resources self-assigned this Dec 12, 2019
@Sub6Resources Sub6Resources added this to the 1.0.0 milestone Dec 12, 2019
@Sub6Resources Sub6Resources added bugfix Fixes a bug in the package medium-priority labels Dec 12, 2019
@Sub6Resources
Copy link
Owner

This has been fixed in 1.0.0. See #122 for updates.

@Sub6Resources Sub6Resources mentioned this issue Dec 13, 2019
20 tasks
@k3sc
Copy link
Author

k3sc commented Dec 13, 2019

Thank you very much. love you bro

@k3sc k3sc closed this as completed Dec 13, 2019
@k3sc k3sc reopened this Dec 13, 2019
@shinewanna
Copy link

dom.Element this is error on me,need some import?

@Niaaaansi
Copy link

Niaaaansi commented Mar 31, 2020

emm,in^0.11.1, tags will still be ignored,is my method right?

@Sub6Resources
Copy link
Owner

@Niaaaansi Use version 1.0.0-pre.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a bug in the package medium-priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants