小编nin*_*rta的帖子

模块“buffer”没有导出成员“Blob”

以前有人遇到过这种情况吗?我在嵌套构建后使用 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";

我不知道为什么?如果您有此问题的解决方案,请分享。

buffer nestjs cicd

31
推荐指数
2
解决办法
2万
查看次数

如何删除颤动中的 persistedFooterButtons 的顶部边框

我正在使用 permanentFooterButtons,我想删除它的顶部边框。有人知道怎么做吗?

我的代码:

 persistentFooterButtons: [
        Center(
          child: TextButton(
            style: ButtonStyle(
              
            ),
              onPressed: () {
                print("press the filter btn");
              },
              child: Text("Filter")),
        )
      ],

Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

flutter flutter-layout

10
推荐指数
2
解决办法
3886
查看次数

使用 Kotlin 将原生广告添加到 Flutter 项目

我正在努力在我的 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)

android ads admob kotlin flutter

5
推荐指数
1
解决办法
1165
查看次数

标签 统计

flutter ×2

admob ×1

ads ×1

android ×1

buffer ×1

cicd ×1

flutter-layout ×1

kotlin ×1

nestjs ×1