以前有人遇到过这种情况吗?我在嵌套构建后使用 CI/CD 运行我的代码,它给了我错误:
node_modules/@types/superagent/index.d.ts:23:10 - error TS2305: Module '"buffer"' has no exported member 'Blob'. 23 import { Blob } from "buffer";
我不知道为什么?如果您有此问题的解决方案,请分享。
我正在使用 permanentFooterButtons,我想删除它的顶部边框。有人知道怎么做吗?
我的代码:
persistentFooterButtons: [
Center(
child: TextButton(
style: ButtonStyle(
),
onPressed: () {
print("press the filter btn");
},
child: Text("Filter")),
)
],
Run Code Online (Sandbox Code Playgroud)
我正在努力在我的 flutter 项目中添加原生广告。我的项目使用 Kotlin for android,因此我遵循 google_mobile_ads 的文档,但在我使用 android studio 转换为 kotlin 的建议后,它不断向我显示这些错误。
e: reading_app\MainActivity.kt: (15, 113): No value passed for parameter 'layoutInflater'
e: reading_app\ReadingNativeAdFactory.kt: (15, 10): Class 'NativeAdFactoryExample' is not abstract and does not implement abstract member public abstract fun createNativeAd(p0: NativeAd!, p1: (Mutable)Map<String!, Any!>!): NativeAdView! defined in io.flutter.plugins.googlemobileads.GoogleMobileAdsPlugin.NativeAdFactory
e: reading_app\ReadingNativeAdFactory.kt: (20, 68): Unresolved reference: my_native_ad
e: reading_app\ReadingNativeAdFactory.kt: (21, 63): Unresolved reference: ad_headline
e: reading_app\ReadingNativeAdFactory.kt: (22, 59): Unresolved reference: ad_body
Run Code Online (Sandbox Code Playgroud)
我的 MainActivity.kt 中的代码
package com.reading_app
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine; …
Run Code Online (Sandbox Code Playgroud)