rich_text_widget 0.1.3 rich_text_widget: ^0.1.3 copied to clipboard
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 |