小编Dae*_*Pyo的帖子

颤振/致命错误:找不到“颤振/颤振.h”文件

您好,我在运行我的应用程序时遇到此错误。

Failed to build iOS app
Error output from Xcode build:
?
    ** BUILD FAILED **
Xcode's output:
?
    In file included from /Users/daegilpyo/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/ios/Classes/FLTURLLauncherPlugin.m:7:
    /Users/daegilpyo/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/ios/Classes/FLTURLLauncherPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>
            ^~~~~~~~~~~~~~~~~~~
    1 error generated.
5
    Command CompileSwift failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
Could not build the precompiled application for the device.

Error launching application on DAEGIL? iPhone.
Exited (sigterm) …
Run Code Online (Sandbox Code Playgroud)

flutter

11
推荐指数
1
解决办法
7172
查看次数

Flutter/Firebase 如何增加应用程序图标的徽章数量

我是在加拿大学习计算机编程的学生。现在,我正在使用 flutter/firebase 将该应用程序作为我的副项目。

我的应用程序包含聊天功能。我面临的问题是如何增加徽章编号并在未阅读消息时保留它。

我附上了 firebase 中消息数据结构的图片。

下面的代码是 firebase 函数代码。现在我正在使用此代码推送通知。我成功收到通知,但问题是如何计算应用程序图标的徽章数量。正如您在通知徽章中看到的,编号为“1”。每当我推送通知时,该数字就会覆盖之前的数字。我认为这是错误的方式,这是我所期望的,如果值 isMessageRead 在 firebase 数据库增量徽章编号中。我只是想知道逻辑方式,或者我可以研究的任何其他来源可以解释如何计算图标徽章编号。

目前我不知道如何管理徽章号码。

谢谢阅读,

我正在等待你的回复。

const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();


exports.onCreateMessage = functions.firestore.document('/Chat/{currentUserID}/UserList/{anotherUserID}/Messages/{message}')
    .onCreate(async (snap, context) => {
        const currentUserID = context.params.currentUserID;
        const anotherUserID = context.params.anotherUserID;
        console.log(currentUserID);
        console.log(anotherUserID);
        if (currentUserID == snap.data().recieverID) {
            return admin.messaging().sendToTopic(`${currentUserID}`, {
                notification: {
                    title: snap.data().senderID,
                    body: snap.data().message,
                    clickAction: 'FLUTTER_NOTIFICATION_CLICK',
                    sound: 'default',
                    badge: '1'
                }
            });
        }

    });
Run Code Online (Sandbox Code Playgroud)

应用程序的 MyData 结构。enter code here

我的应用程序图标

firebase flutter firebase-cloud-messaging

7
推荐指数
1
解决办法
9904
查看次数

Flutter IOS ) xcodebuild: 警告:使用多个匹配目标中的第一个:

您好,我正在使用 Flutter 开发移动应用程序。

\n

我认为更新 X Code 13.0 后我收到以下错误..

\n

我被困在这个问题上几周了,我可以在 Android 和 Web 上运行该应用程序...但每当我尝试在 IOS 上运行时..我总是收到此错误。

\n

我实际上无法理解这个错误到底意味着什么。

\n

我在等你的帮助。

\n

谢谢阅读。

\n
Running "flutter pub get" in tetbee...\nLaunching lib/main.dart on DAEGIL\xec\x9d\x98 iPhone in debug mode...\nlib/main.dart:1\nAutomatically signing iOS for device deployment using specified development team in Xcode project: T6ULPGT4J7\nXcode build done.                                            7.6s\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n    2021-10-15 16:51:30.486 xcodebuild[53522:2541044]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-19114/DTDeviceKitBase/DTDKRemoteDeviceData.m:373\n    Details:  (null) deviceType from 00008020-0011243A2279002E was NULL when -platform called.\n    Object:   <DTDKMobileDeviceToken: …
Run Code Online (Sandbox Code Playgroud)

ios flutter

7
推荐指数
1
解决办法
2980
查看次数

Flutter/如何获取 Google 字体系列列表

您好,我正在使用 Flutter 开发应用程序。

为了管理我的应用程序中的字体,我正在使用

https://pub.dev/packages/google_fonts

包裹。

所以我计划用户可以选择他们想要的字体。

有什么方法可以获得谷歌字体系列的完整列表吗?

List<String> _tempFontList = [
  GoogleFonts.droidSerif().fontFamily,
  GoogleFonts.ebGaramond().fontFamily,
  GoogleFonts.fasterOne().fontFamily,
  GoogleFonts.abel().fontFamily,
];
Run Code Online (Sandbox Code Playgroud)

现在我只为字体制作了临时列表,

但正如我所见,该包中没有 list getList 函数。

谢谢阅读。

我会等待你的帮助。

google-font-api flutter google-fonts

3
推荐指数
1
解决办法
2498
查看次数