mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-09 08:08:14 -06:00
feat: Add saved views to landing page
This commit is contained in:
@@ -61,15 +61,15 @@ class _DocumentsPageState extends State<DocumentsPage>
|
||||
length: showSavedViews ? 2 : 1,
|
||||
vsync: this,
|
||||
);
|
||||
Future.wait([
|
||||
context.read<DocumentsCubit>().reload(),
|
||||
context.read<SavedViewCubit>().reload(),
|
||||
]).onError<PaperlessApiException>(
|
||||
(error, stackTrace) {
|
||||
showErrorMessage(context, error, stackTrace);
|
||||
return [];
|
||||
},
|
||||
);
|
||||
// Future.wait([
|
||||
// context.read<DocumentsCubit>().reload(),
|
||||
// context.read<SavedViewCubit>().reload(),
|
||||
// ]).onError<PaperlessApiException>(
|
||||
// (error, stackTrace) {
|
||||
// showErrorMessage(context, error, stackTrace);
|
||||
// return [];
|
||||
// },
|
||||
// );
|
||||
_tabController.addListener(_tabChangesListener);
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ class _DocumentsPageState extends State<DocumentsPage>
|
||||
return SafeArea(
|
||||
top: true,
|
||||
child: Scaffold(
|
||||
drawer: AppDrawer(),
|
||||
drawer: const AppDrawer(),
|
||||
floatingActionButton: BlocBuilder<DocumentsCubit, DocumentsState>(
|
||||
builder: (context, state) {
|
||||
final appliedFiltersCount = state.filter.appliedFiltersCount;
|
||||
|
||||
Reference in New Issue
Block a user