fix: fix channel list pagination spinner (#375)

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-04-01 13:25:12 +02:00
committed by GitHub
parent 425fd5c4d8
commit 63705693dc
4 changed files with 39 additions and 18 deletions
@@ -628,13 +628,14 @@ class _ChannelListViewState extends State<ChannelListView> {
),
);
}
return Container(
height: 100,
padding: EdgeInsets.all(32),
child: Center(
child: snapshot.data ? CircularProgressIndicator() : Container(),
),
);
return snapshot.data
? Center(
child: Padding(
padding: const EdgeInsets.all(16.0),
child: const CircularProgressIndicator(),
),
)
: Offstage();
});
}