import 'package:flutter/material.dart';
import 'package:healthcare_user/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,

          )
      ),

    );
  }
}
