Merge branch 'mirza_home_page' into development_new_design_2.0
commit
fe1a287070
@ -0,0 +1,48 @@
|
|||||||
|
import 'package:cached_network_image/cached_network_image.dart';
|
||||||
|
import 'package:diplomaticquarterapp/uitl/utils_new.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:progress_hud_v2/generated/i18n.dart';
|
||||||
|
|
||||||
|
showZoomImageDialog(BuildContext context, String url) {
|
||||||
|
showDialog(
|
||||||
|
context: context,
|
||||||
|
builder: (BuildContext context) => Dialog(
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(12.0),
|
||||||
|
), //this right here
|
||||||
|
child: ShowZoomImage(url),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
class ShowZoomImage extends StatelessWidget {
|
||||||
|
String url;
|
||||||
|
|
||||||
|
ShowZoomImage(this.url);
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Container(
|
||||||
|
width: double.infinity,
|
||||||
|
child: Column(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
|
children: [
|
||||||
|
IconButton(
|
||||||
|
icon: Icon(Icons.close),
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.pop(context);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
CachedNetworkImage(
|
||||||
|
imageUrl: url,
|
||||||
|
height: MediaQuery.of(context).size.width / 1.4,
|
||||||
|
width: double.infinity,
|
||||||
|
),
|
||||||
|
mHeight(12),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue