Skip to content

Commit

Permalink
make skills card stay closed by default (by selecting index 1
Browse files Browse the repository at this point in the history
  • Loading branch information
abbymachines committed Jun 16, 2024
1 parent ff2c5e8 commit be0c4c9
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 47 deletions.
6 changes: 4 additions & 2 deletions lib/data/portfolio_items_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ final items = [
email: [email protected]
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),
Expand Down Expand Up @@ -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',
Expand Down
88 changes: 44 additions & 44 deletions lib/widgets/items/header_item.dart
Original file line number Diff line number Diff line change
@@ -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(),
// ],
// ),
// ],
// ),
// ),
// ),
// );
// }
// }
4 changes: 3 additions & 1 deletion lib/widgets/items/item_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit be0c4c9

Please sign in to comment.