From edc28313ec84460110e29f3893d483af9a9dac0e Mon Sep 17 00:00:00 2001 From: Arkadiy Radaev Date: Wed, 9 Oct 2024 16:10:25 +0400 Subject: [PATCH] =?UTF-8?q?lab=203=20=D0=B4=D0=BE=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main.dart | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index a63dd30..c0a18e6 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -107,13 +107,13 @@ class MyWidget extends StatelessWidget { } class _Car extends StatelessWidget { - final String text; + final String TitleCar; final String descriptionCar; final IconData icon; final String? imageUrl; const _Car( - this.text, { + this.TitleCar, { this.icon = Icons.ac_unit_outlined, required this.descriptionCar, this.imageUrl, @@ -134,11 +134,11 @@ class _Car extends StatelessWidget { decoration: BoxDecoration( color: Colors.white70, borderRadius: BorderRadius.circular(20), - border: Border.all(color: Colors.grey), + border: Border.all(color: Colors.redAccent), boxShadow: [ BoxShadow( - color: Colors.grey.withOpacity(.5), - spreadRadius: 4, + color: Colors.deepOrange.withOpacity(.5), + spreadRadius: 5, offset: const Offset(0, 5), blurRadius: 8, ), @@ -150,8 +150,8 @@ class _Car extends StatelessWidget { ClipRRect( borderRadius: BorderRadius.circular(20), child: SizedBox( - height: 140, - width: 100, + height: 150, + width: 150, child: Image.network( imageUrl ?? '', fit: BoxFit.cover, @@ -166,7 +166,7 @@ class _Car extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - text, + TitleCar, style: Theme.of(context).textTheme.headlineLarge, ), Text( @@ -177,10 +177,6 @@ class _Car extends StatelessWidget { ), ), ), - Padding( - padding: const EdgeInsets.only(left: 8.0), - child: Icon(icon), - ), ], ), );