Skip to content

Commit

Permalink
fix(mobile): memory lane not displayed in mobile app (#5587)
Browse files Browse the repository at this point in the history
Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
  • Loading branch information
shenlong-tanwen and shenlong-tanwen committed Dec 10, 2023
1 parent 8847ebe commit 68c0112
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mobile/lib/modules/home/views/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:immich_mobile/extensions/build_context_extensions.dart';
import 'package:immich_mobile/modules/album/providers/album.provider.dart';
import 'package:immich_mobile/modules/album/providers/shared_album.provider.dart';
import 'package:immich_mobile/modules/home/providers/multiselect.provider.dart';
import 'package:immich_mobile/modules/memories/ui/memory_lane.dart';
import 'package:immich_mobile/shared/providers/asset.provider.dart';
import 'package:immich_mobile/shared/providers/server_info.provider.dart';
import 'package:immich_mobile/shared/providers/user.provider.dart';
Expand Down Expand Up @@ -95,8 +96,12 @@ class HomePage extends HookConsumerWidget {
}
}

Widget buildBody() {
return MultiselectGrid(
return Scaffold(
appBar: ref.watch(multiselectProvider) ? null : const ImmichAppBar(),
body: MultiselectGrid(
topWidget: (currentUser != null && currentUser.memoryEnabled)
? const MemoryLane()
: const SizedBox(),
renderListProvider: timelineUsers.length > 1
? multiUserAssetsProvider(timelineUsers)
: assetsProvider(currentUser?.isarId),
Expand All @@ -105,12 +110,7 @@ class HomePage extends HookConsumerWidget {
stackEnabled: true,
archiveEnabled: true,
editEnabled: true,
);
}

return Scaffold(
appBar: ref.watch(multiselectProvider) ? null : const ImmichAppBar(),
body: buildBody(),
),
);
}
}

0 comments on commit 68c0112

Please sign in to comment.