[flutter/ios] exportArchive Unable to process request – PLA Update available

意思是 《Apple Developer Program 许可协议》(即 PLA)有更新,需要账户拥有者查阅并 […]

[flutter/ios] exportArchive The operation couldn’t be completed. Unable to log in with account xxx

意思是 Xcode 中的登入信息已经过期,需要进入 Xcode - Settings - Accounts 重 […]

[flutter] 防止 stack 布局的组件被软键盘顶起导致的 overflow 错误

解决方法: 参考代码:

[flutter/ios] 提交至 TestFlight 提示“缺少出口合规证明”

解决办法: 在 Info.plist 中添加

[flutter/ios] type ‘StackParentData’ is not a subtype of type ‘FlexParentData’ in type cast

原因是:在 Stack 组件中使用了类似 Expanded、Flexible 组件

[flutter] Using `dart run flutter_launcher_icons` destroys ios-project

提示错误: The project ‘Runner’ is damaged and cannot be ope […]

[flutter] ios unable to load contents of file list /.xcfilelist not found

运行 flutter build ios 即可生成

Flutter Dialog Context 注意事项

在这个例子中,显示调用 AlertDialog,假设按了确定,则弹出一个 LoadingDialog 访问 api。在这个过程中,LoadingDialog 还可以正常展示,但是无法隐藏,此时 context 为空。因为 Navigator.pop(context, 'OK') 已经把 AlertDialog 出栈,其对应的 context 也会 unmounted。

Flutter 字体大小不跟随系统变化

可在 MaterialApp builder 中通过 MediaQuery 设置 textScaleFacto […]

判断颜色深浅的方法

YUV,是一种颜色编码方法。其中 Y 表示的是明亮度,以下是 Y 的计算公式: Y 的结果越小表示越暗,越大表 […]

Flutter double 精度不准的问题

在使用 CircularProgressIndicator() 的时候,value 值需要是 double 类型。在一次自增测试中(增量为 0.1) ,发现结果精度出现问题。

升级 Flutter 3.+ 出现 UnicodeChar、AsciiChar not found

一个旧的 flutter2.+ 项目,安装了最新的 flutter3.3 ,运行不起来。 查阅资料后,得知 1 […]

Flutter 自定义SnackBar(lx_tips)

项目描述 使用自带的 animation api,基于 Overlay 实现的自定义 SnackBar。 效果 […]

Flutter 粗心导致“Invalid constant value”错误

当我们添加一个新组件的时候,Android Studio 会很贴心地提示我们添加 const 修饰符,由于习惯 […]