我正在使用 flutter TTS 插件制作一个简单的文本转语音应用程序,并在我的物理 iPhone 和 iPad 上运行它进行调试。
\n我尝试用谷歌搜索它,flutter 的 github 存储库说我应该运行 flutteranalyze,我就这么做了,但它说没有发现问题。所以我不知道该怎么办。我认为这是 xcode 的问题。
\n这是我的错误:
\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n ** BUILD FAILED **\n\n\nXcode's output:\n\xe2\x86\xb3\n <module-includes>:1:9: note: in file included from <module-includes>:1:\n #import "Headers/flutter_tts-umbrella.h"\n ^\n /Users/ragz/Desktop/Desktop/Development/Projects/flutter/useless_app/ios/Pods/Target Support\n Files/flutter_tts/flutter_tts-umbrella.h:13:9: note: in file included from\n /Users/ragz/Desktop/Desktop/Development/Projects/flutter/useless_app/ios/Pods/Target Support\n Files/flutter_tts/flutter_tts-umbrella.h:13:\n #import "FlutterTtsPlugin.h"\n ^\n /Users/ragz/.pub-cache/hosted/pub.dartlang.org/flutter_tts-1.0.0/ios/Classes/FlutterTtsPlugin.h:1:9: error:\n 'Flutter/Flutter.h' file not found\n #import <Flutter/Flutter.h>\n ^\n <unknown>:0: error: could not build Objective-C module 'flutter_tts'\n note: Using new build system\n note: …Run Code Online (Sandbox Code Playgroud) 我正在尝试创建一个简单的应用程序,将帖子添加到 firebase 实时数据库并在 flutter 中的列表视图上显示它们,但是当我将其“发布”到数据库时,在 firebase 控制台上,数据值不断显示为空。有谁知道出了什么问题?
这是我的一些代码 -
飞镖后
class Post {
Image coverImg;
File audioFile;
String body;
String author;
Set usersLiked = {};
DatabaseReference _id;
Post(this.body, this.author);
void likePost(User user) {
if (this.usersLiked.contains(user.uid)) {
this.usersLiked.remove(user.uid);
} else {
this.usersLiked.add(user.uid);
}
}
void update() {
updatePost(this, this._id);
}
void setId(DatabaseReference id) {
this._id = id;
}
Map<String, dynamic> toJson() {
return {
'body': this.body,
'author': this.author,
'usersLiked': this.usersLiked.toList()
};
}
}
Post createPost(record) {
Map<String, dynamic> attributes = { …Run Code Online (Sandbox Code Playgroud)