apptomate_custom_text 0.0.1
apptomate_custom_text: ^0.0.1 copied to clipboard
The CustomText widget is a versatile and reusable text display widget in Flutter. It supports standard text rendering, selectable text, and expandable/collapsible text ('Read More' functionality).
apptomate_custom_text #
The CustomText widget is a versatile and reusable text display widget in Flutter. It supports standard text rendering, selectable text, and expandable/collapsible text ("Read More" functionality).
📝 Description #
The CustomText widget is a versatile and reusable text display widget in Flutter. It supports standard text rendering, selectable text, and expandable/collapsible text ("Read More" functionality). This widget allows rich customization, including text alignment, styling, margin, and interaction behaviors.
🚀 Features #
✔️ Supports regular text, selectable text, and expandable text ("View More")
✔️ Customizable text style, alignment, and colors
✔️ Adjustable maximum lines for text truncation
✔️ Custom callbacks for user interaction
✔️ Supports ReadMoreText package for expandable text
📲 Installation #
Add the dependency to your pubspec.yaml:
dependencies:
apptomate_custom_text: ^0.0.1
Basic Example #
CustomText(txtName: "SampleText1", style: TextStyle(fontWeight: FontWeight.w300,color: Colors.red)),
CustomText(txtName: "SampleText2",
margin: EdgeInsets.symmetric(vertical: 16),
style: TextStyle(fontSize: 22,fontWeight: FontWeight.bold)),
CustomText(txtName: "Selectable Text",maxLines: 1,
isSelectableText: true,
style: TextStyle(color: Colors.black,fontSize: 25),align: TextAlign.end,),
CustomText(txtName: "Before we get into 7 specific examples of the best text messages to customers, what factors should you actually consider when thinking about the best sample text messages?",
style: TextStyle(fontWeight: FontWeight.w400,color: Colors.purple),
maxLines: 4,
margin: EdgeInsets.symmetric(vertical: 16),
align: TextAlign.start,),
CustomText(maxLines:2,
isReadMore: true,
onTap: (){
print("Text Pressed");
},
txtName: "Before we get into 7 specific examples of the best text messages to customers, what factors should you actually consider when thinking about the best sample text messages?", style: TextStyle(color: Colors.black,fontWeight: FontWeight.w300),align: TextAlign.start,),