fix for slides
This commit is contained in:
@@ -30,8 +30,7 @@ class _PaymentPDFScreenState extends State<PaymentPDFScreen>
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
backgroundColor: primaryColor,
|
||||
title: LocalText(context, 'pdf_view.title',
|
||||
color: Colors.white, fontSize: 20),
|
||||
title:Text("Invoice File"),
|
||||
actions: <Widget>[
|
||||
IconButton(
|
||||
icon: Icon(Icons.share),
|
||||
@@ -95,21 +94,21 @@ class _PaymentPDFScreenState extends State<PaymentPDFScreen>
|
||||
// )
|
||||
],
|
||||
),
|
||||
floatingActionButton: FutureBuilder<PDFViewController>(
|
||||
future: _controller.future,
|
||||
builder: (context, AsyncSnapshot<PDFViewController> snapshot) {
|
||||
if (snapshot.hasData) {
|
||||
return FloatingActionButton.extended(
|
||||
label: Text("Go to ${pages ~/ 2}"),
|
||||
onPressed: () async {
|
||||
await snapshot.data.setPage(pages ~/ 2);
|
||||
},
|
||||
);
|
||||
}
|
||||
// floatingActionButton: FutureBuilder<PDFViewController>(
|
||||
// future: _controller.future,
|
||||
// builder: (context, AsyncSnapshot<PDFViewController> snapshot) {
|
||||
// if (snapshot.hasData) {
|
||||
// return FloatingActionButton.extended(
|
||||
// label: Text("Go to ${pages ~/ 2}"),
|
||||
// onPressed: () async {
|
||||
// await snapshot.data.setPage(pages ~/ 2);
|
||||
// },
|
||||
// );
|
||||
// }
|
||||
|
||||
return Container();
|
||||
},
|
||||
),
|
||||
// return Container();
|
||||
// },
|
||||
// ),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user