Flutter
[flutter/ios] type ‘StackParentData’ is not a subtype of type ‘FlexParentData’ in type cast
原因是:在 Stack 组件中使用了类似 Expanded、Flexible 组件
Flutter
原因是:在 Stack 组件中使用了类似 Expanded、Flexible 组件
Flutter
提示错误: The project ‘Runner’ is damaged and cannot be ope…
Flutter
运行 flutter build ios 即可生成
Flutter
在这个例子中,显示调用 AlertDialog,假设按了确定,则弹出一个 LoadingDialog 访问 api。在这个过程中,LoadingDialog 还可以正常展示,但是无法隐藏,此时 context 为空。因为 Navigator.pop(context, 'OK') 已经把 AlertDialog 出栈,其对应的 context 也会 unmounted。
Flutter
可在 MaterialApp builder 中通过 MediaQuery 设置 textScaleFacto…
Flutter
YUV,是一种颜色编码方法。其中 Y 表示的是明亮度,以下是 Y 的计算公式: Y 的结果越小表示越暗,越大表…
Flutter
在使用 CircularProgressIndicator() 的时候,value 值需要是 double 类型。在一次自增测试中(增量为 0.1) ,发现结果精度出现问题。
Flutter
一个旧的 flutter2.+ 项目,安装了最新的 flutter3.3 ,运行不起来。 查阅资料后,得知 1…
Flutter
项目描述 使用自带的 animation api,基于 Overlay 实现的自定义 SnackBar。 效果…
Flutter
当我们添加一个新组件的时候,Android Studio 会很贴心地提示我们添加 const 修饰符,由于习惯…