rich_text_widget 0.1.5 copy "rich_text_widget: ^0.1.5" to clipboard
rich_text_widget: ^0.1.5 copied to clipboard

outdated

A new Flutter package project.

rich_text_widget #

A new Flutter package project.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

使用说明

RichTextWidget(
  //default Text
  Text(
    "You already have an account. Log in",
    style: TextStyle(
      fontSize: 12,
      color: Color(0xff535353),
    ),
  ),
  // richText List
  richTexts: [
    BaseRichText(
      "Log in",
      style: TextStyle(color: Color(0xffCA353A)),
      onTap: () { // richText 点击事件
        Navigator.pop(context);
      },
    )
  ],
)

avatar

参数说明

RichTextWidget:

Name type
defaultText Text
richTexts List (BaseRichText)

BaseRichText:

Name type
data String
style TextStyle
onTap Function
4
likes
0
pub points
84%
popularity

Publisher

unverified uploader

A new Flutter package project.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on rich_text_widget