fix(mobile): app crash when there is no object detection result on search page (#725)

* fix(mobile): app crash when there is no data for object detection

* Up version for release

* Up version for release
This commit is contained in:
Alex
2022-09-19 11:03:51 -05:00
committed by GitHub
parent 242f10952d
commit 10239161fd
7 changed files with 14 additions and 14 deletions

View File

@@ -99,9 +99,9 @@ class SearchPage extends HookConsumerWidget {
_buildThings() {
return curatedObjects.when(
loading: () => const SizedBox(
height: 200,
child: Center(child: ImmichLoadingIndicator()),
loading: () => SizedBox(
height: imageSize,
child: const Center(child: ImmichLoadingIndicator()),
),
error: (err, stack) => Text('Error: $err'),
data: (objects) {
@@ -133,8 +133,7 @@ class SearchPage extends HookConsumerWidget {
),
)
: SizedBox(
// height: imageSize,
width: imageSize,
height: imageSize,
child: ListView.builder(
padding: const EdgeInsets.only(left: 16),
scrollDirection: Axis.horizontal,