What do you want to save?
Add Code snippet
New code examples
-
Dart 2021-11-16 18:49:11
flutter display widget based on device orientation
build(BuildContext context) { final isLandscape = MediaQuery.of(context).orientation == Orientation.landscape; // check if the orientation is landscape // further down your code you can use 'if' or 'ternary' or both ... Add solution