Мой код выглядит следующим образом
get _pdfViewer{
if(pathPDF != null) return Container(
child: PdfViewer(
filePath: pathPDF,
),
color: Colors.red,
);
else return Container(height: 30,color: Colors.blueAccent,);
}
Column(
children: <Widget>[
Flex(
direction: Axis.horizontal,
children: <Widget>[
Expanded(
flex: 7,
child: Container(
height: 500,
color: Colors.blueAccent,
child: _pdfViewer,
),
),
Expanded(
flex: 1,
child:Container(
height:500,
color: Colors.green,
)
),
],
)
],
);
В коде есть двойная высота, когда я делаю высоту double.infinity его беспокойство (ошибка) выглядит так: image
Я хочу максимально использовать экран в приложении. Что мне делать?