dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
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.
31 lines
738 B
31 lines
738 B
4 years ago
|
import 'package:flutter/cupertino.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
import 'package:flutter/rendering.dart';
|
||
|
import 'package:photo_view/photo_view.dart';
|
||
|
|
||
|
class ImageTapWrapper extends StatelessWidget {
|
||
|
const ImageTapWrapper({
|
||
|
this.imageProvider,
|
||
|
});
|
||
|
|
||
|
final ImageProvider imageProvider;
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Scaffold(
|
||
|
body: Container(
|
||
|
constraints: BoxConstraints.expand(
|
||
|
height: MediaQuery.of(context).size.height,
|
||
|
),
|
||
|
child: GestureDetector(
|
||
|
onTapDown: (_) {
|
||
|
Navigator.pop(context);
|
||
|
},
|
||
|
child: PhotoView(
|
||
|
imageProvider: imageProvider,
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|