-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add statistics card on landing page
- Loading branch information
1 parent
f3e660e
commit 53a01ae
Showing
21 changed files
with
469 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
project_id: "568557" | ||
files: [ | ||
{ | ||
"source" : "/lib/l10n/intl_en.arb", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:paperless_mobile/extensions/flutter_extensions.dart'; | ||
|
||
class ExpansionCard extends StatelessWidget { | ||
final Widget title; | ||
final Widget content; | ||
|
||
const ExpansionCard({super.key, required this.title, required this.content}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Card( | ||
margin: EdgeInsets.all(16), | ||
child: Theme( | ||
data: Theme.of(context).copyWith( | ||
dividerColor: Colors.transparent, | ||
expansionTileTheme: ExpansionTileThemeData( | ||
shape: Theme.of(context).cardTheme.shape, | ||
collapsedShape: Theme.of(context).cardTheme.shape, | ||
), | ||
listTileTheme: ListTileThemeData( | ||
shape: Theme.of(context).cardTheme.shape, | ||
), | ||
), | ||
child: ExpansionTile( | ||
initiallyExpanded: true, | ||
title: title, | ||
children: [content], | ||
), | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.