Trace: • Using darkmode
If you want to build a different widget tree in dark mode, just do following:
screenBuilder: (context, screen) => Container( decoration: BoxDecoration( image: DecorationImage( fit: BoxFit.fill, image: AssetImage( Theme.of(context).brightness == Brightness.light ? 'assets/images/background.png' : 'assets/images/background_dark.png', ), ), ),