Flutter RotatedBox

PHOTO EMBED

Tue Sep 14 2021 12:54:07 GMT+0000 (UTC)

Saved by @skpoint #flutter #android

RotatedBox(quarterTurns:turns,
  child: AspectRatio(
    aspectRatio: _controller.value.aspectRatio,
    child:  Stack(
      alignment: Alignment.bottomCenter,
      children: [

        VideoPlayer(_controller),
        _ControlsOverlay(controller: _controller,onClickCallback:(){
          setState(() {
            if( turns==0)
              turns=1;
            else turns=0;
          });
        }),
        VideoProgressIndicator(_controller, allowScrubbing: true),

      ],

    ),),
content_copyCOPY

I have used this code in one of my project, to make video player full screen mode. Greate help from rrtutors

https://rrtutors.com/tutorials/how-to-rotate-flutter-widget