StatusBarUtils class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getBlackStatusBarStyle(
[bool isDark = false]) → SystemUiOverlayStyle - 获取黑色字体状态栏样式配置,通过AnnotatedRegion使用 针对未使用baseAppBar的页面
-
getStatusBarStyle(
{bool isDark = false, Brightness brightness = Brightness.light}) → SystemUiOverlayStyle - 获取状态栏样式配置(安卓iOS通用),在baseAppBar中使用 brightness:light:白色字体+白色图标 dark:黑色字体+黑色图标 (已在内部对iOS的取反进行处理)
-
setAndroidTransparentBar(
) → void - 设置安卓透明状态栏(仅针对安卓)
- 设置setSystemNavigationBarStyle样式 单页面设置时,全局build时下个页面有可能会把上个页面的覆盖,配置一样不影响 或者在main那里统一设置