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.
28 lines
623 B
Dart
28 lines
623 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class CustomDialog extends StatelessWidget {
|
|
final Widget child;
|
|
|
|
CustomDialog({
|
|
@required this.child,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Center(
|
|
child: Container(
|
|
height: MediaQuery.of(context).size.height * 0.35,
|
|
width: MediaQuery.of(context).size.width * 0.95,
|
|
child: Dialog(
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.circular(15),
|
|
),
|
|
elevation: 0.0,
|
|
backgroundColor: Colors.white,
|
|
child: child,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|