text:
Widget tests fails with 'Unable to load asset' in 1.5.4-hotfix.2

I have a flutter plugin project in which I have screens in which I load some assets, like this:
Image.asset('res/icon/ic_arrow_back.png',
                width: 54,
                height: 54,
                fit: BoxFit.none,
                package: 'common_library')

When I run the application normally everything works fine, but when I try to execute some widget tests it outputs the following error:

The following assertion was thrown resolving an image codec:
Unable to load asset: packages/common_library/res/icon/ic_arrow_back.png

This tests were working ok in version 1.2.1 but now they seem to fail.
My pubspec.yaml:
flutter:
  uses-material-design: true
  plugin:
    androidPackage: com.whisbi.commonlibrary
    pluginClass: CommonLibraryPlugin
  assets:
    - res/image/
    - res/icon/

My doctor:

[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Linux, locale en_US.UTF-8)
• Flutter version 1.5.4-hotfix.2 at /home/dserrano/opt/flutter
• Framework revision 7a4c33425d (2 weeks ago), 2019-04-29 11:05:24 -0700
• Engine revision 52c7a1e849
• Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /home/dserrano/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /home/dserrano/Android/Sdk
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b16-5323222)
• All Android licenses accepted.
[✓] Android Studio (version 3.4)
• Android Studio at /opt/android-studio
• Flutter plugin version 35.3.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b16-5323222)
[✓] IntelliJ IDEA Community Edition (version 2019.1)
• IntelliJ at /opt/idea
• Flutter plugin version 35.2.3
• Dart plugin version 191.7019
[✓] VS Code (version 1.33.1)
• VS Code at /usr/share/code
• Flutter extension version 3.0.0
[✓] Connected device (1 available)
• SM G930F • ad051602392a4a8260 • android-arm64 • Android 7.0 (API 24)
• No issues found!

My tests work again, when using flutter test --no-test-assets from the CLI.

Thanks @mo-fu , I can run the tests with the above command without issues.

@svprdga Maybe you can reopen the issue because I still can not run tests from Android Studio.

But the tests can be run from the CLI, maybe this is more an Android Studio configuration issue than a Flutter issue ?

This sounds like a valid bug, we should fix this.

@svprdga I cannot reproduce it locally, Do you mind share a reproducible example?

Sure @chunhtai https://github.com/svprdga/flutter-issue-32609
Just run the tests in test/flutter_issue_32609.dart with flutter test and flutter --no-test-assets to see the diference.

Thanks @svprdga  I will look into it

After some investigation, I found out two issues.
The first issue is when running test within the plugin that has a widget that depends on assets in the plugin, the assets loader do not know how to look up the key with its packages name append to it. All it knows is the relative path to its asset. It you run the test in the app that use the plugin, it should pass. This is something we should fix.
The second issue is not related to this bug, it is rather a regression of the fix https://github.com/flutter/flutter/pull/31804. When you do not declared assets in pubspec.yaml, it will not build any test assets during unit test. This would cause some issue when you actually need assets from other package that declare in other package.

authors: chunhtai mo-fu svprdga


text:
Unable to test apps on AVD - x86

My laptop is weak to emulate x64 or latest android versions (6.0 - 9.0), so before flutter, I programmed in native and I always tested my apps in Nexus 4 or Galaxy Nexus with API 19 (Android 4.4) and the emulators worked fine for native apps, once I started with Flutter ( since 1.0) emulators doesn't work correctly (Only for Flutter apps). I always get this error: "Unfortunately app_name has stopped."
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
Built build\app\outputs\apk\debug\app-debug.apk.
WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.

Installing build\app\outputs\apk\app.apk..

My emulators configuration:

`
So I tried to use other android versions, tried with 5.0, and I get the error;
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Running Gradle task 'assembleDebug'...

Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
**Package install error: Failure [INSTALL_FAILED_DEXOPT]
Error launching application on Android SDK built for x86.**

Flutter doctor
[√] Flutter (Channel stable, v1.7.8+hotfix.3, on Microsoft Windows [versÃ£o 10.0.18362.239], locale pt-BR)
    • Flutter version 1.7.8+hotfix.3 at C:\src\flutter
    • Framework revision b712a172f9 (23 hours ago), 2019-07-09 13:14:38 -0700
    • Engine revision 54ad777fd2
    • Dart version 2.4.0

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
    • Android SDK at C:\Users\Dih\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.4)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 37.0.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 4.4.2 (API 19) (emulator)

• No issues found!

My laptop:

My laptop is weak to emulate x64 or latest android versions (6.0 - 9.0), so before flutter, I programmed in native and I always tested my apps in Nexus 4 or Galaxy Nexus with API 19 (Android 4.4) and the emulators worked fine for native apps, once I started with Flutter ( since 1.0) emulators doesn't work correctly (Only for Flutter apps). I always get this error: "Unfortunately app_name has stopped."
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
Built build\app\outputs\apk\debug\app-debug.apk.
WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.

Installing build\app\outputs\apk\app.apk..

My emulators configuration:

`
So I tried to use other android versions, tried with 5.0, and I get the error;
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Running Gradle task 'assembleDebug'...

Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
**Package install error: Failure [INSTALL_FAILED_DEXOPT]
Error launching application on Android SDK built for x86.**

