You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
616 B
Dart
26 lines
616 B
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class ShowImageDialog extends StatelessWidget {
|
|
final String imageUrl;
|
|
|
|
const ShowImageDialog({Key key, this.imageUrl}) : super(key: key);
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SimpleDialog(
|
|
children: [
|
|
Container(
|
|
width: 340,
|
|
height: 340,
|
|
decoration: BoxDecoration(
|
|
borderRadius: BorderRadius.circular(12)
|
|
),
|
|
child: Image.network(
|
|
imageUrl,
|
|
fit: BoxFit.fill,
|
|
),
|
|
)
|
|
],
|
|
);
|
|
}
|
|
} |