rich_text_widget 0.1.2 copy "rich_text_widget: ^0.1.2" to clipboard
rich_text_widget: ^0.1.2 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);
      },
    )
  ],
)

参数说明 RichTextWidget:

参数 说明
defaultText Text
richTexts List

BaseRichText:

参数 说明
data String
style TextStyle
onTap Function
5
likes
0
pub points
83%
popularity

Publisher

unverified uploader

A new Flutter package project.

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on rich_text_widget