sarbagyastha/youtube_player

Overflow on Landscape

Willian199 opened this issue · 1 comments

My device is generating an overflow error when orientation is landscape and I press to change the quality.

error print
https://uploaddeimagens.com.br/imagens/erro-jpeg-96b9811f-56ca-4f11-b67d-0a949638c72e

To correct this error i made a change on class Controls, line 500 .
My solution:

void _resolutionBottomSheet() {

showModalBottomSheet(
  context: context,
  builder: (context) {
    return Container (
      width: 400,
      child: SingleChildScrollView(
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: <Widget>[
            _qualityRow('1080p'),
            _qualityRow('720p'),
            _qualityRow('480p'),
            _qualityRow('360p'),
            _qualityRow('240p'),
            _qualityRow('144p'),
          ],
        ),
      ),
    );
  },
);

}