mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-15 00:12:22 -06:00
fix: Fix scrolling issue, update selection app bar
This commit is contained in:
@@ -19,7 +19,11 @@ class DocumentSelectionSliverAppBar extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SliverAppBar(
|
||||
stretch: false,
|
||||
pinned: true,
|
||||
floating: true,
|
||||
snap: true,
|
||||
backgroundColor: Theme.of(context).colorScheme.surfaceVariant,
|
||||
title: Text(
|
||||
S.of(context)!.countSelected(state.selection.length),
|
||||
),
|
||||
|
||||
@@ -29,6 +29,10 @@ class ViewTypeSelectionWidget extends StatelessWidget {
|
||||
}
|
||||
|
||||
return PopupMenuButton<ViewType>(
|
||||
constraints: const BoxConstraints(
|
||||
minWidth: 4 * 56.0,
|
||||
maxWidth: 5 * 56.0,
|
||||
), // Ensures text is not split into two lines
|
||||
position: PopupMenuPosition.under,
|
||||
initialValue: viewType,
|
||||
icon: Icon(icon),
|
||||
@@ -70,7 +74,10 @@ class ViewTypeSelectionWidget extends StatelessWidget {
|
||||
child: ListTile(
|
||||
selected: selected,
|
||||
trailing: selected ? const Icon(Icons.done) : null,
|
||||
title: Text(label),
|
||||
title: Text(
|
||||
label,
|
||||
maxLines: 1,
|
||||
),
|
||||
iconColor: Theme.of(context).colorScheme.onSurface,
|
||||
textColor: Theme.of(context).colorScheme.onSurface,
|
||||
leading: Icon(icon),
|
||||
|
||||
Reference in New Issue
Block a user