……

2022年8月13日

摘要: 打开App如有登录进入内页,没有则进入登录页面。 main.dart配置 routes: { // 注册路由表 "/": (context) => const Welcome(), "home": (context){ bool firstSetNet = true; ModalRoute? mod 阅读全文

posted @ 2022-08-13 17:31 WALL*E 阅读(120) 评论(0) 推荐(0) 编辑

摘要: 初始化 @override void initState(){ super.initState(); //可写方法…… } setState(() {}); 相当于vue的双向绑定方法,将要动态改变的数据放在{里} 页面跳转并销毁数据 Navigator.pushAndRemoveUntil(con 阅读全文

posted @ 2022-08-13 17:09 WALL*E 阅读(625) 评论(0) 推荐(0) 编辑

摘要: 带有输入框的弹窗 //弹窗 Future<void> _chooseNetWork(context) async { late String _password; showCupertinoDialog( context: context, builder: (context) { return C 阅读全文

posted @ 2022-08-13 17:03 WALL*E 阅读(411) 评论(0) 推荐(0) 编辑

摘要: //直接写判断 ?: child: !clothList.isNotEmpty ? ListView( children: [ const SizedBox(height: 30), // 距离顶部一个工具栏的高度 widget.type==2? childText():const SizedBox 阅读全文

posted @ 2022-08-13 16:58 WALL*E 阅读(202) 评论(0) 推荐(0) 编辑

摘要: 一、在main入口配置 void main() async{ // SystemChrome.setEnabledSystemUIOverlays([]);//隐藏状态栏,底部按钮栏 // SystemChrome.setEnabledSystemUIOverlays([SystemUiOverla 阅读全文

posted @ 2022-08-13 16:22 WALL*E 阅读(864) 评论(0) 推荐(0) 编辑