Update Landing page

This commit is contained in:
Anton Stubenbord
2023-08-01 21:58:20 +02:00
parent b79375cbe0
commit 8e5eb5a6c6
6 changed files with 166 additions and 158 deletions

View File

@@ -4,7 +4,14 @@ class ExpansionCard extends StatelessWidget {
final Widget title;
final Widget content;
const ExpansionCard({super.key, required this.title, required this.content});
final bool initiallyExpanded;
const ExpansionCard({
super.key,
required this.title,
required this.content,
this.initiallyExpanded = false,
});
@override
Widget build(BuildContext context) {
@@ -23,7 +30,7 @@ class ExpansionCard extends StatelessWidget {
),
child: ExpansionTile(
backgroundColor: Theme.of(context).colorScheme.surface,
initiallyExpanded: true,
initiallyExpanded: initiallyExpanded,
title: title,
children: [content],
),