Revert "Rename everything filcnaplo-related to refilc"
This reverts commit d1a9625d93.
This commit is contained in:
15
filcnaplo_mobile_ui/lib/common/system_chrome.dart
Executable file
15
filcnaplo_mobile_ui/lib/common/system_chrome.dart
Executable file
@@ -0,0 +1,15 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
void setSystemChrome(BuildContext context) {
|
||||
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [SystemUiOverlay.top, SystemUiOverlay.bottom]);
|
||||
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
|
||||
statusBarColor: Colors.transparent,
|
||||
statusBarIconBrightness: Theme.of(context).brightness == Brightness.light ? Brightness.dark : Brightness.light,
|
||||
systemNavigationBarColor: Theme.of(context).bottomNavigationBarTheme.backgroundColor,
|
||||
systemNavigationBarIconBrightness: Theme.of(context).brightness == Brightness.light ? Brightness.dark : Brightness.light,
|
||||
statusBarBrightness: Platform.isIOS ? Theme.of(context).brightness : null,
|
||||
));
|
||||
}
|
||||
Reference in New Issue
Block a user