diff --git a/lib/src/common/widgets/link.dart b/lib/src/common/widgets/link.dart index 8afa10c..67cae22 100644 --- a/lib/src/common/widgets/link.dart +++ b/lib/src/common/widgets/link.dart @@ -5,8 +5,8 @@ import 'package:portfolio/src/constants/sizes.dart'; import 'package:portfolio/src/utils/launch_url_helper.dart'; import 'package:portfolio/src/utils/scaffold_messenger_helper.dart'; -class LinkWidget extends StatefulHookConsumerWidget { - const LinkWidget({ +class MyLink extends StatefulHookConsumerWidget { + const MyLink({ super.key, required this.url, this.displayLink, @@ -22,10 +22,10 @@ class LinkWidget extends StatefulHookConsumerWidget { final Color hoverColor; @override - ConsumerState createState() => _LinkState(); + ConsumerState createState() => _LinkState(); } -class _LinkState extends ConsumerState { +class _LinkState extends ConsumerState { late ColorTween _colorTween; @override diff --git a/lib/src/common/widgets/technology_wrap_chips.dart b/lib/src/common/widgets/technology_wrap_chips.dart index 70fea19..4ec016a 100644 --- a/lib/src/common/widgets/technology_wrap_chips.dart +++ b/lib/src/common/widgets/technology_wrap_chips.dart @@ -6,17 +6,17 @@ import 'package:portfolio/src/common/widgets/technology_chip.dart'; class TechnologyWrapChips extends ConsumerWidget { const TechnologyWrapChips({ super.key, - required this.titles, + required this.technologies, }); - final List titles; + final List technologies; @override Widget build(BuildContext context, WidgetRef ref) { return Wrap( spacing: 8, runSpacing: 8, - children: titles.map((technology) { + children: technologies.map((technology) { return TechnologyChip(technology: technology); }).toList(), ); diff --git a/lib/src/common/widgets/wrap_links.dart b/lib/src/common/widgets/wrap_links.dart index 1b95f81..da50c6c 100644 --- a/lib/src/common/widgets/wrap_links.dart +++ b/lib/src/common/widgets/wrap_links.dart @@ -20,7 +20,7 @@ class WrapLinks extends ConsumerWidget { final projectLinkUrl = link.url; final projectLinkDisplay = link.display; if (projectLinkUrl == null) return const SizedBox.shrink(); - return LinkWidget( + return MyLink( url: projectLinkUrl, displayLink: projectLinkDisplay ?? projectLinkUrl, displayLeadingIcon: true, diff --git a/lib/src/features/experience/presentation/widgets/experience_card.dart b/lib/src/features/experience/presentation/widgets/experience_card.dart index 05ede31..ae0ff33 100644 --- a/lib/src/features/experience/presentation/widgets/experience_card.dart +++ b/lib/src/features/experience/presentation/widgets/experience_card.dart @@ -110,7 +110,7 @@ class ExperienceCard extends ConsumerWidget { Widget _buildChips() { final experienceTechnologies = experience.technologies; if (experienceTechnologies == null) return const SizedBox.shrink(); - return TechnologyWrapChips(titles: experienceTechnologies); + return TechnologyWrapChips(technologies: experienceTechnologies); } Widget _buildLinks() { diff --git a/lib/src/features/project/presentation/widgets/project_description.dart b/lib/src/features/project/presentation/widgets/project_description.dart index 7983ecd..85bc72d 100644 --- a/lib/src/features/project/presentation/widgets/project_description.dart +++ b/lib/src/features/project/presentation/widgets/project_description.dart @@ -55,7 +55,7 @@ class ProjectDescription extends ConsumerWidget { Widget _buildChips() { final projectTechnologies = project.technologies; if (projectTechnologies == null) return const SizedBox.shrink(); - return TechnologyWrapChips(titles: projectTechnologies); + return TechnologyWrapChips(technologies: projectTechnologies); } Widget _buildLinks(BuildContext context) {