Skip to content

Commit

Permalink
fix(neon_dashboard): Fix widgets reloading scrolling back up
Browse files Browse the repository at this point in the history
Signed-off-by: jld3103 <[email protected]>
  • Loading branch information
provokateurin committed Oct 22, 2023
1 parent 16ec4de commit 504cace
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/neon/neon_dashboard/lib/src/pages/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class DashboardMainPage extends StatelessWidget {

return Center(
child: NeonListView.custom(
scrollKey: 'dashboard',
isLoading: snapshot.isLoading,
error: snapshot.error,
onRefresh: bloc.refresh,
Expand Down
1 change: 1 addition & 0 deletions packages/neon/neon_dashboard/lib/src/widgets/widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class DashboardWidget extends StatelessWidget {
borderRadius: const BorderRadius.all(Radius.circular(12)),
child: ListView(
padding: const EdgeInsets.all(8),
key: PageStorageKey<String>('dashboard-${widget.id}'),
children: [
ListTile(
title: Text(
Expand Down

0 comments on commit 504cace

Please sign in to comment.