I want to change color of status bar using AnnotatedRegion, I got the below code from this answer but it is having no effect on status bar color.
AnnotatedRegion<SystemUiOverlayStyle>(
      value: SystemUiOverlayStyle.light.copyWith(statusBarColor: Colors.white),
      child: Scaffold(
        appBar: AppBar(
          title: Text('Annotated Region'),
        ),
        body: Center(
          child:
              Text('Status Bar!'),
        ),
      ),
    )
To quickly get started with this code, you can use this Github repository.