简体   繁体   English

如何在 flutter dart 中呈现脚本标签

[英]How do you render script tags in flutter dart

I have a google and apple ad that I want to use on my new website.我有一个要在我的新网站上使用的谷歌和苹果广告。 However, I am using flutter(dart).但是,我正在使用颤振(飞镖)。 In my old site, I used HTML5 and the ads are between tags.在我的旧网站中,我使用了 HTML5 并且广告位于标签之间。 I am adding to the horizontal color bar like the link below.我正在像下面的链接一样添加到水平颜色条。

horizontal color bar with ad带广告的水平彩条

If you are using flutter web (and not dart web), then you would have to use first party or third party plugins -如果您使用的是 flutter web(而不是 dart web),那么您将不得不使用第一方或第三方插件 -

  1. firebase_admob

Here's a codelab for reference- Adding AdMob ads to a Flutter app这是一个供参考的代码实验室 - 将 AdMob 广告添加到 Flutter 应用程序

And a medium article - Showing Ads in Flutter app还有一篇中篇文章—— 在 Flutter 应用中展示广告

  1. ads (A third party package based on firebase_admob ) ads (基于 firebase_admob 的第三方firebase_admob

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 你如何处理 Dart / Flutter Web 应用程序中的 HTTP 请求? - How do you handle HTTP Requests in Dart / Flutter Web Applications? 你如何解决 Flutter/Dart 中的“右括号综合症”? - How do you solve the "closing brackets syndrome" in Flutter/Dart? 您如何使用颤振/飞镖 package 电子表格解码器? - How do you use the flutter/dart package spreadsheet_decoder? 如何将“dart:ui”图像渲染到 Flutter? - How to render 'dart:ui' Image into Flutter? 您如何在 Dart (Bloc/Flutter) 中以有效的方式执行此列表操作? - How do you do this list operations in an efficient way in Dart (Bloc/Flutter)? 如果没有名称/键,如何在 Flutter/Dart 中序列化/解析嵌套的 JSON 数组 - How do you serialize/parse a nested JSON array in Flutter/Dart if it has no name/key 你如何在 Flutter/Dart 中将参数从命令行传递到 main? - How do you pass arguments from command line to main in Flutter/Dart? 如何遍历 Dart 中的对象列表到 flutter 中的详细信息页面? - How do you Iterate over a List of objects in Dart to a details page in flutter? Dart // Flutter - 如何连接图像和音频以渲染静态视频 - Dart // Flutter - How to connect image and audio to render a static video 如何使用 flutter 渲染本地 HTML 文件 dart webview - How to render a local HTML file with flutter dart webview
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM