Skip to content

Commit 2eb6035

Browse files
authored
Do not show a loading indicator when we are not loading. (#4683)
Closes flutter/flutter#168851.
1 parent fbe2598 commit 2eb6035

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dashboard/lib/widgets/task_grid.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,12 @@ class TaskGridContainer extends StatelessWidget {
5959
builder: (BuildContext context, Widget? child) {
6060
final commitStatuses = buildState.statuses;
6161

62-
// Assume if there is no data that it is loading.
6362
if (commitStatuses.isEmpty) {
64-
return const Center(child: CircularProgressIndicator());
63+
if (buildState.moreStatusesExist) {
64+
return const Center(child: CircularProgressIndicator());
65+
} else {
66+
return const Center(child: Text('No commits found.'));
67+
}
6568
}
6669

6770
return TaskGrid(

0 commit comments

Comments
 (0)