mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-09 08:08:14 -06:00
feat: Migrations, new saved views interface
This commit is contained in:
@@ -55,9 +55,17 @@ class _LandingPageState extends State<LandingPage> {
|
||||
SliverPadding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 16, 0, 8),
|
||||
sliver: SliverToBoxAdapter(
|
||||
child: Text(
|
||||
"Saved Views",
|
||||
style: Theme.of(context).textTheme.titleMedium,
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
Icons.saved_search,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
).paddedOnly(right: 8),
|
||||
Text(
|
||||
S.of(context)!.views,
|
||||
style: Theme.of(context).textTheme.titleMedium,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -75,7 +83,7 @@ class _LandingPageState extends State<LandingPage> {
|
||||
children: [
|
||||
Text(
|
||||
"There are no saved views to show on your dashboard.", //TODO: INTL
|
||||
),
|
||||
).padded(),
|
||||
TextButton.icon(
|
||||
onPressed: () {},
|
||||
icon: const Icon(Icons.add),
|
||||
@@ -89,6 +97,7 @@ class _LandingPageState extends State<LandingPage> {
|
||||
itemBuilder: (context, index) {
|
||||
return SavedViewPreview(
|
||||
savedView: dashboardViews.elementAt(index),
|
||||
expanded: index == 0,
|
||||
);
|
||||
},
|
||||
itemCount: dashboardViews.length,
|
||||
|
||||
@@ -29,7 +29,7 @@ class ExpansionCard extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
child: ExpansionTile(
|
||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||
backgroundColor: Theme.of(context).colorScheme.surfaceVariant,
|
||||
initiallyExpanded: initiallyExpanded,
|
||||
title: title,
|
||||
children: [content],
|
||||
|
||||
Reference in New Issue
Block a user