поменяла цвет + поправила текст
This commit is contained in:
parent
101ad9e727
commit
170bdb62ab
@ -31,7 +31,7 @@ class MyHomePage extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _MyHomePageState extends State<MyHomePage> {
|
||||
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),
|
||||
),
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user