ShowImpactDialog1 function
void
ShowImpactDialog1(})
Implementation
void ShowImpactDialog1(
var context,
HeaderTxt,
ContentTxt,
Button1Txt,
Button1Do,
H,
{
Color? BorderColor,
double? BorderWidth
}
) {
if(BorderColor==null){
BorderColor = Colors.blue;
}
if(BorderWidth==null){
BorderWidth = 2.0;
}
showDialog(
context: context,
builder: (context) => new AlertDialog(
backgroundColor:Colors.white,
shape: RoundedRectangleBorder(
side : BorderSide(color: BorderColor!, width:BorderWidth!),
borderRadius: BorderRadius.all(Radius.circular(10.0),
),
),
title: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Directionality(
textDirection: TextDirection.rtl,
child: Text(
HeaderTxt,
textDirection:TextDirection.rtl,
style:TextStyle(
color:Colors.grey[800],
fontFamily: 'GESS',
fontWeight: FontWeight.w700,
),
textAlign: TextAlign.center,
),
),
Divider(color:BorderColor, thickness: 1.5,),
],
),
content:Container(
height:H,
margin: EdgeInsets.only(bottom:20),
child:Column(
crossAxisAlignment:CrossAxisAlignment.center,
children: <Widget>[
Directionality(
textDirection: TextDirection.rtl,
child: new Text(
ContentTxt,
textDirection:TextDirection.rtl,
style:TextStyle(
color:Colors.grey[800],
fontSize: 16,
fontFamily: 'GESS',
fontWeight: FontWeight.w700,
),
textAlign: TextAlign.center,
),
),
SizedBox(height:20),
ImpactButton3(
Txt:Button1Txt,
Do:Button1Do,
W:200.0,
H:35.0,
),
],
),
)
),
);
}