我想要这个结果:
我无法获取背景文本以查看我想要的样子。
我尝试了overflow.clip和其他溢出。如果尝试这样做,则会收到溢出错误。
我当前的代码会产生以下结果:
Padding(
padding: const EdgeInsets.all(8.0),child: Container(
decoration: BoxDecoration(
color: Color(0xFF86C232),shape: BoxShape.rectangle,borderRadius: BorderRadius.circular(15.0)),height: 130,width: 250,//color: Color(0xFF86c232),child: Column(
mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[
Text('Students',style: TextStyle(fontSize: 28)),Text('256',style: TextStyle(
fontSize: 28,fontWeight: FontWeight.bold)),Text(
'256',style: TextStyle(
fontSize: 154,fontWeight: FontWeight.bold),overflow: TextOverflow.clip,softWrap: false,maxLines: 1,)
],),