Compare commits

...

2 Commits

Author SHA1 Message Date
3c1d8d54a3 Add new card to lec3 2024-10-04 09:18:52 +04:00
1d63eb96e4 Comment network permissions 2024-10-04 09:18:34 +04:00
2 changed files with 22 additions and 11 deletions

View File

@ -1,7 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- <uses-permission android:name="android.permission.INTERNET" />-->
<!-- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />-->
<application
android:label="test_app"

View File

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