From 3c1d8d54a309a4bdb84d24109363727fc6e90b18 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Fri, 4 Oct 2024 09:18:52 +0400 Subject: [PATCH] Add new card to lec3 --- lec3/lib/main.dart | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/lec3/lib/main.dart b/lec3/lib/main.dart index 938ad19..df561d5 100644 --- a/lec3/lib/main.dart +++ b/lec3/lib/main.dart @@ -51,15 +51,26 @@ class MyWidget extends StatelessWidget { @override Widget build(BuildContext context) { final data = [ - _CardData('Hello', - descriptionText: 'Hello text', - imageUrl: - 'https://unsplash.com/photos/6GMq7AGxNbE/download?ixid=M3wxMjA3fDB8MXxzZWFyY2h8Mnx8cmFjY29vbnxlbnwwfHx8fDE3Mjc5MTExNTl8MA&force=true&w=640'), - _CardData('Hello 2', - descriptionText: 'Hello 2 text', - icon: Icons.add, - imageUrl: - 'https://unsplash.com/photos/UopR2NUBYek/download?ixid=M3wxMjA3fDB8MXxzZWFyY2h8MTF8fHJhY2Nvb258ZW58MHx8fHwxNzI3OTExMTU5fDA&force=true&w=640'), + _CardData( + 'Hello', + descriptionText: 'Hello text', + imageUrl: + 'https://unsplash.com/photos/6GMq7AGxNbE/download?ixid=M3wxMjA3fDB8MXxzZWFyY2h8Mnx8cmFjY29vbnxlbnwwfHx8fDE3Mjc5MTExNTl8MA&force=true&w=640', + ), + _CardData( + 'Hello 2', + descriptionText: 'Hello 2 text', + icon: Icons.add, + imageUrl: + 'https://unsplash.com/photos/UopR2NUBYek/download?ixid=M3wxMjA3fDB8MXxzZWFyY2h8MTF8fHJhY2Nvb258ZW58MHx8fHwxNzI3OTExMTU5fDA&force=true&w=640', + ), + _CardData( + 'Hello 3', + descriptionText: 'Hello 3 text', + icon: Icons.add, + imageUrl: + 'https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/Raccoon_on_Log.jpg/640px-Raccoon_on_Log.jpg', + ), ]; return Center(