1、Android Keydown dispatch
https://stackoverflow.com/questions/58263620/how-to-use-key-press-event-on-textfromfield-in-flutter
问题: 无法从移动扫描仪设备获取Enter键事件
方案:
RawKeyboardListener(
focusNode: _focusNode1,
onKey: (event) {
if (event.runtimeType == RawKeyDownEvent) {
ToastUtils.toast(this._textEditingController1.text);
}
},
child: TextFormField(
controller: _textEditingController1,
onFieldSubmitted: (_textController) {
},
),
)
2、Could not build the application for the simulator.
问题:
Building for iOS Simulator, but the linked and embedded framework 'App.framework'was built for iOS. (in target 'Runner' from project 'Runner')
方案
rm -rf ios/Flutter/App.framework
3、
Automatically assigning platform
iOSwith version
8.0on target
Runner``
方案
Podfile中
platform :ios, '8.0'
3、Suggestion: add 'tools:replace="android:authorities"'
方案
https://github.com/fluttercom...
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.zorvee.smart_keeper_mobile"
xmlns:tools="http://schemas.android.com/tools">
<provider
android:name="vn.hunghd.flutterdownloader.DownloadedFileProvider"
android:authorities="${applicationId}.flutter_downloader.provider"
tools:replace="android:authorities"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"
tools:replace="android:resource"/>
</provider>
`
4、/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby`
也面临这个问题。通过将绒毛和可可豆荚更新到最新版本然后进行修复
flutter clean
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。