在此处输入图像描述您好,我正在制作一个需要最大化和最小化屏幕的应用程序。但我想减少“A+”(即最大化屏幕)和“A-”(即最小化)之间的空间。我正在附加一个图片以便更好地理解。谢谢。
这是代码:
return Scaffold(
appBar: AppBar(
title: Text(''),
backgroundColor: Color(0xFF125688),
actions: <Widget>[
FlatButton(
padding: EdgeInsets.all(0),
onPressed: null,
child: Text('A+',style: TextStyle(
fontSize: 22.0,fontWeight: FontWeight.bold,color: Colors.white
),)),
FlatButton(
padding: EdgeInsets.all(0),
onPressed: null,
child: Text('A-',style: TextStyle(
fontSize: 15.0,fontWeight: FontWeight.bold,color: Colors.white
),),
)
],
),
