From 170bdb62ab18f05aaef9a733a13cfaee73672566 Mon Sep 17 00:00:00 2001 From: ohwhylin Date: Wed, 2 Oct 2024 13:33:02 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=BC=D0=B5=D0=BD=D1=8F=D0=BB?= =?UTF-8?q?=D0=B0=20=D1=86=D0=B2=D0=B5=D1=82=20+=20=D0=BF=D0=BE=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D0=B0=20=D1=82=D0=B5=D0=BA=D1=81?= =?UTF-8?q?=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main.dart | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 952e542..c3636db 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -31,7 +31,7 @@ class MyHomePage extends StatefulWidget { } class _MyHomePageState extends State { - final Color _color = Colors.teal.shade200; + final Color _color = Colors.brown.shade300; @override Widget build(BuildContext context) { @@ -68,41 +68,42 @@ class MyWidget extends StatelessWidget { _CardData( 'кот', descriptionText: 'глупенький', + icon: Icons.favorite, imageUrl: 'https://i.pinimg.com/564x/98/74/75/98747559040c03402a6d9ad4e47152c6.jpg', ), _CardData( 'сырный кот', descriptionText: 'он не виноват', - icon: Icons.access_time_filled_outlined, + icon: Icons.favorite, imageUrl: 'https://i.pinimg.com/564x/e7/c5/59/e7c559e449cd0bb5370d7740b57daa1f.jpg', ), _CardData( 'злой кот', descriptionText: 'я бы ему не верила', - icon: Icons.add_alarm_sharp, + icon: Icons.favorite, imageUrl: 'https://i.pinimg.com/736x/27/cf/5e/27cf5e3abe1795ce04095941902c61ca.jpg', ), _CardData( 'умный кот', descriptionText: 'он только делает вид что умный', - icon: Icons.add_alarm_sharp, + icon: Icons.favorite, imageUrl: 'https://i.pinimg.com/736x/e9/24/80/e924801430b813eee2635b40fe6e11d6.jpg', ), _CardData( - 'кот с мандаринами', + 'кот в шляпе', descriptionText: '我喜欢橘子!', - icon: Icons.add_alarm_sharp, + icon: Icons.favorite, imageUrl: 'https://i.pinimg.com/564x/3e/ed/11/3eed1103c548ed7c46a1e37a2695f53a.jpg', ), _CardData( 'котенок', descriptionText: 'я его очень понимаю', - icon: Icons.add_alarm_sharp, + icon: Icons.favorite, imageUrl: 'https://i.pinimg.com/736x/38/9f/e6/389fe61133f036fc980a6b2e7abb2557.jpg', ), @@ -142,12 +143,11 @@ class _Card extends StatelessWidget { @override Widget build(BuildContext context) { return Container( - margin: const EdgeInsets.all(16), + margin: const EdgeInsets.all(6), padding: const EdgeInsets.all(16), decoration: BoxDecoration( color: Colors.white70, borderRadius: BorderRadius.circular(20), - //color: Colors.teal.shade100, border: Border.all(color: Colors.grey.shade200), boxShadow: [ BoxShadow( @@ -162,10 +162,10 @@ class _Card extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ ClipRRect( - borderRadius: BorderRadius.circular(20), + borderRadius: BorderRadius.circular(10), child: SizedBox( height: 140, - width: 160, + width: 140, child: Image.network( imageUrl ?? '', fit: BoxFit.cover, @@ -191,9 +191,8 @@ class _Card extends StatelessWidget { ), ), ), - const Spacer(), Padding( - padding: const EdgeInsets.only(left: 8.0), + padding: const EdgeInsets.only(left: 8.0, top: 10.0), child: Icon(icon), ), ],