Skip to content

[BUG] Android底部虚拟导航栏背景异常 #315

Description

@Hoo-HU

Describe the bug

Android手机底部虚拟导航栏开启后,虚拟导航栏颜色异常

How to reproduce

final imageAssert = await CameraPicker.pickFromCamera(
  context,
  pickerConfig: CameraPickerConfig(
    textDelegate: CustomCameraPickerTextDelegate(),
    theme: CameraPicker.themeData(AppGeneralColor.primary),
    shouldDeletePreviewFile: true,
    onError: (error, stackTrace) {
      uploadException(error, stack: stackTrace);
    },
  ),
);

Steps to reproduce the behavior:
1.Android 10以下的手机开启底部虚拟导航栏
2.前一个页面系统导航栏和虚拟导航栏样式:
SystemUiOverlayStyle.light.copyWith(
systemNavigationBarContrastEnforced: false,
systemNavigationBarDividerColor: Colors.transparent,
systemNavigationBarColor: Colors.transparent,
systemNavigationBarIconBrightness: Brightness.dark,
statusBarColor: Colors.transparent);
3.打开拍照页面,虚拟导航栏呈现背景白色、图标白色

Expected behavior

希望可以自定义系统导航栏和虚拟导航栏样式

Screenshots (If contains)

Image

Version information

  • Device: [小米 9]
  • OS: [Android 9 ]
  • Package Version: [4.3.6,4.4.0]
  • Flutter Version: [3.27.4]

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    await investigateThe issue is waiting for further investigation.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions