fixStatusBarOniOS16AndBelow function
Implementation
void fixStatusBarOniOS16AndBelow(BuildContext context) {
if (!isiOS) {
return;
}
final brightness = Theme.of(context).brightness;
if (_lastBrightness != brightness) {
_lastBrightness = brightness;
SystemChrome.setSystemUIOverlayStyle(
SystemUiOverlayStyle(
statusBarBrightness: brightness,
systemStatusBarContrastEnforced: true,
),
);
}
}