showValidationIssue static method

Future<void> showValidationIssue({
  1. required BuildContext context,
})

Implementation

static Future<void> showValidationIssue(
    {required BuildContext context}) async {
  await showDialog(
    context: context,
    builder: (BuildContext context) => Dialog(
      shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.all(Radius.circular(20.0))),
      child: Container(
        decoration: BoxDecoration(
            color: Theme.of(context).brightness == Brightness.dark
                ? Theme.of(context).primaryColorDark
                : Theme.of(context).backgroundColor,
            borderRadius: BorderRadius.all(Radius.circular(20.0))),
        height: Screen.heightOf(55, context),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            Padding(
              padding: EdgeInsets.only(top: Screen.heightOf(7, context)),
              child: Icon(
                FontAwesomeIcons.fileSignature,
                color: Colors.amber,
                size: 80,
              ),
            ),
            SizedBox(
              height: Screen.heightOf(3, context),
            ),
            Text(
              'Oops!',
              style: TextStyle(
                  fontWeight: FontWeight.bold,
                  fontSize: Screen.heightOf(3, context),
                  color: Theme.of(context).primaryColorDark),
              textAlign: TextAlign.center,
            ),
            SizedBox(
              height: Screen.heightOf(3, context),
            ),
            Padding(
              padding: EdgeInsets.only(
                  left: Screen.widthOf(5, context),
                  right: Screen.widthOf(5, context)),
              child: Text(
                'Please review the supplied information in your registration form.',
                style: TextStyle(
                    color: Theme.of(context).textTheme.caption?.color),
                textAlign: TextAlign.center,
              ),
            ),
            SizedBox(
              height: Screen.heightOf(3, context),
            ),
            Button(
              text: 'OK',
              onPressed: () {
                Navigator.pop(context);
              },
              minWidth: Screen.widthOf(25, context),
              color: Theme.of(context).primaryColor,
            ),
          ],
        ),
      ),
    ),
  );
}