Flutter doctor
[√] Flutter (Channel stable, v1.7.8+hotfix.3, on Microsoft Windows [versÃ£o 10.0.18362.239], locale pt-BR)
    • Flutter version 1.7.8+hotfix.3 at C:\src\flutter
    • Framework revision b712a172f9 (23 hours ago), 2019-07-09 13:14:38 -0700
    • Engine revision 54ad777fd2
    • Dart version 2.4.0

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
    • Android SDK at C:\Users\Dih\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.4)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 37.0.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 4.4.2 (API 19) (emulator)

• No issues found!

My laptop:

plz try this lines
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
ndk {
abiFilters "armeabi-v7a", "x86_64", "armeabi", "mips"
// abiFilters "arm64-v8a", "armeabi-v7a","armeabi", "mips", "x86"
}
applicationId "com.example.tvs_visibility"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

My laptop is weak to emulate x64 or latest android versions (6.0 - 9.0), so before flutter, I programmed in native and I always tested my apps in Nexus 4 or Galaxy Nexus with API 19 (Android 4.4) and the emulators worked fine for native apps, once I started with Flutter ( since 1.0) emulators doesn't work correctly (Only for Flutter apps). I always get this error: "Unfortunately app_name has stopped."
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
Built build\app\outputs\apk\debug\app-debug.apk.
WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.

Installing build\app\outputs\apk\app.apk..

My emulators configuration:

