Show the sign in widget even in cases where in there are no photos to display

This commit is contained in:
Vishnu Mohandas 2020-12-04 02:31:11 +05:30
parent 95a9abba90
commit 9d808212ad

View file

@ -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 =