text:
String.fromEnvironment without a const silently does the wrong thing in the VM

As 44083 was merged in, I would expect it to be working in at least dev, but I am not able to get it to work as expected. I set the channel to dev (flutter channel dev), then did an upgrade (flutter upgrade). Then I issued the following:
flutter -run -t lib/main_generic.dart --dart-define=ENV=DEV
In my main_generic.dart I do this:
var env = String.fromEnvironment("ENV", defaultValue: "PROD");
The env variable always returns PROD.
Should this not be picked up and return DEV instead of defaulting to PROD?
@jonahwilliams

Here are the results from Flutter Doctor
C:\GitProjects\flutter_app_rc_configurations>flutter doctor -v
[√] Flutter (Channel dev, v1.18.0-8.0.pre, on Microsoft Windows [Version 10.0.18363.778], locale en-US)
• Flutter version 1.18.0-8.0.pre at C:\Flutter\flutter
• Framework revision e0c63cd35e (5 days ago), 2020-04-23 22:29:01 -0400
• Engine revision d2ec21221e
• Dart version 2.9.0 (build 2.9.0-3.0.dev b0d35855d8)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\darri\AppData\Local\Android\sdk
• Platform android-R, build-tools 29.0.3
• Java binary at: C:\Program Files\android-studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
• All Android licenses accepted.
[√] Android Studio (version 3.6)
• Android Studio at C:\Program Files\android-studio
• Flutter plugin version 45.1.1
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[√] Connected device (1 available)
• Pixel 3 XL • 8BPY11Q15 • android-arm64 • Android 10 (API 29)
• No issues found!

I'm not able to repro an issue on that commit version of flutter, running iOS simulator + macOS. I could also try Android + Windows. Could you share verbose logs from an invocation of flutter run that you've provided a dart-define too?

I also was not able to get this working using the aforementioned version on Android/Linux, Android/macOS, or iOS/macOS.

@chimon2000 can you provide logs from a flutter run -v where you've passed a dart-define and it hasn't worked? Ideally some minimal sample code too

@jonahwilliams it appears that the issue is that String.fromEnvironment was missing const.  This error displays correctly when targeting web but not when targeting mobile.
@darrinps
const String.fromEnvironment("ENV", defaultValue: "PROD")

I would have expected a missing const  to cause a compile error.

