2024-01-05 06:20:55 +01:00
|
|
|
import 'package:auto_route/auto_route.dart';
|
2023-03-25 04:44:53 +01:00
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
2024-05-02 22:59:14 +02:00
|
|
|
import 'package:immich_mobile/providers/search/all_video_assets.provider.dart';
|
2024-05-07 06:04:21 +02:00
|
|
|
import 'package:immich_mobile/widgets/asset_grid/multiselect_grid.dart';
|
2023-03-25 04:44:53 +01:00
|
|
|
|
2024-01-15 17:50:33 +01:00
|
|
|
@RoutePage()
|
2023-03-25 04:44:53 +01:00
|
|
|
class AllVideosPage extends HookConsumerWidget {
|
|
|
|
const AllVideosPage({super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
|
|
return Scaffold(
|
|
|
|
appBar: AppBar(
|
|
|
|
title: const Text('all_videos_page_title').tr(),
|
|
|
|
leading: IconButton(
|
2024-05-14 21:07:31 +02:00
|
|
|
onPressed: () => context.maybePop(),
|
2023-03-25 04:44:53 +01:00
|
|
|
icon: const Icon(Icons.arrow_back_ios_rounded),
|
|
|
|
),
|
|
|
|
),
|
2024-01-05 22:23:58 +01:00
|
|
|
body: MultiselectGrid(renderListProvider: allVideoAssetsProvider),
|
2023-03-25 04:44:53 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|