From be0c4c91c697bd816c1012dc8261047a186de618 Mon Sep 17 00:00:00 2001 From: abbymachines Date: Sun, 16 Jun 2024 16:05:13 -0700 Subject: [PATCH] make skills card stay closed by default (by selecting index 1 --- lib/data/portfolio_items_data.dart | 6 +- lib/widgets/items/header_item.dart | 88 +++++++++++++++--------------- lib/widgets/items/item_list.dart | 4 +- 3 files changed, 51 insertions(+), 47 deletions(-) diff --git a/lib/data/portfolio_items_data.dart b/lib/data/portfolio_items_data.dart index 64d0b68..d32a916 100644 --- a/lib/data/portfolio_items_data.dart +++ b/lib/data/portfolio_items_data.dart @@ -15,6 +15,8 @@ final items = [ email: abby.machines@gmail.com LinkedIn: https://www.linkedin.com/in/abbycc/ + + Artist C.V.: https://abbymachines.art ''', color: const Color.fromARGB(255, 255, 195, 15), style: const TextStyle(fontSize: 22, fontWeight: FontWeight.bold), @@ -79,12 +81,12 @@ A public demo of this app will be available soon (November 2023) on this website label: 'AbbyCastillo.dev', mainText: 'It\'s the little guy at the bottom of your screen!', expandedText: - 'The website you are currently visiting. :) Developed in **Flutter** and **Dart** for **web browsers**.', + 'The website you are currently visiting. :) Developed in **Flutter** and **Dart**.', color: const Color.fromARGB(255, 255, 252, 252)), GenericItem( label: 'The Extent of Our Knowledge', expandedText: - 'Data visualization/sonification made with MAX M/S/P. Created as a project during the Creative Coding & Immersive Technologies program at Portland Community College. Documents weekly COVID deaths from 2020-2022 as audio and [Video available on YouTube.](https://www.youtube.com/watch?v=xNiid90HxCQ)', + 'Data visualization/sonification made with MAX M/S/P. Created as a project during the Creative Coding & Immersive Technologies program at Portland Community College. Documents weekly COVID deaths from 2020-2022 as audio and visuals. [Video available on YouTube.](https://www.youtube.com/watch?v=xNiid90HxCQ)', color: const Color.fromARGB(255, 255, 252, 252)), GenericItem( label: 'Education', diff --git a/lib/widgets/items/header_item.dart b/lib/widgets/items/header_item.dart index 7d60d7e..ad6bb8d 100644 --- a/lib/widgets/items/header_item.dart +++ b/lib/widgets/items/header_item.dart @@ -1,47 +1,47 @@ -import 'package:flutter/material.dart'; +// import 'package:flutter/material.dart'; -class HeaderItem extends StatelessWidget { - const HeaderItem({super.key}); +// class HeaderItem extends StatelessWidget { +// const HeaderItem({super.key}); - @override - Widget build(BuildContext context) { - return InkWell( - onTap: () {}, - child: Card( - color: const Color.fromARGB(255, 192, 192, 192), - child: Padding( - padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 16), - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - const Text( - 'Hello! :) My name is Abby Castillo. I am a software developer and interdisciplinary artist based in Portland, OR.', - textAlign: TextAlign.left, - style: TextStyle( - fontSize: 24, - fontWeight: FontWeight.bold, - color: Colors.white, - ), - ), - const SizedBox(height: 4), - Row( - mainAxisSize: MainAxisSize.min, - children: [ - const Spacer(), - Flexible(child: Text((() { - if (true) { - return ""; - } +// @override +// Widget build(BuildContext context) { +// return InkWell( +// onTap: () {}, +// child: Card( +// color: const Color.fromARGB(255, 192, 192, 192), +// child: Padding( +// padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 16), +// child: Column( +// mainAxisSize: MainAxisSize.min, +// children: [ +// const Text( +// 'Hello! :) My name is Abby Castillo. I am a software developer and interdisciplinary artist based in Portland, OR', +// textAlign: TextAlign.left, +// style: TextStyle( +// fontSize: 24, +// fontWeight: FontWeight.bold, +// color: Colors.white, +// ), +// ), +// const SizedBox(height: 4), +// Row( +// mainAxisSize: MainAxisSize.min, +// children: [ +// const Spacer(), +// Flexible(child: Text((() { +// if (true) { +// return ""; +// } - return "i never show up!"; - })())), - const Spacer(), - ], - ), - ], - ), - ), - ), - ); - } -} +// return "i never show up!"; +// })())), +// const Spacer(), +// ], +// ), +// ], +// ), +// ), +// ), +// ); +// } +// } diff --git a/lib/widgets/items/item_list.dart b/lib/widgets/items/item_list.dart index 6e05236..ad39f81 100644 --- a/lib/widgets/items/item_list.dart +++ b/lib/widgets/items/item_list.dart @@ -22,7 +22,9 @@ class ItemList extends StatelessWidget { Widget build(context) { List expandedIndices = []; for (final index in Iterable.generate(items.length)) { - expandedIndices.add(index); + if (index != 1) { + expandedIndices.add(index); + } } double width = MediaQuery.of(context).size.width * .9;