Adding TopNews
This commit is contained in:
@@ -13,20 +13,7 @@ class ProfileView extends StatefulWidget {
|
||||
class _ProfileViewState extends State<ProfileView> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
// TODO Removig
|
||||
final summary =
|
||||
"Voyez ce jeu exquis wallon, de graphie en kit mais bref. Portez ce vieux whisky au juge blond qui fume sur son île intérieure, à côté de l\"alcôve ovoïde, où les bûches se consument dans l\"âtre";
|
||||
final url =
|
||||
"https://miningandbusiness.com/wp-content/uploads/2021/02/03f19c3a-1d92-4be7-ac54-f52b37e626ad-561x771.jpg";
|
||||
final urlPrd = "http://www.africau.edu/images/default/sample.pdf";
|
||||
|
||||
final magazines = [
|
||||
Magazine(urlCover: url, magazineUrl: urlPrd, summaryText: summary),
|
||||
Magazine(urlCover: url, magazineUrl: urlPrd, summaryText: summary),
|
||||
Magazine(urlCover: url, magazineUrl: urlPrd, summaryText: summary),
|
||||
Magazine(urlCover: url, magazineUrl: urlPrd, summaryText: summary),
|
||||
Magazine(urlCover: url, magazineUrl: urlPrd, summaryText: summary)
|
||||
];
|
||||
// TODO Removing
|
||||
return Scaffold(
|
||||
body: CustomScrollView(
|
||||
slivers: [
|
||||
@@ -64,8 +51,8 @@ class _ProfileViewState extends State<ProfileView> {
|
||||
mainAxisExtent: 250
|
||||
),
|
||||
delegate: SliverChildBuilderDelegate(
|
||||
(context, int index) => ItemMagLarge(magazine: magazines[index]),
|
||||
childCount: magazines.length,
|
||||
(context, int index) => ItemMagLarge(magazine: magazinesTest[index]),
|
||||
childCount: magazinesTest.length,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user