
new Materialbutton( height: 140.0,minWIDth: double.infinity,color: theme.of(context).primarycolor,textcolor: colors.white,child: new Text("material button"),onpressed: () => {},splashcolor: colors.redAccent,),解决方法 Flutter中的小部件体系结构使这非常简单:Materialbutton的子节点是一个Text小部件,可以使用其style属性设置样式: new Materialbutton( height: 140.0,child: new Text( "material button",style: new TextStyle( FontSize: 20.0,color: colors.yellow,);总结
以上是内存溢出为你收集整理的如何更改颤振材料按钮的字体大小?全部内容,希望文章能够帮你解决如何更改颤振材料按钮的字体大小?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)