Show the sign in widget even in cases where in there are no photos to display
This commit is contained in:
parent
95a9abba90
commit
9d808212ad
1 changed files with 9 additions and 1 deletions
|
@ -121,7 +121,15 @@ class _GalleryState extends State<Gallery> {
|
|||
|
||||
Widget _onDataLoaded() {
|
||||
if (_files.isEmpty) {
|
||||
return nothingToSeeHere;
|
||||
final children = List<Widget>();
|
||||
if (widget.headerWidget != null) {
|
||||
children.add(widget.headerWidget);
|
||||
}
|
||||
children.add(Expanded(child: nothingToSeeHere));
|
||||
return Column(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
children: children,
|
||||
);
|
||||
}
|
||||
_collateFiles();
|
||||
final itemCount =
|
||||
|
|
Loading…
Add table
Reference in a new issue