`
So I tried to use other android versions, tried with 5.0, and I get the error;
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Running Gradle task 'assembleDebug'...

Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
**Package install error: Failure [INSTALL_FAILED_DEXOPT]
Error launching application on Android SDK built for x86.**

Flutter doctor
[√] Flutter (Channel stable, v1.7.8+hotfix.3, on Microsoft Windows [versÃ£o 10.0.18362.239], locale pt-BR)
    • Flutter version 1.7.8+hotfix.3 at C:\src\flutter
    • Framework revision b712a172f9 (23 hours ago), 2019-07-09 13:14:38 -0700
    • Engine revision 54ad777fd2
    • Dart version 2.4.0

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
    • Android SDK at C:\Users\Dih\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.4)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 37.0.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 4.4.2 (API 19) (emulator)

• No issues found!

My laptop:

plz try this lines
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
ndk {
abiFilters "armeabi-v7a", "x86_64", "armeabi", "mips"
// abiFilters "arm64-v8a", "armeabi-v7a","armeabi", "mips", "x86"
}
applicationId "com.example.tvs_visibility"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

I did it with Android 4.4 emulator, same problem.
I tested Pixel API 21 1080 x 1920 with Android 5.0 (Google APIs) x86, and it worked, looks like the problem is testing apps in emulators with lower resolution. Those I tested was < 768 x 1280. And for images lower than 5.0 the same problem happened even with emulators with high resolutions (Pixel API 21 1080 x 1920):
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
Built build\app\outputs\apk\debug\app-debug.apk.
WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.

Installing build\app\outputs\apk\app.apk..

Emulator: "Unfortunately app_name has stopped."

In the emulated android go to factory reset. Let it run. This fixed it for me.
Seems to be a bug that android, after creating the vm, thinks its low on space even it has over 2gb of space and a lot of ram.

In the emulated android go to factory reset. Let it run. This fixed it for me.
Seems to be a bug that android, after creating the vm, thinks its low on space even it has over 2gb of space and a lot of ram.

This fixed my issue

Hello @d-apps !
Thank you for posting an issue.
Have you tried solution proposed by the @rdinkel? Did it solve the problem for you?

I ended up using emulator with android 6.0, changed the configuration and now it, working.

Hello @d-apps !
Great, nice to hear it's working now!
Closing this issue then.

source: gharchive/issue

authors: bettdalpha d-apps janmoppel rdinkel saravananmnm

repo: flutter/flutter

license_type: permissive

license_source: github-api


text:
Dart 1.16 is now released. Upgrade Flutter's dep ?

Looks like Flutter is still downloading a dev version of 1.16. We might want to upgrade our downloaded dart sdk to 1.16.
Thanks!

Sure.

Flutter upgrade isn't updating the SDK to 1.16.0
current version installed -1.12.13+hotfix.9.

authors: abarth alokrawatt sethladd


text:
Support Google AdSense in Flutter Web applications

I tried to implement the next script(Google Ad-sense) at my Flutter Web site, but unsuccessful by now. The code is:
<script type="text/javascript">var nend_params={"media":00000,"site":000000,"spot":000000,"type":1,"oriented":1};0</script>
<script type="text/javascript" src="https://js1.nend.net/js/nendAdLoader.js"></script>

I understood, that Flutter web is currently in technical preview, but may be any route? Any advice and suggestions will be greatly appreciated.

We will treat this as a request to support Google AdSense. We are not actively working on this right now. Perhaps someone outside the Flutter team could try building a plugin, but we expect some rough edges.

the title doesn’t match the contained script a bit, admin it.

@alex89607 I do not understand why the title should match the script.

the title for "Google AdSense", and script for "nend.net".
and then I want to write "the title doesn’t match the contained script a bit, I admit it."

Ah, I was going off of the issue description rather than the script. We could certainly change the description and the script to match exactly what we want to do in this area. I think it's ok to leave it as is until we start actively investigating it.

Just a comment, but the lack of a way to integrate AdSense and other monetizing (JavaScript) based solutions is going to seriously limit the adoption of Flutter for Web.

4 Months passed, is there still no opportunity to integrate AdSense on Flutter Web Projects ?

Hi, try using Admob

@codermihirpaldhikar did you ever tried to integrate Admob to your Flutter Web Project ?

@LichtenbergM I haven't But I am going to use. Why is there any problem?

Hi, admob is meant for mobile and if I'm correct, and I think I am, I've seen something forbidding the use on web pages

any update?

any update?

I've e-mailed with AdMob & AdSense support, and here is what I have gathered with respect to support for Google ads in Flutter web apps.
AdMob only has Android & iOS SDKs available, so it will not work for Flutter web apps, even if you use one of the Flutter AdMob plugins. No one at AdMob support seems to have heard of Flutter, so it is unlikely they will provide an SDK that works with Flutter anytime soon.
AdSense is Google's web site ad publishing platform, and is designed for sites with primarily text-based content because the crawlers it uses can only scan text. Since Flutter web apps are basically JavaScript web apps, AdSense will never be able to crawl your app and so AdSense will not work for Flutter sites. No one at AdSense seems to have hard of Flutter either, so it is unlikely they will provide support for Flutter sites anytime soon.
Basically, there is currently no method to monetize a Flutter web app using ads and no plan by Google to create one. This is remarkable, considering ads are Google's primary source of revenue and Flutter is being so heavily promoted to developers.
After spending weeks porting my native Android & iOS apps to Flutter in the hopes of being able to provide a web app that I can also monetize, I've decided to scrap my Flutter implementation. I'm sharing my experience so no one else depending on the ability to monetize their web app wastes so much time building it in Flutter like I did.

The limitation with using AdSense with Flutter is related to the limitation described here: https://github.com/flutter/flutter/issues/46789

I don't know if this is helping anyone, but what I'm going to try is make a web server in Go, and if the user agent is a bot, render the page with the chrome-render plugin, and serve the result instead of the original site.
Much like prerender.io, which may be useful too. It can be used with Apache/NGINX etc.

I don't know if this is helping anyone, but what I'm going to try is make a web server in Go, and if the user agent is a bot, render the page with the chrome-render plugin, and serve the result instead of the original site.
Much like prerender.io, which may be useful too. It can be used with Apache/NGINX etc.

I've e-mailed with AdMob & AdSense support, and here is what I have gathered with respect to support for Google ads in Flutter web apps.
AdMob only has Android & iOS SDKs available, so it will not work for Flutter web apps, even if you use one of the Flutter AdMob plugins. No one at AdMob support seems to have heard of Flutter, so it is unlikely they will provide an SDK that works with Flutter anytime soon.
AdSense is Google's web site ad publishing platform, and is designed for sites with primarily text-based content because the crawlers it uses can only scan text. Since Flutter web apps are basically JavaScript web apps, AdSense will never be able to crawl your app and so AdSense will not work for Flutter sites. No one at AdSense seems to have hard of Flutter either, so it is unlikely they will provide support for Flutter sites anytime soon.
Basically, there is currently no method to monetize a Flutter web app using ads and no plan by Google to create one. This is remarkable, considering ads are Google's primary source of revenue and Flutter is being so heavily promoted to developers.
After spending weeks porting my native Android & iOS apps to Flutter in the hopes of being able to provide a web app that I can also monetize, I've decided to scrap my Flutter implementation. I'm sharing my experience so no one else depending on the ability to monetize their web app wastes so much time building it in Flutter like I did.

I don't think the challenge is as true as you said. Flutter web apps are compiled to html, css and javascript just like any website. Adsense code could be added to the javascript manually. Though I must admit there would be rough edges but I don't think it should be too challenging for Google to implement. It's just delicate and so they would take it slow but developers are anxious.

@Greatcallie agree, but we need at least P5 priority. Current P6 means "feature we're unlikely to address". Let's add more thumbs up for the question.

Still waiting. Google cares about adaptation, doesn't care amount app monetization for developers.

Go to work, Google.. TT... I'm waiting

................👎 still waiting

Im trying to give flutter web a chance but it seems hopeless I can use html & js instead. Bye flutter

Im trying to give flutter web a chance but it seems hopeless I can use html & js instead. Bye flutter

According the aswer of this question, it is possible show adsense ads and get impressions using PlatformView on Flutter Web: https://stackoverflow.com/questions/63985740/how-to-insert-adsense-display-ad-in-flutter-web/63987672?noredirect=1#comment114864180_63987672

@d-apps That solution sounds promising but it sounds like that developer has previously had their website approved for AdSense, presumably before implementing a Flutter-based site. If you already have created a Flutter-based site, it seems impossible to get it approved for AdSense since it is a JS-based SPA.
The frustration is that the Flutter team does not acknowledge the existence of AdSense, and the AdSense team doesn't acknowledge the existence of Flutter, despite both projects being wholly owned by Google.

The Flutter team works very closely with the Ads team. You can read about our progress and plans here: https://medium.com/flutter/new-ads-beta-inline-banner-and-native-support-for-the-flutter-mobile-ads-plugin-e48a7e9a0e64

@csells Thanks for the article. The issue it references is https://github.com/flutter/flutter/issues/12114 which seems to specifically address supporting AdMob Native ads, which would only support Android & iOS.
My issue is lack of support for Flutter Web, which this would not address. Numerous comments on that issue also inquire about this but no response to any of them.

We're working on having a solid solution in place for our production-quality Android and iOS platforms first before we can support ads on the beta web platform. As I'm sure you can imagine, preventing fraud is hard work and a prerequisite for ad support on any platform.

any update?
Do you have a guess when it is presented?

It's nonsense that there are still no ads on the flutter web.

We have been waiting for an ad plug-in for 1 year

@csells is it correct to assume that with the release of flutter, which brings web to the stable channel and the release of the new "official" ads plugins that seems to bring a solid solution to mobile, now web will be moved up on the priority list? It would be good to have some ETA for people planning to start projects in flutter that need to target web and use ads to know if/when flutter could be a viable option for that.

@LichtenbergM I haven't But I am going to use. Why is there any problem?

Admob only have Android and ios sdk... it's not supported on web..

So, there is still no way to display any kind of ads in my flutter web app? :(

As an early supporter and adopter of Flutter, I started building my company's web app with Flutter web months ago because the technology was very cool, and I believed that with the stable release of web sometime this year that these issues would be solved. It's very disappointing to see the Flutter team outright ignoring these issues. The fact that @csells referenced ad support in mobile in a thread about ad support in web is unbelievably frustrating. I truly am a fan of Flutter web, and have praised it while others denounce it, but how can any of us continue to support Flutter web when the Flutter team slaps the stable tag on it and calls it a job well done when functionality as important as keeping a project economically sustainable is not even being addressed?
If Flutter web is a cute party trick to build prototype web apps and show off the JS compiler, don't call it stable.
Hoping ad support comes soon so I don't have to scrap the web project that I hoped would broaden people's view of Flutter web.

Clipping from the repository documentation

If the issue is labeled P5 or P6, we are not currently expecting to ever work on it (especially P6).

It is very sad that such an important functionality for the development of flutter in the WEB is not planned to be developed.

The only explanation I can think of is that Flutter web is released with Html, CSS and Javascript and that makes it a regular site. And as a regular site the Adsense protocols will have to be followed until they approve your site for Adsense and then you can integrate the Adsense codes just like other websites do.

A problem with the AdSense way, is that it does not target SPAs, but websites with a lot of content.
If you publish a web app, with a simple landing page, AdSense will not approve your website for ads (most likely, as far as I know and have experienced, please tell me if you experienced the opposite) because of "lack of content". While, AdMob is a lot lot more "open" to just simple apps.
That's why it'd make A LOT of sense to have AdMob for Flutter.

Single landing page may not be the challenge. There are other factors like usefulness, traffic, account activation and domain. Flutter apps are released on different platforms as native applications. And just like on Desktop and others you can't expect Admob to monetise on all platforms. So when Flutter gets to any platform it must blend and behave like others.

A problem with the AdSense way, is that it does not target SPAs, but websites with a lot of content.
If you publish a web app, with a simple landing page, AdSense will not approve your website for ads (most likely, as far as I know and have experienced, please tell me if you experienced the opposite) because of "lack of content". While, AdMob is a lot lot more "open" to just simple apps.
That's why it'd make A LOT of sense to have AdMob for Flutter.

And considering the fact that a Web app built with Flutter cannot be differentiated from a regular website. In other words, a finished Flutter web app cannot be traced to flutter in any way. Therefore this becomes an Adsense issue and it should be closed here.

And considering the fact that a Web app built with Flutter cannot be differentiated from a regular website. In other words, a finished Flutter web app cannot be traced to flutter in any way. Therefore this becomes an Adsense issue and it should be closed here.

Flutter web does not compile to HTML and CSS like any other website as you have suggested. Your Flutter code only compiles to JavaScript. When someone opens your site it opens a blank HTML page and then covers it with a canvas that your Flutter app is drawn on by the JS service worker. Distinguishing a normal HTML+CSS website from a Flutter web app is as easy as inspecting element on the website and noticing that there is no actual HTML or CSS.

Thanks for the correction.
On Wed, 9 Jun 2021, 12:51 pm Landon, @.***> wrote:

And considering the fact that a Web app built with Flutter cannot be
differentiated from a regular website. In other words, a finished Flutter
web app cannot be traced to flutter in any way. Therefore this becomes an
Adsense issue and it should be closed here.
Flutter web does not compile to HTML and CSS like any other website as you
have suggested. Your Flutter code only compiles to JavaScript. When someone
opens your site it opens a blank HTML page and then covers it with a canvas
that your Flutter app is drawn on by the JS service worker. Distinguishing
a normal HTML+CSS website from a Flutter web app is as easy as inspecting
element on the website and noticing that there is no actual HTML or CSS.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/40376#issuecomment-857629331,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AK57Y2K4DVNMU24Y4ACWYYLTR5IV5ANCNFSM4IWI4EAA
.

I tried to implement the next script(Google Ad-sense) at my Flutter Web site, but unsuccessful by now. The code is:
<script type="text/javascript">var nend_params={"media":00000,"site":000000,"spot":000000,"type":1,"oriented":1};0</script>
<script type="text/javascript" src="https://js1.nend.net/js/nendAdLoader.js"></script>

I understood, that Flutter web is currently in technical preview, but may be any route? Any advice and suggestions will be greatly appreciated.

Is your flutter web approved by AdSense? I am getting Valuable inventory: No content to my flutter website www.droidbiz.in My website has so many pages with content. Not able to understood why AdSense is rejecting my request.

Any update?

any news?

Patiently waiting for any updates..
One idea that I had was to add AdSense to an empty HTML page and then add Flutter app to the html page. Would that work? Or would the html page get rejected due to lack of content because AdSense would ignore the Flutter app?

It would not work as you mentioned due to lack of content. What I was thinking there is the package SEO renderer which is render the elements as HTML for SEO purposes. Maybe it will help AdSense to recognise the content of the site and the will approve it. To add the AdSense itself you can do it through a platform view

Flutter development process is too slow.. 😕

Any update?

it's been really 1 year still no improvement :((

@csells  Any updates? We are still waiting for solution.

is there any progress on this thread ?

So what's the solution to show ads on flutter web? Why isn't admob being enhanced to support flutter web? or at least an intermediate adsense plugin? We really need something.

So what's the solution to show ads on flutter web? Why isn't admob being enhanced to support flutter web? or at least an intermediate adsense plugin? We really need something.

As a workaround I've considered doing an iframe to load a site of mine that is Adsense approved which will show an ad. Think interstitial but instead load a url.
I'm hesitant though because it likely violates something somewhere. If any Googler could confirm or deny this that would be awesome!
Don't make me be a rebel! 😇

So what's the solution to show ads on flutter web? Why isn't admob being enhanced to support flutter web? or at least an intermediate adsense plugin? We really need something.

As a workaround I've considered doing an iframe to load a site of mine that is Adsense approved which will show an ad. Think interstitial but instead load a url.
I'm hesitant though because it likely violates something somewhere. If any Googler could confirm or deny this that would be awesome!
Don't make me be a rebel! 😇

not a solution

I left my banner ad implementation to the end of my project, alas I was not aware of this grave limitation. It was so unthinkable for me that I did not even bother checking if banner ads was possible for Web Apps using flutter. I am shocked. Google please create the necessary package to allow Admob or Adsense in Flutter Web as I am sure this framework will lose all its followers otherwise.

Hi, Is there any updates

Any updates on this? So we can't monetize our flutter web apps by adding ads?

WTF , I WAS WAITING FOR MORE THAN 3 YEARS ,

If Flutter could export the web app not just as a PWA but html pages that might solve this problem. Alternatively, here are some Stackoverflow solutions for PWAs
https://stackoverflow.com/questions/57135062/google-ads-solution-for-pwa-spa
https://stackoverflow.com/questions/65736507/is-there-a-way-to-add-google-adsense-or-admob-to-an-ionic-angular-pwa

Guys... its 4 years already... Any updates??????????

I am absolutely floored having just found out that this is a limitation of Flutter web and even more so that it is not being actively addressed but rather ignored (and for such a long time). I was truly convinced that Flutter was the right choice for my pet project, it seemed to tick all the right boxes. Sadly it doesn't seem like that is the case anymore. Please Flutter team, address this issue or at least let us know where it sits on the roadmap (if at all) so people can make informed decisions about whether this is the right tool for them or not.

Hello all i came across this package https://pub.dev/packages/admanager_web please have a look as adunitid is for admob but this package suggests that its supports adsense ad most of you all may know about this, is this working and use full and how about 3rd party ad platforms like ezonic i have opened an account with them but their waiting time(analyzing) is too long and as flutter renders on canvaskit, if i try to place an ad a blank page shows (tried via ezonic). So no luck there too

Flutter Channel stable, 3.3.7
// ignore: undefined_prefixed_name
 ui.platformViewRegistry.registerViewFactory('adsenseView', (int viewID) {
   final frameElement = IFrameElement()
     ..style.width = '100%'
     ..style.height = '100%'
     ..style.border = 'none'
     ..src = 'assets/assets/adsense.html';

   return frameElement;
});

const SizedBox(
  height: 150,
  child: HtmlElementView(
    viewType: 'adsenseView',
  ),
),

Add path to pubspec.yaml
  assets:
   - assets/adsense.html

Copy your google adsense code in adsense.html
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-xxxxxxxxxxxxxxx"
     crossorigin="anonymous"></script>
<ins class="adsbygoogle"
     style="display:block"
     data-ad-format="fluid"
     data-ad-layout-key="xxxxxxxxxx"
     data-ad-client="ca-pub-xxxxxxxxxxxx"
     data-ad-slot="xxxxxxxxxx"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>

This  way only have  web ... it's not supported on android and ios.

Flutter Channel stable, 3.3.7
// ignore: undefined_prefixed_name
 ui.platformViewRegistry.registerViewFactory('adsenseView', (int viewID) {
   final frameElement = IFrameElement()
     ..style.width = '100%'
     ..style.height = '100%'
     ..style.border = 'none'
     ..src = 'assets/assets/adsense.html';

   return frameElement;
});

const SizedBox(
  height: 150,
  child: HtmlElementView(
    viewType: 'adsenseView',
  ),
),

Add path to pubspec.yaml
  assets:
   - assets/adsense.html

Copy your google adsense code in adsense.html
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-xxxxxxxxxxxxxxx"
     crossorigin="anonymous"></script>
<ins class="adsbygoogle"
     style="display:block"
     data-ad-format="fluid"
     data-ad-layout-key="xxxxxxxxxx"
     data-ad-client="ca-pub-xxxxxxxxxxxx"
     data-ad-slot="xxxxxxxxxx"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>

This way only have web ... it's not supported on android and ios.

Hi...tried this.  Seems to work except getting a blank section.  I assume this is something to do with how the adSense is setup, but was wondering if you had any insight.

Yes Google AdSense Accept my Flutter Web Application.  Flutter Web Application Support Google AdSense. Hope Your Flutter Web Application have quality content and have proper setup.
You can add Adsense ad unit In Flutter Web with the help of below widget. It's work perfectly fine.
create widget with any name you like. I'm named BannerAdUnit
only replace ad unit id as you can see in the below widget inside html body tag.
import 'dart:html' as html;
import 'dart:ui' as ui;

import 'package:flutter/material.dart';

String viewID = "your-view-id";

class BannerAdUnit extends StatelessWidget {
  const BannerAdUnit({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
  ui.platformViewRegistry.registerViewFactory(
  viewID,
  (int id) => html.IFrameElement()
  ..style.width = '100%'
  ..style.height = '100%'
  ..srcdoc = '''
        <!DOCTYPE html>
 <html> <head> </head> <body>
                     <div data-frill-widget="your ad unit id will come here" style="width: 340px; height: 460px;"></div>
 <script async src="url"></script>           </body>
 </html>           '''
  ..style.border = 'none');

  return SizedBox(
  height: 460,
  width: 340,
  child: HtmlElementView(
  viewType: viewID,
  ),
  );
  }
}

The story is not end here. When you add the above code You will see one beautiful error something like that.

The name 'platformViewRegistry' is being referenced through the prefix
'ui', but it isn't defined in any of the libraries imported using that
prefix. (Documentation)

How to fix this error? Don't worry I'll show you how to fix this error.
Create new file on the root name it analysis_options.yaml
and copy and paste the below code and the error is gone.
analyzer:
  errors:
    undefined_prefixed_name: ignore

Note: On the debugging mode flutter Web app not show you any ads.
if you want to see ads deploy your Flutter Web App. you will see ads like this.

We are using Freestar ads on our flutter web and it is working near perfectly except sometimes chrome killing the ad iframe labeling it as "using too much resources." Haven't had time to dig in to that.

@rafaelmaia8384 We are using Freestar ads on our flutter web and it is working near perfectly except sometimes chrome killing the ad iframe labeling it as "using too much resources." Haven't had time to dig in to that.

Thank you for the tip, could you talk more about the approval process? Is it instant? Which library did you use to implement the ads in Flutter?

It wrote it myself. The code is not in a position to be released publicly yet but I plan to do that sometime next month.
Basic idea is create html div as a flutter node (platformaViewRegistry and HTMLElementView); insert typical ad scripts in index.html and call JavaScript function from flutter that does the ad display task.

Any updates?

I would also appreciate it if flutter web supported adsense as soon as possible because my project is useless without integrating ads.

Yes Google AdSense Accept my Flutter Web Application. Flutter Web Application Support Google AdSense. Hope Your Flutter Web Application have quality content and have proper setup.
You can add Adsense ad unit In Flutter Web with the help of below widget. It's work perfectly fine.
create widget with any name you like. I'm named BannerAdUnit only replace ad unit id as you can see in the below widget inside html body tag.
import 'dart:html' as html;
import 'dart:ui' as ui;

import 'package:flutter/material.dart';

String viewID = "your-view-id";

class BannerAdUnit extends StatelessWidget {
  const BannerAdUnit({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
  ui.platformViewRegistry.registerViewFactory(
  viewID,
  (int id) => html.IFrameElement()
  ..style.width = '100%'
  ..style.height = '100%'
  ..srcdoc = '''
        <!DOCTYPE html>
 <html>
  <head> </head>
  <body>

        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-xxxxxxxxxxxxxxx"
 crossorigin="anonymous"></script>
 <ins class="adsbygoogle"
 style="display:block"
 data-ad-format="fluid"
 data-ad-layout-key="xxxxxxxxxxxx"
 data-ad-client="ca-pub-xxxxxxxxxxxxxx"
 data-ad-slot="xxxxxxxxxxxx"></ins>
  <script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>

  </body>
 </html>           '''
  ..style.border = 'none');

  return SizedBox(
  height: 460,
  width: 340,
  child: HtmlElementView(
  viewType: viewID,
  ),
  );
  }
}

The story is not end here. When you add the above code You will see one beautiful error something like that.

The name 'platformViewRegistry' is being referenced through the prefix
'ui', but it isn't defined in any of the libraries imported using that
prefix. (Documentation)

How to fix this error? Don't worry I'll show you how to fix this error.
Create new file on the root name it analysis_options.yaml and copy and paste the below code and the error is gone.
analyzer:
  errors:
    undefined_prefixed_name: ignore

Note: On the debugging mode flutter Web app not show you any ads. if you want to see ads deploy your Flutter Web App. you will see ads like this.

If you guys don't want to write this spaghetti code try this package flutter_ad_manager_web . I created this helpful package for display Adsense ads on Flutter Web.

How can you confirm it works if you don't see it in dev mode? You just add it and then submit the site for approval to google and hope everything goes well? I've added it and don't see any errors, 200s from the Google Ads apis, however both in development & release I don't see the ads.

Any updates?

the lack of a way to integrate AdSense and other monetizing (JavaScript) based solutions is going to seriously limit the adoption of Flutter for Web.

Yes Google AdSense Accept my Flutter Web Application...
String viewID = "your-view-id";

Note: On the debugging mode flutter Web app not show you any ads. if you want to see ads deploy your Flutter Web App.

How can you confirm it works if you don't see it in dev mode? You just add it and then submit the site for approval to Google and hope?
I added it and don't see any errors, which is good, only 200s from the Google Ads APIs; however in development & release I don't see the ads.
Also, what is viewID here? The GCP property on Google Analytics?
Thanks for much for your help.

As for this, did you get approval from Adsense in production?

@rafaelmaia8384 We are using Freestar ads on our flutter web and it is working near perfectly except sometimes chrome killing the ad iframe labeling it as "using too much resources." Haven't had time to dig in to that.

Thank you for the tip, could you talk more about the approval process? Is it instant? Which library did you use to implement the ads in Flutter?

It wrote it myself. The code is not in a position to be released publicly yet but I plan to do that sometime next month.
Basic idea is create html div as a flutter node (platformaViewRegistry and HTMLElementView); insert typical ad scripts in index.html and call JavaScript function from flutter that does the ad display task.

Did you release the code somewhere? It would be really interesting to see if people found good workarounds for showing ads in flutter web.

This limitation has just killed my flutter web app project. Rebuilding it with node

this has killed so many projects

Bumping to P1, since this is being actively worked on.

@yjbanov FINALLY! After 4 years its on P1 🥳

Bumping to P1, since this is being actively worked on.

@yjbanov
maybe the implementation could have synergies with

https://github.com/flutter/flutter/issues/151058

@sokoloff06 @ditman I saw that https://github.com/flutter/packages/pull/6871 is merged. What does it mean for this feature? Are we close to painless Ads display on web and maybe desktop in the future?

@Tananga Tune in to #FlutterInProduction if you can, on December 17th.

Glad to see the progress, I see it's only available for games, will that change in the future?

In google_adsense package, it said adunit widget is in closed early access. Do we have to wait to use this widget?

Hello, I want to have ads in my Flutter web project.
Will it be possible or not integrate Google AdSense or any ads provider for Flutter Web?
As per chatgpt, it has said it is possible to use as a widget.
So can anyone help me on this?

authors: Appwrite-Guru CaglarKullu Capricornwqh DEVANCE24 Davvel EndeR583 Greatcallie Halil-ibrahim-GUNBULAK Jaredeco LichtenbergM Nazmulrana24 PrimeTimeTran SanielDous Tananga TawfiqHasan58 Thribs agelospanagiotakis ahmtcn123 alex89607 amirk3321 armandojimenez carloshwa cliffordh cmaster11 codermihirpaldhikar crimsonvspurple csells d-apps ditman gecaka giorgio79 gorkemsari hmbenhaim iapicca jumper423 ken-salterdiazsolutions kmcgill88 landonstahl llucax mahmut-salih-cicek mattee12 milkness mirabo-vuong-nt nilotpalkapri rafante rashmitank27 sauravdpl sdrfgf shazlycode smith897 thbestforyourbizdeployment theindianappguy thunderbug1 toco1001 tomrozb veerapandi-s yhlee0907 yjbanov


text:
Golang frontend

being able to use go instead of dart

Duplicate of #14816

authors: deepnum stuartmorgan


text:
i want to load the jquery.min.js file in my web view

i want to load the jquery.min.js file in my web view.
i am using webview_flutter 0.3.15+1 plugin
Widget getWebViewWidget(BuildContext context, AsyncSnapshot snapshot ){
var test = snapshot.data;
return WebView(
initialUrl: test,
javascriptMode: JavascriptMode.unrestricted,
onWebViewCreated: (WebViewController webViewController1){
webViewController = webViewController1;
loadHtmlFromAssets(test);
}
);
}

loadHtmlFromAssets(filePath) async{
if(filePath != null){
File file = File(filePath);
String fileText = await file.readAsString();
print(fileText);
String jsCode = await rootBundle.loadString('assets/jquery.min.js');
webViewController.loadUrl(
Uri.dataFromString(fileText, mimeType: 'text/html', encoding: Encoding.getByName('utf-8')).toString(),

  );

}
}

        Hello Flutter 9

    <input  type="button" onclick="hello();"  id="but_1" name="but_1" value="Call Flutter2" />

    <input  type="button" onclick="test();"  id="but_2" name="but_2" value="Call Flutter3" />

    Welcome to Flutter WebView Demo

 Hi

Hi @urvesh-educloud
This platform is not met for assistance on personal code.
Please see https://flutter.dev/community for resources for asking questions like this,
you may also get some help if you post it on Stack Overflow.
Closing, as this isn't an issue with Flutter itself,
if you disagree please write in the comments and I will reopen it
Thank you

authors: iapicca urvesh-educloud


text:
Undefined symbols for architecture armv7 - Failed to build iOS app

Xcode's output:
↳
    Undefined symbols for architecture armv7:
      "_OBJC_CLASS_$_FlutterStandardMessageCodec", referenced from:
          objc-class-ref in FlutterWebView.o
      "_OBJC_CLASS_$_FlutterError", referenced from:
          objc-class-ref in FLTWKNavigationDelegate.o
          objc-class-ref in FlutterWebView.o
      "_FlutterMethodNotImplemented", referenced from:
          -[FLTCookieManager handleMethodCall:result:] in FLTCookieManager.o
          ___83-[FLTWKNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]_block_invoke in FLTWKNavigationDelegate.o
          -[FLTWebViewController onMethodCall:result:] in FlutterWebView.o
      "_OBJC_CLASS_$_FlutterMethodChannel", referenced from:
          objc-class-ref in FLTCookieManager.o
          objc-class-ref in FlutterWebView.o
    ld: symbol(s) not found for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Using new build system
    note: Planning build
    note: Constructing build description

Flutter doctor -v
[✓] Flutter (Channel master, v1.13.1-pre.59, on Mac OS X 10.15 19A602, locale en-IN)
    • Flutter version 1.13.1-pre.59 at /Users/nirav/Public/flutter
    • Framework revision e58dc16d7b (3 days ago), 2019-12-06 18:21:52 -0800
    • Engine revision e7b69ced2e
    • Dart version 2.7.0 (build 2.7.0-dev.2.1 a9c77229c2)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/nirav/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2, Build version 11B44
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 39.0.3
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] IntelliJ IDEA Community Edition (version 2019.2.4)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 41.0.4
    • Dart plugin version 192.7402

[✓] Connected device (1 available)
    • iPhone 11 • 78905D80-8B3C-4D86-B692-0930F48E6858 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-2 (simulator)

• No issues found!

Highly appreciate your help and support. Thank You.

How are you trying to archive the build?  Can we get your reproduction steps?
Note that Flutter does not support building against the simulator in Release mode.

By running "flutter build ios" as well as Archive option from Xcode.
Both are giving the same error

Are you building against the simulator?  Both flutter build ios and Archiving from Xcode would do so in Release, which doesn't work in the simulator.

I am building it for the App Store. Please check below steps
Xcode's output:
↳
Undefined symbols for architecture armv7:
"OBJC_CLASS$_FlutterStandardMessageCodec", referenced from:
objc-class-ref in FlutterWebView.o
"OBJC_CLASS$_FlutterError", referenced from:
objc-class-ref in FLTWKNavigationDelegate.o
objc-class-ref in FlutterWebView.o
"_FlutterMethodNotImplemented", referenced from:
-[FLTCookieManager handleMethodCall:result:] in FLTCookieManager.o
___83-[FLTWKNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]_block_invoke in FLTWKNavigationDelegate.o
-[FLTWebViewController onMethodCall:result:] in FlutterWebView.o
"OBJC_CLASS$_FlutterMethodChannel", referenced from:
objc-class-ref in FLTCookieManager.o
objc-class-ref in FlutterWebView.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning build
note: Constructing build description
Encountered error while building for device.

I had the exact problem with my project since upgrading to flutter 1.12.13.hotfix-5 and was able to get a successful build AND archive. I used the terminal command in vscode after following these instructions to create the build.
From.. #23556 (comment)

Delete the ios/ folder
Run flutter create .
Merge back in any specific settings you had made to the plist or other ios specific files.

One thing I didn't do was merge back in my pod file, I just let the pods get recreated.

This saved me a lot of time. Thanks

That linker error means it wasn't finding the Flutter.framework.  Duplicating to https://github.com/flutter/flutter/issues/37850 and friends.
The workaround is to let the tool re-copy the framework by running:
rm -rf ios/Flutter/Flutter.framework

Ideally flutter clean would do this for you.  See https://github.com/flutter/flutter/issues/12631.

Hey still I am getting the same error any solution?

@deveshgarg-max Please file a new issue and completely fill out the template.  Include a -v verbose log of it reproducing.

Log:
               ld: symbol(s) not found for architecture armv7
               clang: error: linker command failed with exit code 1 (use -v to see invocation)

[ +206 ms] "flutter ios" took 11,331ms.
[  +18 ms] Encountered error while building for device.
[   +2 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      _BuildIOSSubCommand.runCommand (package:flutter_tools/src/commands/build_ios.dart:256:7)
           <asynchronous suspension>
           #2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1157:12)
           <asynchronous suspension>
           #3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1009:27)
           <asynchronous suspension>
           #4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #5      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
           <asynchronous suspension>
           #6      CommandRunner.runCommand (package:args/command_runner.dart:197:13)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:278:9)
           <asynchronous suspension>
           #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #9      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
           <asynchronous suspension>
           #10     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:234:5)
           <asynchronous suspension>
           #11     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)
           <asynchronous suspension>
           #12     run.<anonymous closure> (package:flutter_tools/runner.dart:62:12)
           <asynchronous suspension>
           #13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #14     AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
           <asynchronous suspension>
           #15     runInContext (package:flutter_tools/src/context_runner.dart:73:10)
           <asynchronous suspension>
           #16     main (package:flutter_tools/executable.dart:90:3)
           <asynchronous suspension>

flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.2, on macOS 11.2 20D64 darwin-arm, locale en-AU)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.54.3)
[✓] Connected device (2 available)

• No issues found!

authors: babaosoftware deveshgarg-max jmagman niravt07 xmany


text:
FormField link broken in API docs

The link for FormField is broken in the API documentation:
http://docs.flutter.io/flutter/material/FormField-class.html

It seems to be working now? Not sure why it wasn't working just a few minutes ago.

Links can break while the docs are updating. This is probably a dupe of https://github.com/flutter/flutter/issues/4734

authors: bobacadodl eseidelGoogle


text:
API documentation text has accessibility problems

Use case
Some parts of the documentation has extremely thin text, which is very hard to read, even if you don't have bad eyesight. The text is only one pixel thick, and blends in with the white background.
Here's two examples (taken from here) where the first two methods are just fine, but the ones below are very hard to read.
Example 1:

Example 2:

I find it painstakingly difficult to read through these docs, and I can't imagine what people with worse monitors or eyesight feels about it.

Proposal
Make the font thicker and use something else to indicate the difference, such as colors, icons, emphasis, or something else.

This is a duplicate of https://github.com/flutter/flutter/issues/47796/. Could you add a thumbs up emoji there to the first comment? We use the number of thumbs up emojis to help determine the priority of issues.
I'll close this issue in favor of the existing one

authors: awulkan shihaohong