admin 管理员组文章数量: 887021
2024年2月26日发(作者:html设置输入框样式)
0xAA8EC0E4,0xAACADBE9,0xAA6AAFE6,0xAAA5DFF9,0xAAFEEE7D,0xAAFAB1CE,0xAAFFDA8E];static BorderSide _borderThin =new BorderSide(width: 0.5, color: Color(0xFFE0E3DA));static BorderSide _borderBold =new BorderSide(width: 1.0, color: Color(0xFFE0E3DA));Border generateBorder(int x, int y) {BorderSide leftBorder = _borderThin;BorderSide topBorder = _borderThin;BorderSide rightBorder = _borderThin;BorderSide bottomBorder = _borderThin;if (x == 0) {topBorder = _borderBold;} else if (x == / 30 - 1) {bottomBorder = _borderBold;}if (y == 0) {leftBorder = _borderBold;} else if (y == 29) {rightBorder = _borderBold;}return new Border(left: leftBorder,top: topBorder,right: rightBorder,bottom: bottomBorder,);}
@override_GridState createState() => _GridState();}class _GridState extends State {@overrideWidget build(BuildContext context) {final width = ((context). - 2) / 30;var rng = new Random();List rowDetail(rowIndex) {List result = new List();int pastMonth = fe();int month = rowIndex * 30;for (int i = 0; i < 30; i++) {int currentMonth = month + i;(Container(width: width,height: width,decoration: BoxDecoration(border: teBorder(rowIndex, i),color: currentMonth < pastMonth Color(0xFF5E5E5F): currentMonth == pastMonth : currentMonth < pastMonth + 10 : Color([t(18) > 8 ? 0 : t(9)])),));}return result;}List rowList() {List result = new List();for (int i = 0; i < / 30; i++) {
HomePage({Key key}) : super(key: key);@override_HomePageState createState() => _HomePageState();}class _HomePageState extends State {void showDefaultYearPicker(BuildContext context, Life life) async {final DateTime dateTime = await showDatePicker(context: context,initialDate: ay,firstDate: DateTime(1950, 1),lastDate: (),builder: (BuildContext context, Widget child) {return Theme(data: (),child: child,);},);if (dateTime != null && dateTime != ay) {ay = dateTime;}}@overrideWidget build(BuildContext context) {return Scaffold(appBar: AppBar(title: Text(().toString().substring(0, 10),style: TextStyle(fontSize: 32,fontWeight: ,fontFamily: "Barriecito"),),centerTitle: true,
elevation: 0,actions: [IconButton(icon: Icon(gs),onPressed: () {showDefaultYearPicker(context, (context));})],),body: Padding(padding: const (1.0),child: ScopedModelDescendant(builder: (BuildContext context, Widget child, Life model) {return Column(children: [Grid(life: model),Padding(padding: const (top: 40, bottom: 20),child: Row(mainAxisAlignment: ,children: [Padding(padding: (right: 40),child: Container(height: 48,child: ("asset/iron_")),),Text(ingLife().toString() +" / " +ng(),style: TextStyle(fontSize: 48, fontFamily: "Barriecito")),],
),),Text("Stay Hungry t Stay Foolish",style: TextStyle(fontFamily: "Barriecito",fontWeight: ,fontSize: 24),),],);},),),);}}
版权声明:本文标题:flutter生成源代码_【开源】FlutterDemo构建一个简单的APP-活着 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1708926753h534567.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论