stryder-dev / flutter_platform_widgets

Target the specific design of Material for Android and Cupertino for iOS widgets through a common set of Platform aware widgets
MIT License
1.57k stars 171 forks source link

Bug: Compiling android version - argument type 'bool?' can't be assigned to the parameter type 'bool' #440

Closed typexy closed 9 months ago

typexy commented 9 months ago

used version is the latest one - 5.0.0

I do receive "argument type 'bool?' can't be assigned to the parameter type 'bool'"


"Install Android SDK Platform 34 (revision: 2)" finished.
../../.pub-cache/hosted/pub.dev/flutter_platform_widgets-5.0.0/lib/src/platform_text_field.dart:583:30: Error: The argument type 'bool?' can't be assigned to the parameter type 'bool' because 'bool?' is nullable and 'bool' isn't.
      enabled: data?.enabled ?? enabled,
                             ^
Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

* Where:
Script '/Users/builder/programs/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 1350

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command '/Users/builder/programs/flutter/bin/flutter'' finished with non-zero exit value 1

What could be the issue?

akshay-v9 commented 9 months ago

Please help with this asap

vadrian89 commented 9 months ago

Hello, surprisingly, I have this error on codemagic but not on any of my local machines (neither Linux/Android, or macOS/iOS). Happening with Flutter 3.13.8

vadrian89 commented 9 months ago

What Flutter version are you using? Codemagic seems to be installing 3.16, so most likely, that's why my build fails. I am using 3.13.8 on my local machines and don't have this issue. Run a flutter doctor -v and post it here.

Abouassi98 commented 9 months ago

I have faced the same issue. My Flutter SDK is 3.16.0

Aulig commented 9 months ago

grafik

Of course I'm also looking forward to Flutter 3.16 support, but problems are to be expected when it is not officially supported.

aqwert commented 9 months ago

Version 6.0.1 is published with this fix and support for Flutter 3.16