Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled the top bar gesture event when the mobile orientation changes #10

Open
zzsmoky opened this issue Oct 9, 2024 · 0 comments
Open

Comments

@zzsmoky
Copy link

zzsmoky commented Oct 9, 2024

Describe the bug
Disabled the top bar gesture event when the mobile orientation changes

Reproduction code
example:

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  FlutterStatusbarcolor.setStatusBarColor(Colors.red);
  SystemChrome.setPreferredOrientations([
    DeviceOrientation.landscapeLeft,
  ]);
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      width: double.infinity,
      height: double.infinity,
    );
  }
}

To Reproduce

  1. Launch this page (Iphone 15 pro)
  2. Change orientation, you will see

Screenshots
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant