Format text to center

This commit is contained in:
Vishnu Mohandas 2020-05-25 22:45:19 +05:30
parent d256a000f0
commit 321682536d

View file

@ -26,13 +26,13 @@ class _RemoteFolderGalleryWidgetState extends State<RemoteFolderGalleryWidget> {
builder: (context, snapshot) {
if (snapshot.hasData) {
if (snapshot.data.isEmpty) {
return Text("Nothing to see here!");
return Center(child: Text("Nothing to see here!"));
} else {
return _getRemoteFolderGalleryWidget(snapshot.data);
}
} else if (snapshot.hasError) {
_logger.shout(snapshot.error);
return Text(snapshot.error.toString());
return Center(child: Text(snapshot.error.toString()));
} else {
return loadWidget;
}