refactored and condensed technical documentation and comments across the codebase to improve readability
This commit is contained in:
@@ -65,11 +65,9 @@ class LoadableStateConsumer<
|
||||
final showError = hasError && !hasContent;
|
||||
final showErrorBar = hasError && hasContent;
|
||||
|
||||
// Keep the wrapper hierarchy stable across refresh cycles. The bloc clears
|
||||
// reFetch to null while a refetch is in flight and restores it on
|
||||
// completion; flipping the RefreshIndicator in and out on that signal
|
||||
// would change the widget tree under the ListView and reset its scroll
|
||||
// position every refresh.
|
||||
// Keep the wrapper hierarchy stable across refresh cycles: reFetch flips to
|
||||
// null mid-refetch, and toggling the RefreshIndicator on that signal would
|
||||
// rebuild the tree under the ListView and reset its scroll position.
|
||||
final content = SizedBox(
|
||||
height: MediaQuery.of(context).size.height,
|
||||
child: hasContent
|
||||
|
||||
Reference in New Issue
Block a user