flutter入门
安装
跟java一样bin仍path里
flutter doctor
flutter doctor --android-licenses
问题
doctor加不上证书
重启电脑
快捷键
- r 热加载
- R 热重启
- p 网格
- o ios预览
- q 退出
寄了白寄的一堆类
所以就不寄了
芜湖,直接开摆
Components – Material Design 3
组件库,搞里头,掉就完了他妈的
组件
弹窗
1 2 3 4 5
| () => showCupertinoDialog( context: context, builder: _newShowEditDialog, )
|
输入框
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| Widget _showDialog() { final TextEditingController controller = TextEditingController();
String? errorText;
return SConfirmDialog(confirm: () {}, children: [ StatefulBuilder( builder: (builder, setState) => TextField( controller: controller, keyboardType: TextInputType.number, textInputAction: TextInputAction.done, onChanged: (text) { setState(() { }); }, decoration: InputDecoration( hintText: "背景文字", labelText: "标题", errorText: errorText, ), ), ), ]); }
|