app-starlock/lib/main/lockDetail/videoLog/widget/full_screenImage_page.dart

28 lines
682 B
Dart

import 'package:flutter/material.dart';
import 'package:photo_view/photo_view.dart';
import 'package:photo_view/photo_view_gallery.dart';
class FullScreenImagePage extends StatelessWidget {
final String imageUrl;
FullScreenImagePage({required this.imageUrl});
@override
Widget build(BuildContext context) {
return Scaffold(
body: GestureDetector(
onTap: (){
Navigator.pop(context); // 点击图片返回
},
child: Container(
child: RotatedBox(
quarterTurns: -1,
child: PhotoView(
imageProvider: NetworkImage(imageUrl),
),
),
),
),
);
}
}