mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Show a page-level progress bar while paginating lists
Changing pages in the notifications or devices list gave no cue that the next page was loading. Render an indeterminate progress bar at the shell level, pinned flush against the bottom of the page body (above the nav bar on phones, the screen bottom on wide layouts), driven by a shared paginationLoading notifier the lists set while fetching. The pagination bar keeps disabling its buttons during the fetch. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
52533f447c
commit
c949deedb6
@@ -18,6 +18,9 @@ class PaginationBar extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
final canGoBack = currentPage > 0 && !isLoading;
|
||||
final canGoForward = hasNextPage && !isLoading;
|
||||
// While a page change is in flight the buttons disable so the tap reads as
|
||||
// registered and double-taps are blocked; the progress cue itself is drawn
|
||||
// by the app shell at the bottom of the page body.
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||
child: Row(
|
||||
|
||||
Reference in New Issue
Block a user