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.
39 lines
1.1 KiB
Dart
39 lines
1.1 KiB
Dart
|
4 years ago
|
import 'package:mohem_flutter_app/theme/colors.dart';
|
||
|
|
import 'package:mohem_flutter_app/utils/navigator.dart';
|
||
|
|
import 'package:mohem_flutter_app/utils/utils.dart';
|
||
|
|
import 'package:mohem_flutter_app/widgets/show_fill_button.dart';
|
||
|
|
import 'package:mohem_flutter_app/widgets/txt.dart';
|
||
|
|
import 'package:flutter/material.dart';
|
||
|
|
|
||
|
|
class MessageDialog extends StatelessWidget {
|
||
|
|
String? title, buttonTitle;
|
||
|
|
VoidCallback? onClick;
|
||
|
|
MessageDialog({this.title, this.buttonTitle,this.onClick});
|
||
|
|
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
return Container(
|
||
|
|
color: Colors.white,
|
||
|
|
padding: EdgeInsets.all(30),
|
||
|
|
child: Column(
|
||
|
|
mainAxisSize: MainAxisSize.min,
|
||
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||
|
|
children: [
|
||
|
|
Txt(
|
||
|
|
title ?? "message",
|
||
|
|
txtType: TxtType.heading3,
|
||
|
|
),
|
||
|
|
mHeight(40),
|
||
|
|
ShowFillButton(
|
||
|
|
title: buttonTitle ?? "Continue",
|
||
|
|
width: double.infinity,
|
||
|
|
onPressed: () {
|
||
|
|
onClick!();
|
||
|
|
},
|
||
|
|
)
|
||
|
|
],
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|