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

How to work with GetX library together? #448

Closed wzhou-grid closed 7 months ago

wzhou-grid commented 8 months ago

Could anyone demo how to set up the flutter_platform_widgets along with GetX? Thanks.

aqwert commented 7 months ago

Unfortunately the issue with GetX is that it used a MaterialApp under the hood and is very opinionated package. You might be able to get it to work by just using PlatformProvider and just individual widgets on each page but for iOS the behaviour might be off if it does not use the CupertinoApp under the hood. I suggest asking the question on that repo or if someone else has dealt with this