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.59k stars 173 forks source link

PlatformTextField createCupertinoWidget fails to compile #449

Closed les-larsj closed 10 months ago

les-larsj commented 10 months ago

Hi,

Apologies in advance if I am erroneously posting this or have posted it in the wrong place as this is the first time I have had a problem with your incredibly useful package.

The issue is the PlatformTextField code for createCupertinoWidget which won't build for iOS on my 2017 iMac running MacOS 13.6.3 using Xcode 15.2, Flutter 3.16.8 and Dart 3.2.5

It gives the following error and I can't find this on Stackoverflow or in the Issues open or closed in your github.

Failed to build iOS app
Error (Xcode): ../../../.pub-cache/hosted/pub.dev/flutter_platform_widgets-3.3.5/lib/src/platform_text_field.dart:578:30: Error: The argument type 'bool?' can't be assigned to the parameter type 'bool' because 'bool?' is nullable and 'bool' isn't.

Could not build the application for the simulator.
Error launching application on iPhone 13 Pro Max.

If you need anything else from me please ask.

Kind Regards

Les

aqwert commented 10 months ago

You are on a very old version of the package. Please upgrade to the latest version

les-larsj commented 10 months ago

Will do, many thanks and apologies for any inconvenience I may have caused.

les-larsj commented 10 months ago

Many thanks Lance, have upgraded and all good. Apologies for any inconvenience caused.

Les

On Wed, 24 Jan 2024 at 09:14, Lance Johnstone @.***> wrote:

You are on a very old version of the package. Please upgrade to the latest version https://pub.dev/packages/flutter_platform_widgets/install

— Reply to this email directly, view it on GitHub https://github.com/stryder-dev/flutter_platform_widgets/issues/449#issuecomment-1907703059, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJZZKLXO5MXZQO376TKODDYQDGFVAVCNFSM6AAAAABCHD34ESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBXG4YDGMBVHE . You are receiving this because you authored the thread.Message ID: @.***>