How to enable and disable a full-screen mode in the check box. I think this is the use if and else statement. I will share my code.
onChanged: (val) {
setState(() {
thu = val!;
SystemChrome.setEnabledSystemUIMode(
SystemUiMode.manual,
overlays: [SystemUiOverlay.bottom],
);
});
}),