我已经实现了一个带有应用栏和两个图标的屏幕,如下图所示
添加 PDFViewerScaffold 后,所有图标和应用栏不显示,仅显示 pdf 文件
这是我的代码
return Scaffold(
appBar: AppBar(
title: Text('Preview'),
backgroundColor: Colors.lightBlue,
),
body: Stack(
children: <Widget>[
Positioned(
bottom: 10,
left: 50,
child: IconButton(
icon: Icon(Icons.description),
iconSize: 30,
color: Colors.blue,
onPressed: () {}),
),
Positioned(
bottom: 10,
right: 50,
child: IconButton(
icon: Icon(Icons.share),
iconSize: 30,
color: Colors.blue,
onPressed: () {}),
),
Positioned(
child: PDFViewerScaffold(path:widget.pdfPath))
],
),
);
如何在一个屏幕上显示所有图标、appbar 和 pdf 文档?

