Profile View

This commit is contained in:
2021-03-22 16:49:24 +02:00
parent 8f86ec409d
commit 1381647a3d
28 changed files with 645 additions and 154 deletions
+4 -4
View File
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:le_kiosque_by_gcs/model/magazine.dart';
import 'package:le_kiosque_by_gcs/ui/pdf_reader.dart';
import 'package:le_kiosque_by_gcs/ui/view/pdf_reader.dart';
class ItemMagSmall extends StatelessWidget {
const ItemMagSmall({Key key, this.magazine}) : super(key: key);
@@ -20,8 +21,7 @@ class ItemMagSmall extends StatelessWidget {
shape: BoxShape.rectangle,
borderRadius: BorderRadius.all(Radius.circular(5)),
image: DecorationImage(
image: NetworkImage(
"https://miningandbusiness.com/wp-content/uploads/2021/02/03f19c3a-1d92-4be7-ac54-f52b37e626ad-561x771.jpg"),
image: NetworkImage(magazine.urlCover),
fit: BoxFit.cover,
),
),
@@ -34,7 +34,7 @@ class ItemMagSmall extends StatelessWidget {
MaterialPageRoute(
builder: (context) {
return PdfReader(
pdfUrl: "http://www.africau.edu/images/default/sample.pdf",
pdfUrl: magazine.magazineUrl,
);
},
),