поменяла цвет + поправила текст
This commit is contained in:
parent
101ad9e727
commit
170bdb62ab
@ -31,7 +31,7 @@ class MyHomePage extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _MyHomePageState extends State<MyHomePage> {
|
class _MyHomePageState extends State<MyHomePage> {
|
||||||
final Color _color = Colors.teal.shade200;
|
final Color _color = Colors.brown.shade300;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@ -68,41 +68,42 @@ class MyWidget extends StatelessWidget {
|
|||||||
_CardData(
|
_CardData(
|
||||||
'кот',
|
'кот',
|
||||||
descriptionText: 'глупенький',
|
descriptionText: 'глупенький',
|
||||||
|
icon: Icons.favorite,
|
||||||
imageUrl:
|
imageUrl:
|
||||||
'https://i.pinimg.com/564x/98/74/75/98747559040c03402a6d9ad4e47152c6.jpg',
|
'https://i.pinimg.com/564x/98/74/75/98747559040c03402a6d9ad4e47152c6.jpg',
|
||||||
),
|
),
|
||||||
_CardData(
|
_CardData(
|
||||||
'сырный кот',
|
'сырный кот',
|
||||||
descriptionText: 'он не виноват',
|
descriptionText: 'он не виноват',
|
||||||
icon: Icons.access_time_filled_outlined,
|
icon: Icons.favorite,
|
||||||
imageUrl:
|
imageUrl:
|
||||||
'https://i.pinimg.com/564x/e7/c5/59/e7c559e449cd0bb5370d7740b57daa1f.jpg',
|
'https://i.pinimg.com/564x/e7/c5/59/e7c559e449cd0bb5370d7740b57daa1f.jpg',
|
||||||
),
|
),
|
||||||
_CardData(
|
_CardData(
|
||||||
'злой кот',
|
'злой кот',
|
||||||
descriptionText: 'я бы ему не верила',
|
descriptionText: 'я бы ему не верила',
|
||||||
icon: Icons.add_alarm_sharp,
|
icon: Icons.favorite,
|
||||||
imageUrl:
|
imageUrl:
|
||||||
'https://i.pinimg.com/736x/27/cf/5e/27cf5e3abe1795ce04095941902c61ca.jpg',
|
'https://i.pinimg.com/736x/27/cf/5e/27cf5e3abe1795ce04095941902c61ca.jpg',
|
||||||
),
|
),
|
||||||
_CardData(
|
_CardData(
|
||||||
'умный кот',
|
'умный кот',
|
||||||
descriptionText: 'он только делает вид что умный',
|
descriptionText: 'он только делает вид что умный',
|
||||||
icon: Icons.add_alarm_sharp,
|
icon: Icons.favorite,
|
||||||
imageUrl:
|
imageUrl:
|
||||||
'https://i.pinimg.com/736x/e9/24/80/e924801430b813eee2635b40fe6e11d6.jpg',
|
'https://i.pinimg.com/736x/e9/24/80/e924801430b813eee2635b40fe6e11d6.jpg',
|
||||||
),
|
),
|
||||||
_CardData(
|
_CardData(
|
||||||
'кот с мандаринами',
|
'кот в шляпе',
|
||||||
descriptionText: '我喜欢橘子!',
|
descriptionText: '我喜欢橘子!',
|
||||||
icon: Icons.add_alarm_sharp,
|
icon: Icons.favorite,
|
||||||
imageUrl:
|
imageUrl:
|
||||||
'https://i.pinimg.com/564x/3e/ed/11/3eed1103c548ed7c46a1e37a2695f53a.jpg',
|
'https://i.pinimg.com/564x/3e/ed/11/3eed1103c548ed7c46a1e37a2695f53a.jpg',
|
||||||
),
|
),
|
||||||
_CardData(
|
_CardData(
|
||||||
'котенок',
|
'котенок',
|
||||||
descriptionText: 'я его очень понимаю',
|
descriptionText: 'я его очень понимаю',
|
||||||
icon: Icons.add_alarm_sharp,
|
icon: Icons.favorite,
|
||||||
imageUrl:
|
imageUrl:
|
||||||
'https://i.pinimg.com/736x/38/9f/e6/389fe61133f036fc980a6b2e7abb2557.jpg',
|
'https://i.pinimg.com/736x/38/9f/e6/389fe61133f036fc980a6b2e7abb2557.jpg',
|
||||||
),
|
),
|
||||||
@ -142,12 +143,11 @@ class _Card extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Container(
|
||||||
margin: const EdgeInsets.all(16),
|
margin: const EdgeInsets.all(6),
|
||||||
padding: const EdgeInsets.all(16),
|
padding: const EdgeInsets.all(16),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.white70,
|
color: Colors.white70,
|
||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(20),
|
||||||
//color: Colors.teal.shade100,
|
|
||||||
border: Border.all(color: Colors.grey.shade200),
|
border: Border.all(color: Colors.grey.shade200),
|
||||||
boxShadow: [
|
boxShadow: [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
@ -162,10 +162,10 @@ class _Card extends StatelessWidget {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
ClipRRect(
|
ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(10),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 140,
|
height: 140,
|
||||||
width: 160,
|
width: 140,
|
||||||
child: Image.network(
|
child: Image.network(
|
||||||
imageUrl ?? '',
|
imageUrl ?? '',
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
@ -191,9 +191,8 @@ class _Card extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Spacer(),
|
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(left: 8.0),
|
padding: const EdgeInsets.only(left: 8.0, top: 10.0),
|
||||||
child: Icon(icon),
|
child: Icon(icon),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user