showPopUpError method
dynamic
showPopUpError()
Implementation
showPopUpError() {
showModal(
context: context,
builder: (BuildContext context) {
return GestureDetector(
onTap: () {
SellonRouter.pop(context);
SellonRouter.pop(context);
},
child: Container(
color: Colors.transparent,
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.max,
children: [
Container(
padding: EdgeInsets.all(16),
margin: EdgeInsets.all(16),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8)),
height: 130,
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
Row(
mainAxisSize: MainAxisSize.max,
children: [
Expanded(
child: DefaultText(
textLabel:
"Change Password",
sizeText: 20,
fontWeight: FontWeight.bold,
),
),
GestureDetector(
child: Icon(
Icons.close,
size: 20,
color: Colors.black,
))
],
),
DefaultText(
margin: EdgeInsets.only(top: 8),
alignment: Alignment.centerLeft,
textLabel: "It looks like the email you entered incorrect, please check again.",
colorsText: Colors.grey,
),
Expanded(
child: DefaultText(
alignment: Alignment.centerRight,
textLabel: "Oke",
colorsText: Colors.red,
))
],
),
),
],
),
),
);
});
}