FilledStacks / FilledStacks/responsive_builder

[FLUTTER WEB] Cannot detect landscape mode on mobile.

Open
#57 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
524
Forks
90
PR merge metrics
No merged PRs in 30d

Description

I have read the docs about your package. I decided using it for my website. But one thing i wanna know.
Is this package can detect phone or tablet screen but in landscape mode. Thank you very much

```
class _MyHomePageState extends State {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text(widget.title),
),
body: ScreenTypeLayout.builder(
mobile: (BuildContext context) => OrientationLayoutBuilder(
portrait: (context) => Container(color: Colors.green),
landscape: (context) => Container(color: Colors.orange),
),
tablet: (BuildContext context) => Container(color: Colors.yellow),
desktop: (BuildContext context) => Container(color: Colors.red),
watch: (BuildContext context) => Container(color: Colors.purple),
),
);
}
}

```

I tried this code above but it's not working as my expectation

![image](https://github.com/FilledStacks/responsive_builder/assets/90593296/c79fbd8e-2007-4343-8692-debba0987cec)
I think it should be orange

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.