This repository has been archived on 2024-10-18. You can view files and clone it, but cannot push or open issues or pull requests.
ftc_patient_app/lib/utilities/custom_ui_over_lay.dart

32 lines
923 B
Dart

import 'package:flutter/services.dart';
import 'package:ftc_mobile_app/ftc_mobile_app.dart';
class CustomUIOverLay {
CustomUIOverLay._();
static Future<void> initialize() async {
_appStatusBarNavBarTheme();
_setSystemOrientation();
}
static void _appStatusBarNavBarTheme() {
SystemChrome.setSystemUIOverlayStyle(
const SystemUiOverlayStyle(
systemNavigationBarColor: CustomAppColors.kTransparentColor,
systemNavigationBarDividerColor: CustomAppColors.kPrimaryColor,
systemNavigationBarIconBrightness: Brightness.dark,
statusBarIconBrightness: Brightness.dark,
statusBarBrightness: Brightness.light,
statusBarColor: CustomAppColors.kTransparentColor,
),
);
}
static void _setSystemOrientation() {
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
// DeviceOrientation.portraitDown,
]);
}
}