The app has a black problem at the top and bottom of the screen, how can I solve this problem?enter image description here
I tried this codes
SystemChrome.setSystemUIOverlayStyle(
const SystemUiOverlayStyle(statusBarColor: Colors.transparent));
This code didn't work
3
Answers
I suggest to provide code for better understanding of problem.
Looks like container or image is fit to width and centered.
try to fit image
or if its container, use ‘expanded’ to fill container to screen
you can check this issue page
https://github.com/flutter/flutter/issues/65632#issuecomment-714535817
in this issue page said, this method needs future delay,
please try under these codes.