mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-09 16:07:57 -06:00
feat: bugfixes, finished go_router migration, implemented better visibility of states
This commit is contained in:
@@ -146,7 +146,7 @@ class _LandingPageState extends State<LandingPage> {
|
||||
shape: Theme.of(context).cardTheme.shape,
|
||||
titleTextStyle: Theme.of(context).textTheme.labelLarge,
|
||||
title: Text(S.of(context)!.documentsInInbox),
|
||||
onTap: currentUser.canViewTags && currentUser.canViewDocuments
|
||||
onTap: currentUser.canViewInbox
|
||||
? () => InboxRoute().go(context)
|
||||
: null,
|
||||
trailing: Text(
|
||||
@@ -161,9 +161,11 @@ class _LandingPageState extends State<LandingPage> {
|
||||
shape: Theme.of(context).cardTheme.shape,
|
||||
titleTextStyle: Theme.of(context).textTheme.labelLarge,
|
||||
title: Text(S.of(context)!.totalDocuments),
|
||||
onTap: () {
|
||||
DocumentsRoute().go(context);
|
||||
},
|
||||
onTap: currentUser.canViewDocuments
|
||||
? () {
|
||||
DocumentsRoute().go(context);
|
||||
}
|
||||
: null,
|
||||
trailing: Text(
|
||||
stats.documentsTotal.toString(),
|
||||
style: Theme.of(context).textTheme.labelLarge,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:fl_chart/fl_chart.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:paperless_api/paperless_api.dart';
|
||||
|
||||
Reference in New Issue
Block a user