Add new card to lec3

This commit is contained in:
Aleksey Filippov 2024-10-04 09:18:52 +04:00
parent 1d63eb96e4
commit 3c1d8d54a3

View File

@ -51,15 +51,26 @@ class MyWidget extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final data = [ final data = [
_CardData('Hello', _CardData(
descriptionText: 'Hello text', 'Hello',
imageUrl: descriptionText: 'Hello text',
'https://unsplash.com/photos/6GMq7AGxNbE/download?ixid=M3wxMjA3fDB8MXxzZWFyY2h8Mnx8cmFjY29vbnxlbnwwfHx8fDE3Mjc5MTExNTl8MA&force=true&w=640'), imageUrl:
_CardData('Hello 2', 'https://unsplash.com/photos/6GMq7AGxNbE/download?ixid=M3wxMjA3fDB8MXxzZWFyY2h8Mnx8cmFjY29vbnxlbnwwfHx8fDE3Mjc5MTExNTl8MA&force=true&w=640',
descriptionText: 'Hello 2 text', ),
icon: Icons.add, _CardData(
imageUrl: 'Hello 2',
'https://unsplash.com/photos/UopR2NUBYek/download?ixid=M3wxMjA3fDB8MXxzZWFyY2h8MTF8fHJhY2Nvb258ZW58MHx8fHwxNzI3OTExMTU5fDA&force=true&w=640'), 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( return Center(