Last updated:
0 purchases
gameresizelayout
TODO: use to this package to develop resizable layouts for all screens
import 'package:flutter/widgets.dart';
class Gameresizelayout extends StatelessWidget {
const Gameresizelayout({super.key, required this.portrait, required this.landscape});
final Widget portrait;
final Widget landscape;
@override
Widget build(BuildContext context) {
return OrientationBuilder(builder: (context, orientation) {
return orientation == Orientation.portrait ? portrait : landscape;
});
}
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.