Describe the bug
I have three simple buttons to toggle between the various theme modes. But it seems only setLight and setDark methods work. setSystem method instead of setting to the device theme sets the theme to light even when the device is in dark mode.
Describe the bug I have three simple buttons to toggle between the various theme modes. But it seems only setLight and setDark methods work. setSystem method instead of setting to the device theme sets the theme to light even when the device is in dark mode.
To Reproduce Code to reproduce the behavior:
Container( child: Column( children: [ // light theme FlatButton( onPressed: () { AdaptiveTheme.of(context).setLight(); }, child: Text('Set light')),
)
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.