gameresizelayout

Last updated:

0 purchases

gameresizelayout Image
gameresizelayout Images
Add to Cart

Description:

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.