Here is the result of the run you requested.
C:\GitProjects\flutter_app_rc_configurations>flutter run -v -t lib/main_generic.dart --dart-define=ENV=DEV
[   +9 ms] executing: [C:\Flutter\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +80 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] e0c63cd35e15e407a80dc44281cc392535fcce25
[        ] executing: [C:\Flutter\flutter/] git tag --contains HEAD
[ +246 ms] Exit code 0 from: git tag --contains HEAD
[   +4 ms] 1.18.0-8.0.pre
[  +22 ms] executing: [C:\Flutter\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +50 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] origin/dev
[        ] executing: [C:\Flutter\flutter/] git ls-remote --get-url origin
[  +40 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter.git
[  +87 ms] executing: [C:\Flutter\flutter/] git rev-parse --abbrev-ref HEAD
[  +39 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] dev
[  +58 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +17 ms] executing: C:\Users\darri\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +36 ms] List of devices attached
8BPY11Q15              device product:crosshatch model:Pixel_3_XL device:crosshatch transport_id:12
[   +6 ms] C:\Users\darri\AppData\Local\Android\sdk\platform-tools\adb.exe -s 8BPY11Q15 shell getprop
[ +170 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +6 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +102 ms] Found plugin firebase_core at C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\firebase_core-0.4.4+3
[   +8 ms] Found plugin firebase_core_web at C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\firebase_core_web-0.1.1+2
[   +2 ms] Found plugin firebase_remote_config at C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\firebase_remote_config-0.3.0+3
[  +82 ms] Found plugin firebase_core at C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\firebase_core-0.4.4+3
[   +4 ms] Found plugin firebase_core_web at C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\firebase_core_web-0.1.1+2
[   +1 ms] Found plugin firebase_remote_config at C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\firebase_remote_config-0.3.0+3
[  +62 ms] Generating C:\GitProjects\flutter_app_rc_configurations\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +26 ms] ro.hardware = crosshatch
[        ] ro.build.characteristics = nosdcard
[  +44 ms] Launching lib/main_generic.dart on Pixel 3 XL in debug mode...
[   +5 ms] C:\Flutter\flutter\bin\cache\dart-sdk\bin\dart.exe C:\Flutter\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Flutter\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names -Ddart.developer.causal_async_stacks=true -DENV=DEV
--output-dill C:\Users\darri\AppData\Local\Temp\flutter_tool.01fd9782-897d-11ea-923a-d8cb8a7c07b5\app.dill --packages .packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation
--filesystem-scheme org-dartlang-root --initialize-from-dill build\cache.dill
[  +11 ms] executing: C:\Users\darri\AppData\Local\Android\sdk\build-tools\29.0.3\aapt dump xmltree C:\GitProjects\flutter_app_rc_configurations\build\app\outputs\flutter-apk\app.apk
AndroidManifest.xml
[  +14 ms] Exit code 0 from: C:\Users\darri\AppData\Local\Android\sdk\build-tools\29.0.3\aapt dump xmltree
C:\GitProjects\flutter_app_rc_configurations\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1d
A: android:compileSdkVersionCodename(0x01010573)="10" (Raw: "10")
A: package="com.myapp.flutterapprcconfigurations" (Raw: "com.myapp.flutterapprcconfigurations")
A: platformBuildVersionCode=(type 0x10)0x1d
A: platformBuildVersionName=(type 0x10)0xa
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x18
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1d
E: uses-permission (line=14)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: uses-permission (line=15)
A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE")
E: uses-permission (line=16)
A: android:name(0x01010003)="android.permission.WAKE_LOCK" (Raw: "android.permission.WAKE_LOCK")
E: uses-permission (line=17)
A: android:name(0x01010003)="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" (Raw:
"com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE")
E: uses-permission (line=18)
A: android:name(0x01010003)="com.google.android.c2dm.permission.RECEIVE" (Raw: "com.google.android.c2dm.permission.RECEIVE")
E: application (line=27)
A: android:label(0x01010001)="flutterapprcconfigurations" (Raw: "flutterapprcconfigurations")
A: android:icon(0x01010002)=@0x7f080000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
A: android:extractNativeLibs(0x010104ea)=(type 0x12)0x0
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: activity (line=34)
A: android:theme(0x01010000)=@0x7f0a0000
A: android:name(0x01010003)="com.myapp.flutterapprcconfigurations.MainActivity" (Raw: "com.myapp.flutterapprcconfigurations.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: intent-filter (line=41)
E: action (line=42)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=44)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: meta-data (line=51)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
E: service (line=55)
A: android:name(0x01010003)="com.google.firebase.components.ComponentDiscoveryService" (Raw: "com.google.firebase.components.ComponentDiscoveryService")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:directBootAware(0x01010505)=(type 0x12)0xffffffff
E: meta-data (line=59)
A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseAppRegistrar" (Raw:
"com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseAppRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=62)
A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.firebaseremoteconfig.FlutterFirebaseAppRegistrar" (Raw:
"com.google.firebase.components:io.flutter.plugins.firebase.firebaseremoteconfig.FlutterFirebaseAppRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=65)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar" (Raw:
"com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=68)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.remoteconfig.RemoteConfigRegistrar" (Raw:
"com.google.firebase.components:com.google.firebase.remoteconfig.RemoteConfigRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=71)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.iid.Registrar" (Raw:
"com.google.firebase.components:com.google.firebase.iid.Registrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=74)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.abt.component.AbtRegistrar" (Raw:
"com.google.firebase.components:com.google.firebase.abt.component.AbtRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: receiver (line=79)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementReceiver" (Raw: "com.google.android.gms.measurement.AppMeasurementReceiver")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0x0
E: receiver (line=84)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver" (Raw:
"com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver")
A: android:permission(0x01010006)="android.permission.INSTALL_PACKAGES" (Raw: "android.permission.INSTALL_PACKAGES")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: intent-filter (line=89)
E: action (line=90)
A: android:name(0x01010003)="com.android.vending.INSTALL_REFERRER" (Raw: "com.android.vending.INSTALL_REFERRER")
E: service (line=94)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementService" (Raw: "com.google.android.gms.measurement.AppMeasurementService")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0x0
E: service (line=98)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementJobService" (Raw: "com.google.android.gms.measurement.AppMeasurementJobService")
A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw: "android.permission.BIND_JOB_SERVICE")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0x0
E: receiver (line=104)
A: android:name(0x01010003)="com.google.firebase.iid.FirebaseInstanceIdReceiver" (Raw: "com.google.firebase.iid.FirebaseInstanceIdReceiver")
A: android:permission(0x01010006)="com.google.android.c2dm.permission.SEND" (Raw: "com.google.android.c2dm.permission.SEND")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: intent-filter (line=108)
E: action (line=109)
A: android:name(0x01010003)="com.google.android.c2dm.intent.RECEIVE" (Raw: "com.google.android.c2dm.intent.RECEIVE")
E: provider (line=113)
A: android:name(0x01010003)="com.google.firebase.provider.FirebaseInitProvider" (Raw: "com.google.firebase.provider.FirebaseInitProvider")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:authorities(0x01010018)="com.myapp.flutterapprcconfigurations.firebaseinitprovider" (Raw: "com.myapp.flutterapprcconfigurations.firebaseinitprovider")
A: android:initOrder(0x0101001a)=(type 0x10)0x64
E: activity (line=119)
A: android:theme(0x01010000)=@0x01030010
A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
E: meta-data (line=124)
A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version")
A: android:value(0x01010024)=@0x7f060000
[  +31 ms] executing: C:\Users\darri\AppData\Local\Android\sdk\platform-tools\adb.exe -s 8BPY11Q15 shell -x logcat -v time -t 1
[ +114 ms] Exit code 0 from: C:\Users\darri\AppData\Local\Android\sdk\platform-tools\adb.exe -s 8BPY11Q15 shell -x logcat -v time -t 1
[   +6 ms] --------- beginning of main
04-28 13:21:00.012 D/EventNotificationJob(30858): Running EventNotificationJob, isDetail=true
[  +17 ms] <- compile package:flutterapprcconfigurations/main_generic.dart
[  +29 ms] executing: C:\Users\darri\AppData\Local\Android\sdk\platform-tools\adb.exe version
[  +65 ms] Android Debug Bridge version 1.0.41
Version 30.0.0-6374843
Installed as C:\Users\darri\AppData\Local\Android\sdk\platform-tools\adb.exe
[   +8 ms] executing: C:\Users\darri\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[  +44 ms] Building APK
[  +19 ms] Running Gradle task 'assembleDebug'...
[   +3 ms] gradle.properties already sets android.enableR8
[   +5 ms] Using gradle from C:\GitProjects\flutter_app_rc_configurations\android\gradlew.bat.
[   +1 ms] C:\GitProjects\flutter_app_rc_configurations\android\gradlew.bat mode: 33279 rwxrwxrwx.
[   +8 ms] executing: C:\Program Files\android-studio\jre\bin\java -version
[  +89 ms] Exit code 0 from: C:\Program Files\android-studio\jre\bin\java -version
[   +3 ms] openjdk version "1.8.0_212-release"
OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
[   +4 ms] executing: [C:\GitProjects\flutter_app_rc_configurations\android/] C:\GitProjects\flutter_app_rc_configurations\android\gradlew.bat -Pverbose=true
-Ptarget-platform=android-arm64 -Ptarget=C:\GitProjects\flutter_app_rc_configurations\lib/main_generic.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root
-Pdart-defines=ENV=DEV assembleDebug
[+1116 ms] > Configure project :app
[  +10 ms] WARNING: The option 'android.enableR8' is deprecated and should not be used anymore.
[   +1 ms] It will be removed in a future version of the Android Gradle plugin, and will no longer allow you to disable R8.
[ +375 ms] > Task :app:compileFlutterBuildDebug UP-TO-DATE
[   +5 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[   +2 ms] > Task :app:preBuild UP-TO-DATE
[   +1 ms] > Task :app:preDebugBuild UP-TO-DATE
[   +4 ms] > Task :firebase_core:preBuild UP-TO-DATE
[   +4 ms] > Task :firebase_core:preDebugBuild UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:preBuild UP-TO-DATE
[  +14 ms] > Task :firebase_core_web:preDebugBuild UP-TO-DATE
[  +63 ms] > Task :firebase_core_web:compileDebugAidl NO-SOURCE
[   +4 ms] > Task :firebase_remote_config:preBuild UP-TO-DATE
[   +1 ms] > Task :firebase_remote_config:preDebugBuild UP-TO-DATE
[        ] > Task :firebase_core:packageDebugRenderscript NO-SOURCE
[        ] > Task :firebase_core_web:packageDebugRenderscript NO-SOURCE
[        ] > Task :firebase_remote_config:packageDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :firebase_core:compileDebugAidl NO-SOURCE
[   +3 ms] > Task :firebase_remote_config:compileDebugAidl NO-SOURCE
[   +1 ms] > Task :app:compileDebugAidl NO-SOURCE
[   +1 ms] > Task :app:cleanMergeDebugAssets
[   +8 ms] > Task :app:mergeDebugShaders UP-TO-DATE
[   +1 ms] > Task :app:compileDebugShaders UP-TO-DATE
[   +1 ms] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :firebase_core:mergeDebugShaders UP-TO-DATE
[        ] > Task :firebase_core:compileDebugShaders UP-TO-DATE
[        ] > Task :firebase_core:generateDebugAssets UP-TO-DATE
[        ] > Task :firebase_core:packageDebugAssets UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:mergeDebugShaders UP-TO-DATE
[   +8 ms] > Task :firebase_core_web:compileDebugShaders UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:generateDebugAssets UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:packageDebugAssets UP-TO-DATE
[        ] > Task :firebase_remote_config:mergeDebugShaders UP-TO-DATE
[        ] > Task :firebase_remote_config:compileDebugShaders UP-TO-DATE
[   +1 ms] > Task :firebase_remote_config:generateDebugAssets UP-TO-DATE
[   +1 ms] > Task :firebase_remote_config:packageDebugAssets UP-TO-DATE
[   +3 ms] > Task :app:mergeDebugAssets
[ +244 ms] > Task :app:copyFlutterAssetsDebug
[   +4 ms] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[   +1 ms] > Task :app:generateDebugResValues UP-TO-DATE
[   +1 ms] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :app:processDebugGoogleServices UP-TO-DATE
[        ] > Task :firebase_core:generateDebugResValues UP-TO-DATE
[        ] > Task :firebase_core:compileDebugRenderscript NO-SOURCE
[        ] > Task :firebase_core:generateDebugResources UP-TO-DATE
[   +3 ms] > Task :firebase_core:packageDebugResources UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:generateDebugResValues UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:compileDebugRenderscript NO-SOURCE
[   +1 ms] > Task :firebase_core_web:generateDebugResources UP-TO-DATE
[   +8 ms] > Task :firebase_core_web:packageDebugResources UP-TO-DATE
[   +1 ms] > Task :firebase_remote_config:generateDebugResValues UP-TO-DATE
[   +1 ms] > Task :firebase_remote_config:compileDebugRenderscript NO-SOURCE
[   +1 ms] > Task :firebase_remote_config:generateDebugResources UP-TO-DATE
[   +1 ms] > Task :firebase_remote_config:packageDebugResources UP-TO-DATE
[  +67 ms] > Task :app:mergeDebugResources UP-TO-DATE
[   +4 ms] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[   +1 ms] > Task :app:extractDeepLinksDebug UP-TO-DATE
[   +1 ms] > Task :firebase_core:extractDeepLinksDebug UP-TO-DATE
[   +1 ms] > Task :firebase_core:processDebugManifest UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:extractDeepLinksDebug UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:processDebugManifest UP-TO-DATE
[   +4 ms] > Task :firebase_remote_config:extractDeepLinksDebug UP-TO-DATE
[   +2 ms] > Task :firebase_remote_config:processDebugManifest UP-TO-DATE
[  +11 ms] > Task :app:processDebugManifest UP-TO-DATE
[   +1 ms] > Task :firebase_core:compileDebugLibraryResources UP-TO-DATE
[   +1 ms] > Task :firebase_core:parseDebugLocalResources UP-TO-DATE
[        ] > Task :firebase_core_web:parseDebugLocalResources UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:generateDebugRFile UP-TO-DATE
[  +10 ms] > Task :firebase_core:generateDebugRFile UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:compileDebugLibraryResources UP-TO-DATE
[   +1 ms] > Task :firebase_remote_config:compileDebugLibraryResources UP-TO-DATE
[   +1 ms] > Task :firebase_remote_config:parseDebugLocalResources UP-TO-DATE
[   +1 ms] > Task :firebase_remote_config:generateDebugRFile UP-TO-DATE
[   +1 ms] > Task :app:processDebugResources UP-TO-DATE
[   +4 ms] > Task :firebase_core:generateDebugBuildConfig UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:generateDebugBuildConfig UP-TO-DATE
[   +3 ms] > Task :firebase_core_web:javaPreCompileDebug UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:compileDebugJavaWithJavac UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:bundleLibCompileDebug UP-TO-DATE
[   +4 ms] > Task :firebase_core:javaPreCompileDebug UP-TO-DATE
[  +13 ms] > Task :firebase_core:compileDebugJavaWithJavac UP-TO-DATE
[   +1 ms] > Task :firebase_core:bundleLibCompileDebug UP-TO-DATE
[   +1 ms] > Task :firebase_remote_config:generateDebugBuildConfig UP-TO-DATE
[  +11 ms] > Task :firebase_remote_config:javaPreCompileDebug UP-TO-DATE
[   +6 ms] > Task :firebase_remote_config:compileDebugJavaWithJavac UP-TO-DATE
[   +4 ms] > Task :firebase_remote_config:bundleLibCompileDebug UP-TO-DATE
[   +1 ms] > Task :app:compileDebugKotlin UP-TO-DATE
[   +2 ms] > Task :app:javaPreCompileDebug UP-TO-DATE
[   +3 ms] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[   +4 ms] > Task :app:compileDebugSources UP-TO-DATE
[   +1 ms] > Task :app:processDebugJavaRes NO-SOURCE
[   +8 ms] > Task :firebase_core:processDebugJavaRes NO-SOURCE
[   +2 ms] > Task :firebase_core:bundleLibResDebug UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:processDebugJavaRes NO-SOURCE
[   +1 ms] > Task :firebase_core_web:bundleLibResDebug UP-TO-DATE
[   +2 ms] > Task :firebase_remote_config:processDebugJavaRes NO-SOURCE
[   +3 ms] > Task :firebase_remote_config:bundleLibResDebug UP-TO-DATE
[   +1 ms] > Task :app:mergeDebugJavaResource UP-TO-DATE
[   +2 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[   +1 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[   +1 ms] > Task :app:mergeExtDexDebug UP-TO-DATE
[        ] > Task :firebase_remote_config:bundleLibRuntimeDebug UP-TO-DATE
[  +12 ms] > Task :firebase_core_web:bundleLibRuntimeDebug UP-TO-DATE
[   +1 ms] > Task :firebase_core:bundleLibRuntimeDebug UP-TO-DATE
[   +2 ms] > Task :app:dexBuilderDebug UP-TO-DATE
[   +1 ms] > Task :app:mergeLibDexDebug UP-TO-DATE
[   +1 ms] > Task :app:mergeProjectDexDebug UP-TO-DATE
[   +1 ms] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[  +12 ms] > Task :firebase_core:mergeDebugJniLibFolders UP-TO-DATE
[   +1 ms] > Task :firebase_core:mergeDebugNativeLibs UP-TO-DATE
[   +2 ms] > Task :firebase_core:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :firebase_core:copyDebugJniLibsProjectOnly UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :firebase_core_web:mergeDebugNativeLibs UP-TO-DATE
[   +6 ms] > Task :firebase_core_web:stripDebugDebugSymbols UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:copyDebugJniLibsProjectOnly UP-TO-DATE
[   +2 ms] > Task :firebase_remote_config:mergeDebugJniLibFolders UP-TO-DATE
[   +3 ms] > Task :firebase_remote_config:mergeDebugNativeLibs UP-TO-DATE
[   +1 ms] > Task :firebase_remote_config:stripDebugDebugSymbols UP-TO-DATE
[   +4 ms] > Task :firebase_remote_config:copyDebugJniLibsProjectOnly UP-TO-DATE
[   +5 ms] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[   +3 ms] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[   +1 ms] WARNING: Compatible side by side NDK version was not found. Default is 20.0.5594570.
[   +1 ms] Compatible side by side NDK version was not found. Default is 20.0.5594570.
[   +1 ms] > Task :app:validateSigningDebug UP-TO-DATE
[   +8 ms] > Task :app:packageDebug UP-TO-DATE
[ +374 ms] > Task :app:assembleDebug
[   +9 ms] > Task :firebase_core:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE
[   +2 ms] > Task :firebase_core:extractDebugAnnotations UP-TO-DATE
[   +7 ms] > Task :firebase_core:mergeDebugGeneratedProguardFiles UP-TO-DATE
[   +1 ms] > Task :firebase_core:mergeDebugConsumerProguardFiles UP-TO-DATE
[   +8 ms] > Task :firebase_core:prepareLintJarForPublish UP-TO-DATE
[   +1 ms] > Task :firebase_core:mergeDebugJavaResource UP-TO-DATE
[   +1 ms] > Task :firebase_core:syncDebugLibJars UP-TO-DATE
[   +2 ms] > Task :firebase_core:bundleDebugAar UP-TO-DATE
[   +8 ms] > Task :firebase_core:compileDebugSources UP-TO-DATE
[   +1 ms] > Task :firebase_core:assembleDebug UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:extractDebugAnnotations UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:mergeDebugGeneratedProguardFiles UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:mergeDebugConsumerProguardFiles UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:prepareLintJarForPublish UP-TO-DATE
[   +4 ms] > Task :firebase_core_web:mergeDebugJavaResource UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:syncDebugLibJars UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:bundleDebugAar UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:compileDebugSources UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:assembleDebug UP-TO-DATE
[        ] > Task :firebase_remote_config:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE
[   +3 ms] > Task :firebase_remote_config:extractDebugAnnotations UP-TO-DATE
[   +1 ms] > Task :firebase_remote_config:mergeDebugGeneratedProguardFiles UP-TO-DATE
[   +2 ms] > Task :firebase_remote_config:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :firebase_remote_config:prepareLintJarForPublish UP-TO-DATE
[   +6 ms] > Task :firebase_remote_config:mergeDebugJavaResource UP-TO-DATE
[   +1 ms] > Task :firebase_remote_config:syncDebugLibJars UP-TO-DATE
[   +1 ms] > Task :firebase_remote_config:bundleDebugAar UP-TO-DATE
[        ] > Task :firebase_remote_config:compileDebugSources UP-TO-DATE
[        ] > Task :firebase_remote_config:assembleDebug UP-TO-DATE
[        ] BUILD SUCCESSFUL in 2s
[   +1 ms] 116 actionable tasks: 4 executed, 112 up-to-date
[ +381 ms] Running Gradle task 'assembleDebug'... (completed in 3.2s)
[  +99 ms] calculateSha: LocalDirectory: 'C:\GitProjects\flutter_app_rc_configurations\build\app\outputs\flutter-apk'/app.apk
[ +125 ms] calculateSha: reading file took 120us
[+1272 ms] calculateSha: computing sha took 1267us
[  +14 ms] √ Built build\app\outputs\flutter-apk\app-debug.apk.
[   +7 ms] executing: C:\Users\darri\AppData\Local\Android\sdk\build-tools\29.0.3\aapt dump xmltree C:\GitProjects\flutter_app_rc_configurations\build\app\outputs\flutter-apk\app.apk
AndroidManifest.xml
[  +49 ms] Exit code 0 from: C:\Users\darri\AppData\Local\Android\sdk\build-tools\29.0.3\aapt dump xmltree
C:\GitProjects\flutter_app_rc_configurations\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[   +7 ms] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1d
A: android:compileSdkVersionCodename(0x01010573)="10" (Raw: "10")
A: package="com.myapp.flutterapprcconfigurations" (Raw: "com.myapp.flutterapprcconfigurations")
A: platformBuildVersionCode=(type 0x10)0x1d
A: platformBuildVersionName=(type 0x10)0xa
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x18
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1d
E: uses-permission (line=14)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: uses-permission (line=15)
A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE")
E: uses-permission (line=16)
A: android:name(0x01010003)="android.permission.WAKE_LOCK" (Raw: "android.permission.WAKE_LOCK")
E: uses-permission (line=17)
A: android:name(0x01010003)="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" (Raw:
"com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE")
E: uses-permission (line=18)
A: android:name(0x01010003)="com.google.android.c2dm.permission.RECEIVE" (Raw: "com.google.android.c2dm.permission.RECEIVE")
E: application (line=27)
A: android:label(0x01010001)="flutterapprcconfigurations" (Raw: "flutterapprcconfigurations")
A: android:icon(0x01010002)=@0x7f080000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
A: android:extractNativeLibs(0x010104ea)=(type 0x12)0x0
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: activity (line=34)
A: android:theme(0x01010000)=@0x7f0a0000
A: android:name(0x01010003)="com.myapp.flutterapprcconfigurations.MainActivity" (Raw: "com.myapp.flutterapprcconfigurations.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: intent-filter (line=41)
E: action (line=42)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=44)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: meta-data (line=51)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
E: service (line=55)
A: android:name(0x01010003)="com.google.firebase.components.ComponentDiscoveryService" (Raw: "com.google.firebase.components.ComponentDiscoveryService")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:directBootAware(0x01010505)=(type 0x12)0xffffffff
E: meta-data (line=59)
A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseAppRegistrar" (Raw:
"com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseAppRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=62)
A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.firebaseremoteconfig.FlutterFirebaseAppRegistrar" (Raw:
"com.google.firebase.components:io.flutter.plugins.firebase.firebaseremoteconfig.FlutterFirebaseAppRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=65)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar" (Raw:
"com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=68)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.remoteconfig.RemoteConfigRegistrar" (Raw:
"com.google.firebase.components:com.google.firebase.remoteconfig.RemoteConfigRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=71)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.iid.Registrar" (Raw:
"com.google.firebase.components:com.google.firebase.iid.Registrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=74)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.abt.component.AbtRegistrar" (Raw:
"com.google.firebase.components:com.google.firebase.abt.component.AbtRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: receiver (line=79)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementReceiver" (Raw: "com.google.android.gms.measurement.AppMeasurementReceiver")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0x0
E: receiver (line=84)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver" (Raw:
"com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver")
A: android:permission(0x01010006)="android.permission.INSTALL_PACKAGES" (Raw: "android.permission.INSTALL_PACKAGES")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: intent-filter (line=89)
E: action (line=90)
A: android:name(0x01010003)="com.android.vending.INSTALL_REFERRER" (Raw: "com.android.vending.INSTALL_REFERRER")
E: service (line=94)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementService" (Raw: "com.google.android.gms.measurement.AppMeasurementService")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0x0
E: service (line=98)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementJobService" (Raw: "com.google.android.gms.measurement.AppMeasurementJobService")
A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw: "android.permission.BIND_JOB_SERVICE")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0x0
E: receiver (line=104)
A: android:name(0x01010003)="com.google.firebase.iid.FirebaseInstanceIdReceiver" (Raw: "com.google.firebase.iid.FirebaseInstanceIdReceiver")
A: android:permission(0x01010006)="com.google.android.c2dm.permission.SEND" (Raw: "com.google.android.c2dm.permission.SEND")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: intent-filter (line=108)
E: action (line=109)
A: android:name(0x01010003)="com.google.android.c2dm.intent.RECEIVE" (Raw: "com.google.android.c2dm.intent.RECEIVE")
E: provider (line=113)
A: android:name(0x01010003)="com.google.firebase.provider.FirebaseInitProvider" (Raw: "com.google.firebase.provider.FirebaseInitProvider")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:authorities(0x01010018)="com.myapp.flutterapprcconfigurations.firebaseinitprovider" (Raw: "com.myapp.flutterapprcconfigurations.firebaseinitprovider")
A: android:initOrder(0x0101001a)=(type 0x10)0x64
E: activity (line=119)
A: android:theme(0x01010000)=@0x01030010
A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
E: meta-data (line=124)
A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version")
A: android:value(0x01010024)=@0x7f060000
[  +54 ms] Stopping app 'app.apk' on Pixel 3 XL.
[   +8 ms] executing: C:\Users\darri\AppData\Local\Android\sdk\platform-tools\adb.exe -s 8BPY11Q15 shell am force-stop com.myapp.flutterapprcconfigurations
[ +134 ms] executing: C:\Users\darri\AppData\Local\Android\sdk\platform-tools\adb.exe -s 8BPY11Q15 shell pm list packages com.myapp.flutterapprcconfigurations
[ +117 ms] package:com.myapp.flutterapprcconfigurations
[   +8 ms] executing: C:\Users\darri\AppData\Local\Android\sdk\platform-tools\adb.exe -s 8BPY11Q15 shell cat /data/local/tmp/sky.com.myapp.flutterapprcconfigurations.sha1
[ +104 ms] f11a1f572f4f4ec6f9a9a8534e6cf88e368de52e
[   +7 ms] Latest build already installed.
[   +2 ms] Pixel 3 XL startApp
[   +6 ms] executing: C:\Users\darri\AppData\Local\Android\sdk\platform-tools\adb.exe -s 8BPY11Q15 shell am start -a android.intent.action.RUN -f 0x20000000 --ez
enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true
com.myapp.flutterapprcconfigurations/com.myapp.flutterapprcconfigurations.MainActivity
[ +133 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.myapp.flutterapprcconfigurations/.MainActivity (has extras) }
[   +6 ms] Waiting for observatory port to be available...
[ +530 ms] Observatory URL on device: http://127.0.0.1:42741/82x8j8CWy40=/
[  +10 ms] executing: C:\Users\darri\AppData\Local\Android\sdk\platform-tools\adb.exe -s 8BPY11Q15 forward tcp:0 tcp:42741
[  +51 ms] 61723
[   +5 ms] Forwarded host port 61723 to device port 42741 for Observatory
[  +26 ms] Connecting to service protocol: http://127.0.0.1:61723/82x8j8CWy40=/
[ +258 ms] I/flutter ( 3799): 2020-04-28T13:21:06.549388        I       Remote_Config_Tag:       Environment is: PROD
[  +58 ms] Successfully connected to service protocol: http://127.0.0.1:61723/82x8j8CWy40=/
[ +106 ms] DevFS: Creating new filesystem on the device (null)
[  +31 ms] DevFS: Created new filesystem on the device
(file:///data/user/0/com.myapp.flutterapprcconfigurations/code_cache/flutter_app_rc_configurationsRIRCGL/flutter_app_rc_configurations/)
[   +8 ms] Updating assets
[ +148 ms] Syncing files to device Pixel 3 XL...
[   +5 ms] Scanning asset files
[   +2 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +2 ms] <- recompile package:flutterapprcconfigurations/main_generic.dart 09c3d29c-9a3b-492c-ba43-314fc15767f3
[   +1 ms] <- 09c3d29c-9a3b-492c-ba43-314fc15767f3
[  +71 ms] Updating files
[ +111 ms] DevFS: Sync finished
[   +8 ms] Syncing files to device Pixel 3 XL... (completed in 198ms)
[   +3 ms] Synced 0.9MB.
[  +12 ms] <- accept
[   +6 ms] Connected to _flutterView/0x7eef0f9820.
[   +4 ms] Flutter run key commands.
[  +11 ms] r Hot reload.
[   +5 ms] R Hot restart.
[   +7 ms] h Repeat this help message.
[   +2 ms] d Detach (terminate "flutter run" but leave application running).
[   +2 ms] c Clear the screen
[   +2 ms] q Quit (terminate the application on the device).
[   +7 ms] An Observatory debugger and profiler on Pixel 3 XL is available at: http://127.0.0.1:61723/82x8j8CWy40=/
[  +19 ms] I/flutter ( 3799): 2020-04-28T13:21:07.161617        I       Remote_Config_Tag:       Data found. Welcome: Darrin
[  +11 ms] I/flutter ( 3799): 2020-04-28T13:21:07.212559        I       App_Config_Tag:  Environment: PROD
[

Here is a code snippet from what I was trying.
`void main() {
Fimber.plantTree(DebugTree());
WidgetsFlutterBinding.ensureInitialized();
final Future remote = setupRemoteConfig();
var env = String.fromEnvironment("ENV", defaultValue: "PROD");
rcLogger.i("Environment is: $env");
remote.then((rc) {
var configuredApp = new AppConfig(
flavorName: env,
licenseAgreementLink: rc.getString("HA_CONFIG_${env}LINK_LICENSE_AGREEMENT"),
privacyPolicyLink: rc.getString("HA_CONFIG${env}LINK_PRIVACY_POLICY"),
contactEmailLink: rc.getString("HA_CONFIG${env}LINK_CONTACT_EMAIL"),
changePasswordLink: rc.getString("HA_CONFIG${env}_LINK_CHANGE_PASSWORD"),
child: new MyApp(),
);
runApp(configuredApp);

});
}`

This should be a compilation error if a fromEnvironment constructor is used without const. Updating var env = String.fromEnvironment("ENV", defaultValue: "PROD"); to const env = String.fromEnvironment("ENV", defaultValue: "PROD"); should work

Trying now.....
BINGO!!!
That works!

I guess close this and open a defect on the compiler?
Thanks!

Glad to hear this is working for you - sorry for the trouble!

No problem at all. REALLY appreciate the fast turn around.
Should I file that compiler bug or are you going to do it?

Never mind....see the title change. Thanks!

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.15.4 19E287, locale en-VN)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
[✓] Android Studio (version 3.6)
[✓] Connected device (1 available)

@jonahwilliams On the stable channel, that does not work, right?

That's correct. It works on both beta and dev though.

fromEnvironment() returns a String, so why does this fail if you use:
const *String* env = String.fromEnvironment("ENV", defaultValue: "PROD");?
Occurs on Flutter macOS 1.17.2

Still valid on latest master channel.
Code
import 'package:flutter/material.dart';

void main() {
  runApp(TestApp());
}

class TestApp extends StatelessWidget {

  //final String env = const String.fromEnvironment('ENV', defaultValue: 'PROD');
  final String env = String.fromEnvironment('ENV', defaultValue: 'PROD');

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(child: Text("Environment: $env")),
      ),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel master, 1.25.0-5.0.pre.91, on Mac OS X 10.15.7 19H2 darwin-x64, locale en)
    • Flutter version 1.25.0-5.0.pre.91 at /Users/pedromassango/dev/SDKs/flutter_master
    • Framework revision 7dade22f25 (22 hours ago), 2020-12-06 21:34:04 +0530
    • Engine revision 6491c7518f
    • Dart version 2.12.0 (build 2.12.0-120.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.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_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.2.4)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 52.0.4
    • Dart plugin version 202.8070

[✓] VS Code (version 1.51.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (3 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • macOS (desktop)             • macos         • darwin-x64     • Mac OS X 10.15.7 19H2 darwin-x64
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 86.0.4240.198

• No issues found!
Process finished with exit code 0

ma 7.12.2020 klo 15.46 Pedro Massango notifications@github.com kirjoitti:

Still valid on latest master channel.
Code
import 'package:flutter/material.dart';
void main() {
runApp(TestApp());
}
class TestApp extends StatelessWidget {
//final String env = const String.fromEnvironment('ENV', defaultValue: 'PROD');
final String env = String.fromEnvironment('ENV', defaultValue: 'PROD');
@override
Widget build(BuildContext context) {
return MaterialApp(

  home: Scaffold(

    body: Center(child: Text("Environment: $env")),

  ),

);

}
}
flutter doctor -v
[✓] Flutter (Channel master, 1.25.0-5.0.pre.91, on Mac OS X 10.15.7 19H2 darwin-x64, locale en)
• Flutter version 1.25.0-5.0.pre.91 at /Users/pedromassango/dev/SDKs/flutter_master

• Framework revision 7dade22f25 (22 hours ago), 2020-12-06 21:34:04 +0530

• Engine revision 6491c7518f

• Dart version 2.12.0 (build 2.12.0-120.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/pedromassango/Library/Android/sdk

• Platform android-30, build-tools 30.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_242-release-1644-b3-6915495)

• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
• Xcode at /Applications/Xcode.app/Contents/Developer

• Xcode 12.1, Build version 12A7403

• CocoaPods version 1.9.3

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents

• Flutter plugin can be installed from:

  🔨 https://plugins.jetbrains.com/plugin/9212-flutter

• Dart plugin can be installed from:

  🔨 https://plugins.jetbrains.com/plugin/6351-dart

• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.2.4)
• IntelliJ at /Applications/IntelliJ IDEA CE.app

• Flutter plugin version 52.0.4

• Dart plugin version 202.8070

[✓] VS Code (version 1.51.1)
• VS Code at /Applications/Visual Studio Code.app/Contents

• Flutter extension version 3.16.0

[✓] Connected device (3 available)
• sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)

• macOS (desktop)             • macos         • darwin-x64     • Mac OS X 10.15.7 19H2 darwin-x64

• Chrome (web)                • chrome        • web-javascript • Google Chrome 86.0.4240.198

• No issues found!
Process finished with exit code 0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/55870#issuecomment-739926757,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQ4UBVIBLGCHUX77NKX3B2LSTTMDBANCNFSM4MS76UWA
.

This should be a compilation error if a fromEnvironment constructor is used without const. Updating var env = String.fromEnvironment("ENV", defaultValue: "PROD"); to const env = String.fromEnvironment("ENV", defaultValue: "PROD"); should work

@jonahwilliams , thank you so much!!!

This should be a compilation error if a fromEnvironment constructor is used without const. Updating var env = String.fromEnvironment("ENV", defaultValue: "PROD"); to const env = String.fromEnvironment("ENV", defaultValue: "PROD"); should work

@jonahwilliams , thank you so much!!!

are core feature like this should not be broken - please fix ...

This still does not work for me. This snippet
import 'dart:io';

void main() {
  const s = const String.fromEnvironment("PATH");
  final p = Platform.environment["PATH"];
  print("PATH String=$s");
  print("PATH Platform=$p");
}

Nothing for String but the correct Path value for Platform. I do however need the String version since I am working for web.

Yeah, if I use with final it does not work. It works with const for some reason

flutter doctor -v
[✓] Flutter (Channel master, 2.2.0-11.0.pre.215, on macOS 11.2.3 20D91 darwin-x64, locale en-AO)
    • Flutter version 2.2.0-11.0.pre.215 at /Users/pedromassango/Code/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5865c14d67 (2 hours ago), 2021-04-22 06:44:03 +0200
    • Engine revision 7e69744ede
    • Dart version 2.14.0 (build 2.14.0-18.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/pedromassango/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2021.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 55.1.5
    • Dart plugin version 211.6693.108

[✓] VS Code (version 1.55.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (4 available)
    • Redmi 5 Plus (mobile)      • 0258ff700005  • android-arm64  • Android 8.1.0 (API 27)
    • sdk gphone x86 64 (mobile) • emulator-5554 • android-x64    • Android 11 (API 30) (emulator)
    • macOS (desktop)            • macos         • darwin-x64     • macOS 11.2.3 20D91 darwin-x64
    • Chrome (web)               • chrome        • web-javascript • Google Chrome 89.0.4389.128

! Doctor found issues in 1 category.

At least have the compiler send a warning that a fromEnvironment() function needs to return to a const ....

Wow, are there any reasons it doesn't work with final but works with const? I doubt someone expected the semantics to change that much just because of the "final/const" usage. I mean, it's just the keyword, now I'm worried that the flutter app may misbehave if I miss const somewhere.:)

Tried to use describeEnum but it failed silently because it isn't constant ):
final String flavorString = String.fromEnvironment(describeEnum(AppConfigEnum.FLAVOR));

me after seeing this issue

While I agree silently failing like 2000s PHP is definitely undesirable, doesn't it make sense the variable to be const since the whole purpose of consts to be populated in compile time? I think devs should be aware of that.
My first suggestion is to fail on compile time while evaluating. Some community projects do this. I've seen it in loggy. When you define a custom LogLevel and set its level int to 0, VSCode alarms saying "The evaluation of const failed" or sth like that.
If that's not possible, my second suggestion is to set a new linter rule so the devs could easily see it.

has any update to this issue?

I have the same issue on Windows 10

Well for me the issue is that without the const constructor it outputs as a blank string. Since I am using a calculated value for the argument, it is kinda useless for me.

I think people are right to be frustrated that there's no error or warning when using these without const. There are good reasons why it doesn't work: in order to actually do the lookup at run time, the whole environment would need to be compiled into the app. But because it's not going to work, there should be a warning about it.
There's an issue for this in the Dart tracker: https://github.com/dart-lang/sdk/issues/42177. Hopefully the Dart team will be persuaded to make this usage a warning. That way it'll be easy to see you need to add const, and people won't keep having the frustrating debugging experiences that people in this thread have had.
If not, then I think the way forward will probably be to write a lint rule, which can accomplish much the same thing.
@muddi900: If you are actually intending to use String.fromEnvironment (or a similar constructor) in a non-constant way, then that is a feature request which is best filed as a separate issue.
@kmcminn: You've run into an unrelated issue, which is that the name String.fromEnvironment sounds like it has something to do with environment variables, and the documentation doesn't much clear that up. In reality String.fromEnvironment is for a completely separate notion of "environment", and as you found, Platform.environment is the way to get an environment variable. Clarifying that would belong as its own issue, on the Dart issue tracker.
For everyone: Before adding a comment, please read https://github.com/flutter/flutter/wiki/Issue-hygiene#do-not-add-me-too-or-same-or-is-there-an-update-comments-to-bugs .

String.fromEnvironment failing when not called with const is a bug and there's nothing anyone can say to convince me otherwise

any update on this ?

authors: DarkMikey DenisBarzanov GrizliK1988 Plegizplegiz RR-Reddy chimon2000 darrinps enzodanjour erayerdin felix-ht gerardsimons gnprice henry-hz jonahwilliams kyryloz leedsjb lukepighetti mhbdev muddi900 nateshmbhat pedromassangocode phamnhuvu-dev


text:
Add a controllable distance to the floating state of the SnackBar

The snackBar component is a very useful component, which I see in many Google applications. I found that Google's apps are a little higher than flutter's snackBar when they are in use. So I think when I use the snake bar, I can also have a position adjustment.
I tried to see the source code of snackBar, but I found that it could not simply implement my idea.
I have two expectations:

It can be the same as Google's app. I can control its distance from the bottom. (maybe just add a minimum parameter under "widget snapbar = safearea()").
It can be in the middle of the parent widget.

Hi @HeebeLee
Unless this feature is already implemented on latest master channel. Can you please elaborate on this proposal? It is not clear what you really want the SnackBar API to have.
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

source: gharchive/issue

authors: HeebeLee pedromassangocode

repo: flutter/flutter

license_type: permissive

license_source: github-api


text:
Flutter upgrade caused error with localization

I recently upgraded my flutter version to 1.17.5
after this I prepared release apk file and its not opening while it works fin when debug build is installed in device. Error logs are as below :
E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception:
    #0      PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:221)
    <asynchronous suspension>
    #1      AssetBundle.loadString (package:flutter/src/services/asset_bundle.dart:67)
    <asynchronous suspension>
    #2      DemoLocalizations.load (package:greenplayapp/utils/language/demo_localization.dart:23)
    <asynchronous suspension>
    #3      _loadAll.<anonymous closure> (package:flutter/src/widgets/localizations.dart)
    <asynchronous suspension>

Looks like the issue is releated to assets. Please See the documentation of DefaultAssetBundle: https://api.flutter.dev/flutter/widgets/DefaultAssetBundle-class.html

Looks like the issue is releated to assets. Please See the documentation of DefaultAssetBundle: https://api.flutter.dev/flutter/widgets/DefaultAssetBundle-class.html

Everything works fine in debug mode apk. Only issue is with release apk.

Looks like the issue is releated to assets. Please See the documentation of DefaultAssetBundle: https://api.flutter.dev/flutter/widgets/DefaultAssetBundle-class.html

Everything works fine in debug mode apk. Only issue is with release apk.

Did you try by cleaning cache?

Hi @shikha1992
does it persist when running after flutter clean, flutter pub get? could you provide a minimal reproducible project and your flutter doctor -v?

It was cache issue. It works okay. Works now


text:
[pigeon] improve documentation

I'm trying to convert an existing project to pigeon using a federated model and I'm find the documentation a little sparse.
https://pub.dev/packages?q=sounds
Googling pigeon and dart shows links like:
https://www.reddit.com/r/WTF/comments/86n6w2/so_a_pigeon_with_a_dart_in_the_head_just_landed/
:D
I've posted a question on stackoverflow but suspect that @gaaclarke  is the only authority on pigeon at the moment.
https://stackoverflow.com/questions/64037971/using-dart-pigeon-in-a-federated-model
It would be good to see documentation that directly speaks to the federated model.
The documentation mentions:
Api's should be defined as an abstract class with either HostApi() or FlutterApi() as metadata. The former being for procedures that are defined on the host platform and the latter for procedures that are defined in Dart.
However this statement leaves you guessing as to exactly what this are meant for.
I'm guessing that:
HostApi defines the set of calls the dart code makes into the platform specific code.
FlutterApi defines the set of calls the platform code can make back into the dart code.
(I now see that the api doco does provide more info on these but they are important enough that I think they should be documented on the readme).
It would be useful to see a discussion around migrating an existing channel based project to pigeon.
I note there is a PR for supporting async. This suggests that async calls are not currently supported.
It also suggests that more detailed documentation around calls into the platform needs to be created to explain what a sync vs async call into the platform should look like on both sides of the interface.
It may be a little early in the dev process but I would also like to see a section listing and discussing each of the generated files and their specific use.

Thanks for the good ideas.  I think the documentation can be improved, for sure.  If you want to see an example of using Pigeon with federated plugins, looking at video_player is the definitive example: https://github.com/flutter/plugins/tree/master/packages/video_player
As to the answers to some of your questions:

HostApi defines the set of calls the dart code makes into the platform specific code.
FlutterApi defines the set of calls the platform code can make back into the dart code.

That's correct.

It would be useful to see a discussion around migrating an existing channel based project to pigeon.

I don't have that.  I do have a working example from when I migrated video_player: https://github.com/flutter/plugins/commit/c65bdd07002bb154ae2d75588ad3fbfd7c800e2f#diff-1119d814fb92c6c6cff89707b50874ec

I note there is a PR for supporting async. This suggests that async calls are not currently supported.
It also suggests that more detailed documentation around calls into the platform needs to be created to explain what a sync vs async call into the platform should look like on both sides of the interface.

I'll try to elaborate in the README.  What I meant there is that implementors of the generated interface are expected to return synchronously, in contrast to platform channels which expect you to call a callback whenever you want.  There is currently a PR out for a external contributor that is implementing this.  There is a workaround now by just using a HostApi and FlutterApi and callback back and forth between them.

It may be a little early in the dev process but I would also like to see a section listing and discussing each of the generated files and their specific use.

I've limited the generate code to one source file per platform.  There is one .dart file for dart, one .m file for swift/objc (plus header), one .java file for java/kotlin.  I plan on sticking to that.  I've also tried to make the generated code readable.  We'd like to have docstrings eventually in the generated code as well.
Thanks again, hopefully my answers get you moving with the issues you are facing today.  If you discover something that is missing in the documentation please consider contributing back via PR.

Thanks for the prompt response.
The video player left me somewhat confused. It doesn't explicitly mentioned that its a federated model and then the IOS code and Android code are both in the main project which left me wondering what was going on.

I think it is important that the pigeon documentation talks directly to its role in a federated model.

To add on to this, it would be awesome to have an example of iOS/Android code using the @FlutterApi generated code. I haven't been able to find an example anywhere, and video_player only uses @HostApi

@Tywholland You can check out this example project that uses FlutterApi in the meantime: https://github.com/gaaclarke/GiantsA2A/blob/dc504e4acb8a5f08b53341ad9e9a7afc5cbf97ad/giants/pigeons/messages.dart#L35

Hi.
I made a simple sample app to get the communication status (e.g. wifi, mobile, lost) from  native  with FlutterApi.
Here's a link
https://github.com/glassmonkey/flutter_wifi

I think it is important that the pigeon documentation talks directly to its role in a federated model.

In particular, we should document (based on experience with video_player) that Pigeon should not be used in the interface package, only as an internal detail of per-package method channels, to avoid any Pigeon update being a potentially breaking change to the platform interface.

authors: Tywholland bsutton gaaclarke glassmonkey stuartmorgan


text:
Unable to set the js attributes defined in index.html from Flutter Code

Hello, So I am Implementing the RazorPay Payment Gateway in my Flutter Web Project. The Payment Gateway was implemented successfully. But my question is how we can set the Javascript attributes defined in the index.html file .

The above code is the small snippet of my updated index.html . And how can we set the key of the var options map from my flutter project.
Like suppose if I want to change the value of the amount, How can I pass it from my dart file to index.html .

My flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 1.21.0-9.0.pre, on Microsoft Windows [Version 10.0.17134.1304], locale en-IN)

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[√] Chrome - develop for the web
[√] Android Studio (version 4.0)
[√] IntelliJ IDEA Community Edition (version 2019.2)
[√] Connected device (3 available)

! Doctor found issues in 1 category.

index.html
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta content="IE=Edge" http-equiv="X-UA-Compatible">
  <meta name="description" content="A new Flutter project.">

  <meta name="viewport" content="width=device-width">
  <!-- iOS meta tags & icons -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="razorpay_payment_with_flutter">
  <link rel="apple-touch-icon" href="icons/Icon-192.png">

  <!-- Favicon -->
  <link rel="icon" type="image/png" href="favicon.png"/>

  <title>razorpay_payment_with_flutter</title>
  <link rel="manifest" href="manifest.json">
</head>
<body>
  <script src="https://checkout.razorpay.com/v1/checkout.js"></script>
  <script>

       var options = {
         "key": "my-api-key",
          "amount": "10000", "currency": "INR",
          "name": "Aniket Ambore",
          "description": "Just a flutter web project",
          "image": "https://i.ibb.co/BCwcPzN/Pngtree-flat-lay-home-office-concept-4341518.jpg",
          "handler": function (response){
             window.parent.postMessage("SUCCESS","*");      //2
             alert(response.razorpay_payment_id);
             alert(response.razorpay_order_id);
             alert(response.razorpay_signature)
          },
          "prefill": {
             "name": "",
             "email": "",
             "contact": ""
           },
           "notes": {
             "address": "Autofy"
          },
          "theme": {
             "color": "#DF0145"
          },
          "modal": {
            "ondismiss": function(){
               window.parent.postMessage("MODAL_CLOSED","*");   //3
            }
          }
       };

       var rzp1 = new Razorpay(options);
       window.onload = function(e){  //1
          rzp1.open();
          e.preventDefault();
       }

     </script>
  <!-- This script installs service_worker.js to provide PWA functionality to
       application. For more information, see:
       https://developers.google.com/web/fundamentals/primers/service-workers -->
  <script>
    if ('serviceWorker' in navigator) {
      window.addEventListener('load', function () {
        navigator.serviceWorker.register('flutter_service_worker.js');
      });
    }
  </script>
  <script src="main.dart.js" type="application/javascript"></script>
</body>
</html>

razorpay_web.dart
import 'package:flutter/material.dart';
import 'dart:html';
import 'dart:ui' as ui;
import 'ui_fake.dart' if (dart.library.html) 'dart:ui' as ui;

class RazorPayWeb extends StatelessWidget {
  @override
  Widget build(BuildContext context) {

    //register view factory
    ui.platformViewRegistry.registerViewFactory("rzp-html",(int viewId) {
      IFrameElement element=IFrameElement();
      //Event Listener
      window.onMessage.forEach((element) {
        print('---------------------------Event Received in callback: ${element.data}');
        if(element.data=='MODAL_CLOSED'){
          Navigator.pop(context);
        }else if(element.data=='SUCCESS'){
          print('PAYMENT SUCCESSFULL!!!!!!!');
        }
      });

    element.requestFullscreen();
    //element.src='assets/html/payment.html';
    element.style.border = 'none';
    return element;
  });

    return Scaffold(
        body: Builder(builder: (BuildContext context) {
          return Container(
            child: HtmlElementView(viewType: 'rzp-html'),
          );
        }));
  }
}

ui_fake.dart
import 'dart:ui' as ui;

// ignore: camel_case_types
class platformViewRegistry {
  static registerViewFactory(String viewId, dynamic cb) {
    ui.platformViewRegistry.registerViewFactory(viewId, cb);
  }
}

main.dart
import 'package:flutter/material.dart';
import 'package:razorpay_flutter/razorpay_flutter.dart';
import 'package:flutter/services.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:razorpay_payment_with_flutter/WebImplementation/razorpay_web.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
        // This makes the visual density adapt to the platform that you run
        // the app on. For desktop platforms, the controls will be smaller and
        // closer together (more dense) than on mobile platforms.
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: RazorPayWeb(),
    );
  }
}

Also The code does not deals with the razorpay_flutter plugin because it was not suitable for Flutter_Web .

Hi @aniketambore
It seems you are asking for assistance on personal code. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
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

Okay Fine

authors: TahaTesser aniketambore


text:
[tool_crash] when passing /? as positional argument to flutter create

Command
I think this is not a big issue
flutter create /?

Steps to Reproduce
As usually i do with other cli apps ,  gave flutter create  /? command  to see the parameters of new project creation and then , i think flutter accepted /? as project name and tried to create files/folders with that name, so this crash occured. Would be great if you fix it,
thanks
Logs
FileSystemException: Exists failed, OS Error: The filename, directory name, or volume label syntax is incorrect.
, errno = 123
#0      _Directory.existsSync (dart:io/directory_impl.dart:94:7)
#1      ForwardingFileSystemEntity.existsSync (package:file/src/forwarding/forwarding_file_system_entity.dart:45:33)
#2      ForwardingFileSystemEntity.existsSync (package:file/src/forwarding/forwarding_file_system_entity.dart:45:33)
#3      CreateCommand._getProjectType (package:flutter_tools/src/commands/create.dart:260:22)
#4      CreateCommand.runCommand (package:flutter_tools/src/commands/create.dart:359:41)
#5      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:860:18)
#6      _rootRunUnary (dart:async/zone.dart:1198:47)
#7      _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#8      _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#9      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#10     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#11     Future._completeWithValue (dart:async/future_impl.dart:529:5)
#12     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:567:7)
#13     _rootRun (dart:async/zone.dart:1190:13)
#14     _CustomZone.run (dart:async/zone.dart:1093:19)
#15     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#16     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
#17     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#18     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#19     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#20     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:404:11)
#21     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:428:5)
#22     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

[✓] Flutter (Channel stable, 1.20.4, on Microsoft Windows [Version 10.0.19041.630], locale en-US)
    • Flutter version 1.20.4 at D:\FLUTTER\flutter
    • Framework revision fba99f6cf9 (9 weeks ago), 2020-09-14 15:32:52 -0700
    • Engine revision d1bc06f032
    • Dart version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at D:\ANDROID_SDK
    • Platform android-29, build-tools 29.0.2
    • ANDROID_SDK_ROOT = D:\ANDROID_SDK
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[!] Android Studio
    • Android Studio at C:\Program Files\Android\Android Studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • android-studio-dir = C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

Flutter Application Metadata
No pubspec in working directory.

I actually added some work arounds to support -? as a help command, we could add support for /? easily enough. c.f. https://github.com/flutter/flutter/blob/ce318b7b539e228b806f81b3fa7b33793c2a2685/packages/flutter_tools/lib/executable.dart#L68
PRs welcome!

authors: jonahwilliams raminrahimzada


text:
Flutter doctor cannot detect android studio on ubuntu

I was installed android studio, but i couldn't detect it when i called flutter doctor. How i can fix that?

You should install the Flutter and Dart Plugin from the Configure option, and also update the PATH accordingly.
You can update the path by adding
export PATH="$PATH:/home/usr/Documents/development/flutter/bin"
in the .bashrc file which is located in the home folder as a hidden file, and from the looks of it you might also need to install the latest Java Development Kit, the link is already provided in the terminal.
If you still get the error, update or reinstall android studio.
Hope this helps!

You should install the Flutter and Dart Plugin from the Configure option, and also update the PATH accordingly.
You can update the path by adding
export PATH="$PATH:/home/usr/Documents/development/flutter/bin"
( you can change user to your path, also do check if you have properly installed the flutter SDK too)
in the .bashrc file which is located in the home folder as a hidden file, and from the looks of it you might also need to install the latest Java Development Kit, the link is already provided in the terminal.
If you still get the error, update or reinstall android studio.
Hope this helps!
I was reinstall it, but i still get the error

Hi @vando2108
Please follow the getting started guide in https://flutter.dev/docs/get-started/install/linux.
It seems you are asking for assistance. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
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


text:
Allow LUCI configs to depend on ios_signing on prod outside devicelab_machines

Flutter has build tests that require iOS provisioning profiles (bundling apps for distribution, then validating that the bundle was built correctly) that do not required attached devices.  Currently, the ios_signing dependency is only available on devicelab_machines.  Make that dependency available to non-devicelab_machines so these tests can run in prod and don't take up scarce devicelab resources.
See https://github.com/flutter/infra/pull/288#discussion_r539835815

This may not be possible as we can not provision certificates to the chromium provided machines.
Going forward we will provide a ios_signing capability to the bot that support signing and have the correct cerficates.

authors: godofredoc jmagman


text:
Shared preferences error

I get an error like this in the project structure part:
Library Dart Packages has broken classes path:   C:\src\flutter.pub-cache\hosted\pub.dartlang.org\shared_preferences_macos-2.0.0\lib [Fix]

I get a similar one for connectivity package. I'm using Linux.

I get a similar one for connectivity package. I'm using Linux.

same on windows

@regenin @tirth-stasis
can you provide your flutter doctor -v, your flutter run -d <some_platform> -v and a minimal reproducible code sample

@regenin @tirth-stasis
can you provide your flutter doctor -v, your flutter run -d <some_platform> -v and a minimal reproducible code sample

I ran into errors with red color like this how can I solve it?
[  +22 ms] Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
[   +5 ms]
#0      FlutterCommand.validateCommand (package:flutter_tools/src/runner/flutter_command.dart:1274:11)
#1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:437:19)
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1114:11)

#3      FlutterCommand.run.
(package:flutter_tools/src/runner/flutter_command.dart:1009:27)

#4      AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#5      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)

#6      CommandRunner.runCommand (package:args/command_runner.dart:197:13)

#7      FlutterCommandRunner.runCommand.
(package:flutter_tools/src/runner/flutter_command_runner.dart:278:9)

#8      AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#9      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)

#10     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:234:5)

#11     run.. (package:flutter_tools/runner.dart:64:9)

#12     run. (package:flutter_tools/runner.dart:62:12)

#13     AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#14     AppContext.run (package:flutter_tools/src/base/context.dart:149:12)

#15     runInContext (package:flutter_tools/src/context_runner.dart:73:10)

#16     main (package:flutter_tools/executable.dart:90:3)

Hi @regenin
Can you please provide your flutter doctor -v, a complete reproducible minimal code sample, and your flutter run --verbose running the minimal code sample?
Thank you

Hi @regenin
Can you please provide your flutter doctor -v, a complete reproducible minimal code sample, and your flutter run --verbose running the minimal code sample?
Thank you

Sorry i was busy.
[√] Flutter (Channel stable, 2.0.4, on Microsoft Windows [Version 10.0.19042.867], locale tr-TR)
• Flutter version 2.0.4 at C:\src\flutter
• Framework revision b1395592de (7 days ago), 2021-04-01 14:25:01 -0700
• Engine revision 2dce47073a
• Dart version 2.12.2
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\beynov\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 4.1.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.54.1)
• VS Code at C:\Users\beynov\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.20.0
[√] Connected device (2 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.114
• Edge (web)   • edge   • web-javascript • Microsoft Edge 89.0.774.68
• No issues found!
C:\Users\beynov>flutter run --verbose
[  +85 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +66 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] b1395592de68cc8ac4522094ae59956dd21a91db
[   +1 ms] executing: [C:\src\flutter/] git tag --points-at b1395592de68cc8ac4522094ae59956dd21a91db
[  +44 ms] Exit code 0 from: git tag --points-at b1395592de68cc8ac4522094ae59956dd21a91db
[   +1 ms] 2.0.4
[  +47 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +34 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\src\flutter/] git ls-remote --get-url origin
[  +28 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter.git
[  +66 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD
[  +33 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] stable
[  +68 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[  +10 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +66 ms] executing: C:\Users\beynov\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +48 ms] List of devices attached
[   +7 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +41 ms] "flutter run" took 212ms.
[  +22 ms] Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
[   +6 ms]
#0      FlutterCommand.validateCommand (package:flutter_tools/src/runner/flutter_command.dart:1274:11)
#1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:437:19)
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1114:11)

#3      FlutterCommand.run.
(package:flutter_tools/src/runner/flutter_command.dart:1009:27)

#4      AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#5      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)

#6      CommandRunner.runCommand (package:args/command_runner.dart:197:13)

#7      FlutterCommandRunner.runCommand.
(package:flutter_tools/src/runner/flutter_command_runner.dart:278:9)

#8      AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#9      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)

#10     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:234:5)

#11     run.. (package:flutter_tools/runner.dart:64:9)

#12     run. (package:flutter_tools/runner.dart:62:12)

#13     AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#14     AppContext.run (package:flutter_tools/src/base/context.dart:149:12)

#15     runInContext (package:flutter_tools/src/context_runner.dart:73:10)

#16     main (package:flutter_tools/executable.dart:90:3)

[ +270 ms] ensureAnalyticsSent: 262ms
[   +5 ms] Running shutdown hooks
[   +1 ms] Shutdown hooks complete
[   +1 ms] exiting with code 1

Hi @regenin
Looks like you're not executing flutter run -v in a project, it should be executed from the root of your project, in this case using a minimal code sample in a project that reproduces the issue
Can you please provide a complete reproducible minimal code sample, and your flutter run --verbose running the minimal code sample?
Thank you

Hi @regenin
Looks like you're not executing flutter run -v in a project, it should be executed from the root of your project, in this case using a minimal code sample in a project that reproduces the issue
Can you please provide a complete reproducible minimal code sample, and your flutter run --verbose running the minimal code sample?
Thank you

i created it inside the project but the result is exactly the same, only the emulator looks

@regenin

[  +41 ms] "flutter run" took 212ms.
[  +22 ms] Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
[   +6 ms]

The error says you're not executing the command from the project, Can you make sure you're in the root of your project using pwd
For example
PS C:\Users\Taha\AndroidStudioProjects\master_flutter> pwd

Path
----
C:\Users\Taha\AndroidStudioProjects\master_flutter

PS C:\Users\Taha\AndroidStudioProjects\master_flutter>

Can you please provide a complete reproducible minimal code sample, and your flutter run --verbose running the minimal code sample?
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

authors: TahaTesser iapicca pedromassangocode regenin tirth-stasis


text:
Missing, tools after upgrade Flutter 2.2.1 .

Android Studio 4.2.1 on Macbook Pro. Latest stable Flutter version. If I create a Flutter project It missing Database inspector, profiler, emulator window, AVD manager under View -> Tools Windows. And also Device File explorer is gone and I can't search my database adb file. Flutter doctor gives no error. Everything worked fine until the upgrade to flutter 2.2.1. how can I get those tools back?
please find attachment for more reference.
Thank you.

Hi @DabPb
This is not an issue with Flutter itself,  still tested I can see the those tools

Following the indication of jetbrains' Flutter plugin, the correct way to address the problem is to open an issue in the dedicated repository.
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: DabPb TahaTesser


text:
flutter test --name not accepting lookahead syntax due to SETLOCAL ENABLEDELAYEDEXPANSION in batch entrypoint

Hi, I was just trying to ignore some of my golden tests, whose name starts by Golden and decided to use this:
flutter test --name "^(?!Golden).+"

What I receive from the CLI is this instead: Couldn't parse --name "[(?Golden).+]": Invalid group(?Golden).+
Note that the ! from the lookahead is gone.
I've tried to review the code but I can't see any kind of sanitizer process. I've also seen that you're using the args package and I did a quick test of that library without success. It works as expected. So there may be another place where this substitution of the ! is taking place.
Maybe I'm missing something obvious. If you could point me in the right direction I would create a PR in order to fix this.

HI @robertohuertasm
Looking at the source, all names parameters are taken as it  and sent to test_core
This capturing all the names into testArgs llist source
      for (final String name in names)
        ...<String>['--name', name],

Which then feeds into testWrappaer  without modifying any  source
      await testWrapper.main(testArgs);

testWrapper's main simply feeds into test_core source
I am not sure test_coreis suppose to be looking for lookahead or Flutter tools itself
In either case, this doesn't seem to be supported

Hi @TahaTesser, yes I followed the code exactly like you mention.
My understading is that in the end, at least for what it looks from these lines of code what the test_core runner is doing is this:
if (!suite.config.patterns.every((pattern) => test.name.contains(pattern))) {
    return false;
}

In Dart, lookaheads are supported so if the pattern arrives intact here, when calling to .contains, it should work right away... That's why I thought all this was just some piece of code sanitizing the string at some point.

@robertohuertasm
That's excellent, I haven't looked into test_core as mentioned. If the Flutter cleaning this and leaving something out,  it would be a bug than a new feature.

This comes from Dart, the exclamation mark ! is removed, as shown in the minimal test case:
Test.dart
void main(List<String> args) {
  print('args: $args');
}

Result
>dart test.dart "^(?!Golden).+"
args: [(?Golden).+]

This is an issue with the various .bat scripts we have which are setting SETLOCAL ENABLEDELAYEDEXPANSION which will swallow unescaped !s and ^s. We should avoid setting this, if possible, to prevent this sort of unexpected behavior.
cc @jonahwilliams @christopherfujino

hmm, I wonder why we set that in the first place 🤔
This is from before my time

We can't actually stop using SETLOCAL ENABLEDELAYEDEXPANSION

In this case, ^ and ! can be used by preceding them with ^, something like
"^^(?^!Golden).+"

Hi, I am having the same issue https://github.com/dart-lang/sdk/issues/54191 (that's a dart report, but the cause seems to be here). Is there any updates after two years? Thanks

FYI @christopherfujino

I think the "fix" here would be to port this script to powershell. we could leave the flutter.bat file, which would trivially just be:
Powershell.exe -File flutter.ps1 %*

This would still leave cmd users with this bug, but at least they would have the option to invoke it via powershell.

This seems related, the previous bug was around properly escaping the & character on windows for a dart define. I didn't know powershell would help solve this though, good to know

I'm wrestling with something very similar now, see https://github.com/Dart-Code/Dart-Code/issues/5322 / https://github.com/dart-lang/sdk/issues/59604. In this case the command is being run by the IDE (or debug adapter) though, using Process.start(), which has to spawn a shell and therefore requires us to escape correctly. However, the use of %* seems to require another level of escaping that I think belongs inside the .bat file, but I've failed to make work (see https://github.com/dart-lang/sdk/issues/59604#issuecomment-2500455274).
I feel like it would be better if we (at least the IDE/debug adapter) could bypass the shell script entirely so there's no argument escaping to go wrong. For example if flutter.bat compiled a native executable (instead of just the Dart snapshot), or provided a supported way to invoke the snapshot via dart.exe directly, I think that would solve these issues from the IDE/debug adapters perspective.

authors: DanTup TahaTesser asashour bkonyi christopherfujino fzyzcjy jonahwilliams robertohuertasm


text:
Include Huawei's App Gallery

Since the code is more or less the same as Google's api

Sorry. i thought this was an independent developer's library. didnt realize it's from flutter devs


text:
[ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: type 'Null' is not a subtype of type 'String' of 'other'

i have a method,
  static Future<String> getenerateMD5(String data) async {
    var content = await Utf8Encoder().convert(data);
    var digest = await md5.convert(content);
    String result = await hex.encode(digest.bytes);
    return result;
  }

When I use it,
String authKey = await EncryptionTool.getenerateMD5("gnestKey");
it throws an exception:
[ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: type 'Null' is not a subtype of type 'String' of 'other'
Even after I use it like this:
String? authKey = await EncryptionTool.getenerateMD5("gnestKey");
I still get the error.

Hi @SeaZhang, thanks for filing the issue.
Can you please provide your flutter doctor -v and flutter run --verbose logs, and a minimal complete reproducible code sample?
Thank you

sorry, it's my problem,method getenerateMD5(key)  param: key is null

authors: SeaZhang danagbemava-nc


text:
Image picker when using multiple pictures, you can add the parameters to specify the maximum number of pictures can be selected。

Use case

Proposal

Hi @carson2440, can you please provide more information on the issue you have with image picker plugin? Also,
can you please provide your flutter doctor -v and a minimal complete reproducible code sample?
Thank you

i want to select six or another number of images at most，don't find the api to support;
my code :
//i want to select six images at most，don't find api
ImagePicker picker = new ImagePicker();
List? files = await picker.pickMultiImage(maxWidth: 720, maxHeight: 720);
files!.forEach((element) {
_photoPath = element.path;
_imageAddWaterMask(element.path);
});
can you support this api:      List? files = await picker.pickMultiImage(maxImages:6, maxWidth: 720, maxHeight: 720);  the number of images can be selected is maxImages = 6

Hi @carson2440, image_picker does not provide an api to limit the number of images nor it is possible to implement on android due to some limitations please see this comment for more details

authors: carson2440 maheshmnj mamuseferha


text:
Merge bot never landed a pull request

It seems like the bot stuck in landing the https://github.com/flutter/flutter/pull/95757.
The https://github.com/flutter/flutter/labels/waiting for tree to go green label was applied 20 days ago, and since then, the bot didn't say anything, until there appeared a merge conflict, after which it said it couldn't land it.
cc @godofredoc

This is a known issue where GraphQL is not scaling to our needs. We are working on a new version of the bot and it will be ready by mid April.

\cc @keyonghan @CaseyHillers

Duplicate of https://github.com/flutter/flutter/issues/96836#issuecomment-1029251155

authors: CaseyHillers godofredoc nt4f04uNd


text:
Always finish the timeline event logged by Element.inflateWidget

Fixes https://github.com/flutter/flutter/issues/101379

Added a test

source: gharchive/pull-request


text:
PaginatedDataTable loading indicator compliance with Material Specification

This PR change the loading indicator of the paginated data table with a linear progress indicator like describe in the ticket (https://github.com/flutter/flutter/issues/102861)
List which issues are fixed by this PR. You must list at least one issue.
https://github.com/flutter/flutter/issues/102861
Pre-launch Checklist

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
[x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
[x] I signed the [CLA].
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is [test-exempt].
[x] All existing and new tests are passing.

Hi @goderbauer,
just need some attention to continue the process !  I think this is a good addition to comply with Material Specification

I also found this sentence in material design.

A progress indicator can be used with sorting or pagination. Two cursors are displayed for demonstration purposes.

with a picture display linear progress indicator

I think this pr matches material design better than the circular indicator

@wer-mathurin Thanks for your contribution! Do you have the time and interest to address @chunhtai's review comments above? It's perfectly fine if you don't, we can mark the issue as having an incomplete PR and eventually someone else will take it over.

@Hixie
I will look into that.

authors: Hixie chunhtai wer-mathurin


text:
[flutter_tool] partial null safety migration of tool source code

Migrates all lib/ code to null safety for the flutter tool. This requires ignoring a warning on the import of package:dwds, which is not null safe yet.
Additionally tests were not migrated, because dart migrate was having problems with them. We may need a more incremental approach there.
https://github.com/flutter/flutter/issues/71511

of course removing the meta dep breaks g3