OrientationBuilder In Flutter

OrientationBuilder In Flutter :

This flutter tutorial post is OrientationBuilder widget in flutter. Orientation 2 types 1) portrait 2) landscape. That widget is use, portrait and landscape mode show the different layout.

OrientationBuilder In Flutter
OrientationBuilder(
          builder: (BuildContext context, Orientation orientation) {
        switch (orientation) {
          case Orientation.portrait:
            return Container();
          case Orientation.landscape:
            return Container();
        }
        return null;
      }),

Dialog orientation flutter

final Dialog dialog = Dialog(
      child: OrientationBuilder(
          builder: (BuildContext context, Orientation orientation) {
        switch (orientation) {
          case Orientation.portrait:
            return Container();
          case Orientation.landscape:
            return Container();
        }
        return null;
      }),
    );

The flutter tutorial  is a website that bring you the latest and amazing resources of code. All the languages codes are included in this website. The languages like flutter, android, java,kotlin etc.with the help of this languages any user can develop the beautiful application

For more information about Flutter. visit www.fluttertutorial.in