'Flutter MaterialBasedCupertinoThemeData usage

I create a simple MaterialTheme for both light and dark and then try and use MaterialBasedCupertinoThemeData to create a derived CupertinoThemeData from that. What I find however when I switch to dark mode on IOS the system still displays the AppBar background colour in white, the light theme seems to convert correctly. My question is, is there any reliable way to covert a materialtheme to a cupertinotheme or does everything need to be done manually and 4 themes need to be created to in order to support Android and IOS ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source