Skip to content

Commit c034d56

Browse files
feat(database, firestore): updated default loading indicator to be platform adaptive (#399)
Co-authored-by: Russell Wheatley <[email protected]>
1 parent ca5b0e2 commit c034d56

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/firebase_ui_database/lib/src/query_builder.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ class FirebaseDatabaseListView extends FirebaseDatabaseQueryBuilder {
438438
builder: (context, snapshot, _) {
439439
if (snapshot.isFetching) {
440440
return loadingBuilder?.call(context) ??
441-
const Center(child: CircularProgressIndicator());
441+
const Center(child: CircularProgressIndicator.adaptive());
442442
}
443443

444444
if (snapshot.hasError && errorBuilder != null) {

packages/firebase_ui_firestore/lib/src/query_builder.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ class FirestoreListView<Document> extends FirestoreQueryBuilder<Document> {
460460
builder: (context, snapshot, _) {
461461
if (snapshot.isFetching) {
462462
return loadingBuilder?.call(context) ??
463-
const Center(child: CircularProgressIndicator());
463+
const Center(child: CircularProgressIndicator.adaptive());
464464
}
465465

466466
if (snapshot.hasError && errorBuilder != null) {
@@ -570,7 +570,7 @@ class FirestoreListView<Document> extends FirestoreQueryBuilder<Document> {
570570
builder: (context, snapshot, _) {
571571
if (snapshot.isFetching) {
572572
return loadingBuilder?.call(context) ??
573-
const Center(child: CircularProgressIndicator());
573+
const Center(child: CircularProgressIndicator.adaptive());
574574
}
575575

576576
if (snapshot.hasError && errorBuilder != null) {

0 commit comments

Comments
 (0)