Solution
var text = 'simply dummy text for printing ';
Text(text.length > 12 ? text.substring(0, 12) : text,),
child: Text(
widget.data.length > 12?widget.data.substring(0, 12)+ "..":widget.data,
style: TextStyle(
fontSize: displayWidth(context) * 0.070,
color: Colors.black,
fontWeight: FontWeight.bold),
),
Oldest comments (0)