noInterNet static method

dynamic noInterNet(
  1. dynamic context,
  2. String title,
  3. String subTitle
)

Implementation

static noInterNet(context, String title, String subTitle) {
  return showDialog(
    context: context,
    builder: (context) => AlertDialog(
      alignment: Alignment.center,
      contentPadding: EdgeInsets.all(30),
      title: Align(
        alignment: Alignment.center,
        child: Text(
          title,
          style: TextStyle(
              color: HexColor("#36454F"),
              fontSize: 16,
              fontFamily: "Poppins Semibold"
          ),
        ),
      ),
      content: Text(
        subTitle,
        style: TextStyle(
            color: HexColor("#7A7A7A"),
            fontSize: 14,
            fontFamily: "Poppins Semibold"
        ),
      ),
      actions: <Widget>[
        InkWell(
          onTap: () {

            Navigator.pop(context);

          },
          child: const Padding(
            padding: EdgeInsets.only(right: 30.0, bottom: 20,left: 20.0 ),
            child: Text(
              "Ok",
              style: TextStyle(color: Colors.black, fontSize: 16.0),
            ),
          ),
        ),
      ],
    ),
  );
}