flutterflutter-layoutcupertino-widgets

Will Cupertino widgets works on android


I have an issue where I need to use tab navigation. The current material scaffold only has 1 stack. So, if I need to go several levels deep (child pages), then I lose the tab context. The Cupertino scaffold allows me to go several levels deep but still maintain the root tabs.

If I change to the Cupertino scaffold, would I need to write two sets of code? Cupertino for iOS and Material for Android or is it converted to Flutter native code?


Solution

  • No. you don't need to write twice. Cupertino widgets works completely fine on android.