摘要: 1 Traceback (most recent call last): 2 File "/tmp/C5FDB25B-C7F4-462E-8AC9-7FF9D1A50F21/fruitstrap_d3ca95e47b6608c20ff2410e8938899af5a79f42.py", line 2 阅读全文
posted @ 2020-12-09 18:33 mingV2020 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 第一步 引入依赖 dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter 第二步 在main.dart中添加代码 MaterialApp( //省略若干代码........ //国际化 localizations 阅读全文
posted @ 2020-12-02 13:17 mingV2020 阅读(2195) 评论(0) 推荐(0) 编辑
摘要: 第一种写法 1 ConstrainedBox( 2 constraints: BoxConstraints( 3 maxHeight: 100 4 ), 5 child: Stack( 6 overflow: Overflow.clip, 7 children: <Widget>[ 8 Contai 阅读全文
posted @ 2020-11-30 11:26 mingV2020 阅读(5307) 评论(0) 推荐(0) 编辑
摘要: 关键代码 keyboardType: TextInputType.number, inputFormatters: [ FilteringTextInputFormatter(RegExp("[0-9.]"), allow: true), MyNumberTextInputFormatter(dig 阅读全文
posted @ 2020-11-25 14:34 mingV2020 阅读(4494) 评论(0) 推荐(0) 编辑
摘要: //1秒后这个i行 Future.delayed(Duration(milliseconds: 1000), () { //代码省略 }); 阅读全文
posted @ 2020-11-24 18:04 mingV2020 阅读(2982) 评论(0) 推荐(0) 编辑
摘要: 自定义对象 1 class Dk { 2 int id; 3 String title; 4 String address; 5 String ww; 6 String account; 7 } 传值 1 Navigator.push( 2 context, 3 MaterialPageRoute( 阅读全文
posted @ 2020-11-24 17:05 mingV2020 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 解决方案: 路由采用了第三方:fluro 1 Application.router.navigateTo(context, "/searchresult?word=${Uri.encodeComponent(“中文”)}"); 1 Uri.encodeComponent(“中文”) 备注:传一些特殊 阅读全文
posted @ 2020-11-23 17:09 mingV2020 阅读(556) 评论(0) 推荐(0) 编辑