Closed MxD-js closed 1 year ago
Fixed it.
commented all this code out from the example docs.
// final cupertinoDarkTheme = MaterialBasedCupertinoThemeData(
// materialTheme: darkTheme.copyWith(
// appBarTheme:
// const AppBarTheme(iconTheme: IconThemeData(color: Colors.white)),
// cupertinoOverrideTheme: CupertinoThemeData(
// brightness: Brightness.dark,
// barBackgroundColor: darkDefaultCupertinoTheme.barBackgroundColor,
// textTheme: CupertinoTextThemeData(
// navActionTextStyle: darkDefaultCupertinoTheme
// .textTheme.navActionTextStyle
// .copyWith(color: darkTheme.primaryColor),
// navLargeTitleTextStyle: darkDefaultCupertinoTheme
// .textTheme.navLargeTitleTextStyle
// .copyWith(color: const Color(0xF0F9F9F9)),
// ),
// ),
// colorScheme: ColorScheme.fromSwatch().copyWith(secondary: Colors.white),
// ),
// );
and simply using
const darkDefaultCupertinoTheme =
CupertinoThemeData(brightness: Brightness.dark);
as the dark theme for cupertino.
Hi,
I've looked through the Wiki and open/closed issues and cannot find an answer.
In light mode, I see the back button, works as expected.
However in dark mode, the back button is the same color as the background, if you tap it the page pops off the stack as expected.
If I set the barBackgroundColor color to Colors.white, the back button shows up.
Question is how can I change the color to the back button? I've tried adding primaryColor to the ThemeData but no dice. Same result.
I copied the dark/light mode code from the Wiki.