Browse Source

Merge pull request #882 from nextcloud/fix/neon/list-view-flicker

fix(neon): Fix list view flicker when loading
pull/884/head
Kate 1 year ago committed by GitHub
parent
commit
bedf953b64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      packages/neon/neon/lib/src/widgets/list_view.dart

7
packages/neon/neon/lib/src/widgets/list_view.dart

@ -54,16 +54,15 @@ class NeonListView extends StatelessWidget {
itemCount: topFixedChildren!.length,
itemBuilder: (final context, final index) => topFixedChildren![index],
),
if (isLoading)
const SliverToBoxAdapter(
SliverToBoxAdapter(
child: NeonLinearProgressIndicator(
margin: EdgeInsets.symmetric(
visible: isLoading,
margin: const EdgeInsets.symmetric(
horizontal: 10,
vertical: 5,
),
),
),
if (error != null)
SliverToBoxAdapter(
child: NeonError(
error,

Loading…
Cancel
Save