Format text to center
This commit is contained in:
parent
d256a000f0
commit
321682536d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue