You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.0 KiB
35 lines
1.0 KiB
1 year ago
|
import 'package:flutter/material.dart';
|
||
|
import 'package:doctor/common/settings.dart';
|
||
|
import 'package:photo_view/photo_view.dart';
|
||
|
class ImageZoomPage extends StatefulWidget {
|
||
|
var imageName;
|
||
|
var imageDetails;
|
||
|
ImageZoomPage({this.imageName,this.imageDetails});
|
||
|
|
||
|
|
||
|
@override
|
||
|
State<ImageZoomPage> createState() => _ImageZoomPageState();
|
||
|
}
|
||
|
|
||
|
class _ImageZoomPageState extends State<ImageZoomPage> {
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Scaffold(
|
||
|
appBar: AppSettings.appBar(widget.imageName),
|
||
|
body: Container(
|
||
|
//width: MediaQuery.of(context).size.width * .10,
|
||
|
//height: MediaQuery.of(context).size.height * .50,
|
||
|
child: PhotoView(
|
||
|
imageProvider: NetworkImage(widget.imageDetails) as ImageProvider,
|
||
|
maxScale: PhotoViewComputedScale.contained * 4.0,
|
||
|
minScale: PhotoViewComputedScale.contained,
|
||
|
initialScale: PhotoViewComputedScale.contained,
|
||
|
basePosition: Alignment.center,
|
||
|
|
||
|
)
|
||
|
),
|
||
|
|
||
|
);
|
||
|
}
|
||
|
}
|