File tree Expand file tree Collapse file tree
packages/flutter/lib/src/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -440,11 +440,27 @@ class _ParseLiveSliverListWidgetState<T extends sdk.ParseObject>
440440 final bool showLoadingIndicator = ! isOffline && _liveList == null ;
441441
442442 if (showLoadingIndicator) {
443- return widget.listLoadingElement ??
444- const SliverToBoxAdapter (child: Center (child: CircularProgressIndicator ()));
443+ return widget.listLoadingElement != null
444+ ? SliverToBoxAdapter (child: widget.listLoadingElement! )
445+ : const SliverToBoxAdapter (
446+ child: Center (
447+ child: Padding (
448+ padding: EdgeInsets .all (16.0 ),
449+ child: CircularProgressIndicator (),
450+ ),
451+ ),
452+ );
445453 } else if (noData) {
446- return widget.queryEmptyElement ??
447- const SliverToBoxAdapter (child: Center (child: Text ('No data available' )));
454+ return widget.queryEmptyElement != null
455+ ? SliverToBoxAdapter (child: widget.queryEmptyElement! )
456+ : const SliverToBoxAdapter (
457+ child: Center (
458+ child: Padding (
459+ padding: EdgeInsets .all (16.0 ),
460+ child: Text ('No data available' ),
461+ ),
462+ ),
463+ );
448464 } else {
449465 return SliverList (
450466 delegate: SliverChildBuilderDelegate (
You can’t perform that action at this time.
0 commit comments