lab 3 доработка
This commit is contained in:
parent
8901a403ad
commit
edc28313ec
@ -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),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user