SeeMoreWidget constructor
const
SeeMoreWidget(
- String text, {
- Key? key,
- TextStyle textStyle = const TextStyle(fontSize: 16, color: Colors.black, fontWeight: FontWeight.w400),
- Duration animationDuration = const Duration(milliseconds: 200),
- String seeMoreText = "See More",
- TextStyle seeMoreStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: Colors.black),
- String seeLessText = "See Less",
- TextStyle seeLessStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: Colors.black),
- int trimLength = 240,
Implementation
const SeeMoreWidget(
this.text, {
super.key,
this.textStyle = const TextStyle(
fontSize: 16,
color: Colors.black,
fontWeight: FontWeight.w400,
),
this.animationDuration = const Duration(milliseconds: 200),
this.seeMoreText = "See More",
this.seeMoreStyle = const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,
color: Colors.black,
),
this.seeLessText = "See Less",
this.seeLessStyle = const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,
color: Colors.black,
),
this.trimLength = 240,
});