diff --git a/lib/cards.dart b/lib/cards.dart index 46e06dd..8d19f8d 100644 --- a/lib/cards.dart +++ b/lib/cards.dart @@ -712,56 +712,73 @@ class FeatureCardState extends State { @override Widget build(BuildContext context) { Size size = MediaQuery.of(context).size; - return InkWell( - onTap: () { - widget.model.link == null ? null : launch(widget.model.link ?? ""); - }, - child: NeonContainer( - lightSpreadRadius: size.width > 850 ? 10 : 4, - lightBlurRadius: size.width > 850 ? 30 : 10, - spreadColor: Colors.indigo.withOpacity(0.7), - borderColor: borderColor, - width: size.width, - margin: const EdgeInsets.symmetric(horizontal: 10, vertical: 20), - borderWidth: 2, - borderRadius: BorderRadius.circular(CardRadius), - containerColor: Colors.black87, - child: Container( - margin: const EdgeInsets.all(20), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - RichText( - text: TextSpan( - style: TextStyle( - fontSize: size.width > 850 ? 30 : 25, - color: borderColor, - fontWeight: FontWeight.w700, - ), + return NeonContainer( + lightSpreadRadius: size.width > 850 ? 10 : 4, + lightBlurRadius: size.width > 850 ? 30 : 10, + spreadColor: Colors.indigo.withOpacity(0.7), + borderColor: borderColor, + width: size.width, + margin: const EdgeInsets.symmetric(horizontal: 10, vertical: 20), + borderWidth: 2, + borderRadius: BorderRadius.circular(CardRadius), + containerColor: Colors.black87, + child: Container( + margin: const EdgeInsets.all(20), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + InkWell( + onTap: () { + widget.model.link == null + ? null + : launch(widget.model.link ?? ""); + }, + child: Wrap( + crossAxisAlignment: WrapCrossAlignment.end, children: [ - TextSpan( + NeonText( text: widget.model.type + " | ", - style: const TextStyle(color: Colors.indigo), + fontWeight: FontWeight.w700, + textSize: size.width > 850 ? 25 : 20, + textColor: Colors.indigo, + spreadColor: Colors.indigo, ), - TextSpan( - text: widget.model.name, - ) - ]), - ), - const SizedBox( - height: 10, - ), - Text( - widget.model.description ?? "", - maxLines: 5, - softWrap: true, - style: TextStyle( - fontSize: size.width > 850 ? 20 : 15, - color: borderColor, - fontWeight: FontWeight.w400), - ), - ], - ), + NeonText( + text: widget.model.name, + maxLine: 3, + textColor: Colors.white, + spreadColor: Colors.white, + textSize: size.width > 850 ? 20 : 15), + const SizedBox( + width: 10, + ), + widget.model.link != null + ? Image.asset( + "assets/images/link.png", + width: size.width > 850 ? 30 : 25, + height: size.width > 850 ? 30 : 25, + ) + : const SizedBox(height: 0), + ], + ), + ), + ], + ), + const SizedBox( + height: 10, + ), + Text( + widget.model.description ?? "", + maxLines: 5, + softWrap: true, + style: TextStyle( + fontSize: size.width > 850 ? 20 : 15, + color: borderColor, + fontWeight: FontWeight.w400), + ), + ], ), ), ); diff --git a/lib/data_file.dart b/lib/data_file.dart index 78647fe..aa78250 100644 --- a/lib/data_file.dart +++ b/lib/data_file.dart @@ -36,8 +36,6 @@ class PortfolioDetails { "assets/images/dart.png", "https://pub.dev/packages/neon_widgets", ), - IconLinkModel("assets/images/instagram.png", - "https://www.instagram.com/casual_photography___/"), ]; static List experienceList = [ @@ -496,6 +494,13 @@ class PortfolioDetails { description: "I was the part of winning team of mannequin challenge, that was conducted by Solasta 2k20.", type: "Award"), + GenericModel( + name: "Photography awards", + description: + "Received a total of 65+ awards in photography contests, with some photos securing a rank in top 6% and scoring merit by Judges and Experts. ", + link: + "https://www.photocrowd.com/photographer-community/241531/awards/?utm_source=sendinblue&utm_campaign=803a_Achievements_bronze_-_Profile_views&utm_medium=email", + type: "Award"), ]; static String educationHeadLine =