|
@@ -58,7 +58,7 @@ class SwipeWidget extends StatelessWidget {
|
|
|
borderRadius: BorderRadius.all(Radius.circular(10)),
|
|
|
child: Swiper(
|
|
|
index: 0,
|
|
|
- itemBuilder: (BuildContext context, index) {
|
|
|
+ itemBuilder: (BuildContext swipercontext, index) {
|
|
|
return GestureDetector(
|
|
|
onTap: () {
|
|
|
if (banners[index].jumpType == 2) {
|
|
@@ -74,12 +74,21 @@ class SwipeWidget extends StatelessWidget {
|
|
|
createFileOfPdfUrl(banners[index].url).then((f) {
|
|
|
// setState(() {
|
|
|
// pathPDF = f.path;
|
|
|
+ // pathPDF = f.path;
|
|
|
+ // Navigator.push(
|
|
|
+ // context,
|
|
|
+ // MaterialPageRoute(
|
|
|
+ // builder: (context) => PDFScreen(
|
|
|
+ // f.path,
|
|
|
+ // banners[index].url,
|
|
|
+ // banners[index].id.toString()),
|
|
|
+ // ));
|
|
|
+
|
|
|
Navigator.push(
|
|
|
context,
|
|
|
MaterialPageRoute(
|
|
|
builder: (context) =>
|
|
|
PDFScreen(f.path, "null", "null")));
|
|
|
- // });
|
|
|
});
|
|
|
}
|
|
|
},
|