Implemented load new image when navigating back from backup page (#9)

This commit is contained in:
Alex
2022-02-06 20:31:32 -06:00
committed by GitHub
parent 1d3ee2008c
commit c24fb403c5
12 changed files with 133 additions and 38 deletions

View File

@@ -1,5 +1,6 @@
import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:hive/hive.dart';
import 'package:immich_mobile/constants/hive_box.dart';
import 'package:chewie/chewie.dart';
@@ -17,6 +18,7 @@ class VideoViewerPage extends StatelessWidget {
return Scaffold(
backgroundColor: Colors.black,
appBar: AppBar(
systemOverlayStyle: SystemUiOverlayStyle.light,
backgroundColor: Colors.black,
leading: IconButton(
onPressed: () {
@@ -24,7 +26,7 @@ class VideoViewerPage extends StatelessWidget {
},
icon: const Icon(Icons.arrow_back_ios)),
),
body: Center(
body: SafeArea(
child: VideoThumbnailPlayer(
url: videoUrl,
jwtToken: jwtToken,
@@ -64,7 +66,6 @@ class _VideoThumbnailPlayerState extends State<VideoThumbnailPlayer> {
setState(() {});
} catch (e) {
debugPrint("ERROR initialize video player");
print(e);
}
}