Flutter 中的组件绘制完成监听、组件生命周期和APP生命周期
Flutter 的 生命周期 说到 Flutter 的生命周期,其实就是说 StatefulWidget 的生命周期,因为 StatelessWidget 是静态控件。 StatefulWidget,通过借助于 State 对象,处理状态变化,并体现在 UI 上。这些...
Flutter编程方式退出重启应用(IOS | Android)
如何用 Flutter Android 和 iOS退出应用 在 android 设备上退出应用 SystemNavigator.pop(); 在 IOS 设备上退出应用 exit(0); 注意:在 IOS 设备上使用此功能可能会违反 Appstore 政策。因此,请...
he filename 未命名.ipa in the package contains an invalid character(s)解决
问题 The filename 未命名.ipa in the package contains an invalid character(s). The valid characters are: A-Z, a-z, 0-9, dash, period, underscore, but the name cannot start with a dash, period, o...
解决Unhandled Exception: DatabaseException(error database_closed)
问题场景描述 使用Flutter的Sqlite执行多条SQL(execute multiple SQL)>10,这中间会进行原库与SQL比对,符合条件会进行关闭db.close,再new一个实例重新db初始化等,操作中报错如下: Unhandled Exception...
Command CompileSwift failed with a nonzero exit code解决
- 2021-12-15
- IOS
Xcode莫明其妙的报这错,上一秒还好好的突然就来这错误 Command CompileSwift failed with a nonzero exit code ...
解决Could not find ‘CFPropertyList’ (>= 2.3.3, < 4.0) among 92 total gem(s) (Gem::MissingSpecError)
在pod install时报错 Could not find 'CFPropertyList' (>= 2.3.3, < 4.0) among 92 total gem(s) (Gem::MissingSpe...
解决could not find included file ‘Pods/Target Support Files/Pods-Runner/Pods-Runner
当运行IOS run的时候发生了编译的报错: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runne 解决办法如下 根目录...
CocoaPods not installed解决
先尝试 sudo gem uninstall cocoapods && sudo gem install cocoapods 1 su...
Warning: Podfile is out of date
真机或模拟器时报: Podfile is out of date This can cause issues if your application depends on plugins that do not support iOS or macOS. 要完全清理(删除所有指向链接的点)并创建升级到新的(...