Flutter
GIT是否走代理
//设置为走代理 git config --global http.proxy http://127.0.0.1:1080 git config --global https.proxy http://127.0.0.1:1080 //取消走代理 git config...
macOS flutter listtitle 隐藏显示 title
// drawer: Drawer( // child: ListView( // // Important: Remove any padding from the ListView. // padding: EdgeIns...
解决 flutter 升级3.7.0 提示[X] Windows Version
升级完 flutter3.7.0提示如下错误 Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source! Doctor su...
VSCODE Flutter Snippets
来自模块简介,待翻译 Flutter Snippets SnippetWidgetDescriptionfscafScaffold WidgetCreates a Scaffold widgetfexExpanded WidgetCreates a Expand...
Dart学习
声明可以有两种方式,一种是不指定类型,即使用var关键字 var name='test'; 另一种是明确指定类型(Optional types) string name='test'; 在变...
Flutter 学习资料
https://dartpad.cn/ 网页版ide 《Flutter实战·第二版》 Dart 语言开发文档(dart.cn/guides) Dart 中文教程 Dart 语言中文教程https://github...
flutter 黑暗模式/深色模式
在Widget build(BuildContext context) 的theme(),后面加入以下代码就实现了。之后app的颜色模式就能跟随系统改变深色模式或者正常模式。深色模式主要用于夜...
flutter关于 don‘t support null safety的问题
在flutter项目中引入了并使用了package:*第三方包,运行的时候报错 Error: Cannot run with sound null safety, because the following dependencies don...
Flutter 环境配置
1、cmdline-tools component is missing 打开Android Studio设置, Appearance &Behavior-》System Settings -〉Android SDK -> SDK Tools下载 ...
flutter 判断平台
//'dart:io' 下 if (Platform.isIOS) { //ios } else { //andriod } /// 在ui中使用下面的这个判断 if (Theme.of(context).platform ==TargetPlatfor...
1
2