feat(ui_kit): make skillcard header icon customizable

This commit is contained in:
2023-04-12 12:31:00 +00:00
committed by hugo
parent 8d12f84fcc
commit 6f09eeca0e
5 changed files with 43 additions and 44 deletions
@@ -36,7 +36,18 @@ class SkillCards extends StatelessWidget {
children: [
SkillCard(
gradient: const [Colors.red, Colors.orange],
icon: Icons.ac_unit_sharp,
icon: Container(
padding: const EdgeInsets.all(15),
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.white.withOpacity(0.04),
),
child: const GradientIcon(
Icons.ac_unit_sharp,
gradient:
LinearGradient(colors: [Colors.red, Colors.orange]),
),
),
title: 'Lorem Ipsum'.wrap(),
description: 'Cupidatat reprehenderit aliqua eiusmod Lorem. '
'Qui ipsum id ea ea nulla labore aute ullamco aute '
@@ -54,7 +65,19 @@ class SkillCards extends StatelessWidget {
const Gap(20),
SkillCard(
gradient: const [Colors.blue, Colors.green],
icon: Icons.ac_unit_sharp,
icon: Container(
padding: const EdgeInsets.all(15),
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.white.withOpacity(0.04),
),
child: const GradientIcon(
Icons.ac_unit_sharp,
gradient: LinearGradient(
colors: [Colors.blue, Colors.green],
),
),
),
title: 'Lorem Ipsum'.wrap(),
description: 'Cupidatat reprehenderit aliqua eiusmod Lorem. '
'Qui ipsum id ea ea nulla labore aute ullamco aute '