Skip to content

how to use customtextstyle to change the font size and line height? #116

@ADLsourceCode

Description

@ADLsourceCode

Hello,
How do I use customTextstyle to change the line height and font size of the text?
Below is my code:-

 Widget shortDesc(String data)
  {
   return Html(
      data: data,
      //Optional parameters:
      padding: EdgeInsets.all(2.0),
      backgroundColor: Colors.white70,
      defaultTextStyle: TextStyle(fontFamily: 'serif'),
      linkStyle: const TextStyle(
        color: Colors.redAccent,
      ),
      onLinkTap: (url) {
        // open url in a webview
      },
      onImageTap: (src) {
        // Display the image in large form.
      },
    );
  }

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions