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.
76 lines
2.1 KiB
76 lines
2.1 KiB
import 'package:flutter/material.dart';
|
|
import 'dart:io';
|
|
|
|
class PictureReview extends StatefulWidget {
|
|
final image;
|
|
|
|
const PictureReview({Key key, this.image}) : super(key: key);
|
|
@override
|
|
_PictureReviewState createState() => _PictureReviewState();
|
|
}
|
|
|
|
class _PictureReviewState extends State<PictureReview> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: Stack(children: [
|
|
Container(
|
|
width: MediaQuery.of(context).size.width,
|
|
height: MediaQuery.of(context).size.height,
|
|
child: Image.file(
|
|
File(
|
|
widget.image,
|
|
),
|
|
fit: BoxFit.fill,
|
|
),
|
|
),
|
|
Align(
|
|
alignment: Alignment.topLeft,
|
|
child: InkWell(
|
|
onTap: () {
|
|
Navigator.pop(context, false);
|
|
},
|
|
child: Container(
|
|
margin: EdgeInsets.symmetric(
|
|
horizontal: MediaQuery.of(context).size.width * 0.08,
|
|
vertical: MediaQuery.of(context).size.width * 0.11,
|
|
),
|
|
height: 50,
|
|
width: 50,
|
|
decoration: BoxDecoration(
|
|
color: Color.fromRGBO(0, 0, 0, 0.4), shape: BoxShape.circle),
|
|
child: Icon(
|
|
Icons.close,
|
|
color: Colors.red,
|
|
size: 40,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Align(
|
|
alignment: Alignment.topRight,
|
|
child: InkWell(
|
|
onTap: () {
|
|
Navigator.pop(context, true);
|
|
},
|
|
child: Container(
|
|
margin: EdgeInsets.symmetric(
|
|
horizontal: MediaQuery.of(context).size.width * 0.08,
|
|
vertical: MediaQuery.of(context).size.width * 0.11,
|
|
),
|
|
height: 50,
|
|
width: 50,
|
|
decoration: BoxDecoration(
|
|
color: Color.fromRGBO(0, 0, 0, 0.4), shape: BoxShape.circle),
|
|
child: Icon(
|
|
Icons.check,
|
|
color: Colors.green,
|
|
size: 40,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
]),
|
|
);
|
|
}
|
|
}
|
|
|