buildError method

Widget buildError(
  1. VoidCallback onTap
)

Implementation

Widget buildError(VoidCallback onTap) {
  return Center(
    child: Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        Icon(
          Icons.warning,
          color: Colors.yellowAccent,
          size: 42,
        ),
        CupertinoButton(
          padding: EdgeInsets.zero,
          onPressed: onTap,
          child: Container(
            padding: EdgeInsets.symmetric(vertical: 8, horizontal: 10),
            decoration: BoxDecoration(
              borderRadius: BorderRadius.circular(15.0),
              color: Colors.black26,
            ),
            child: Text("restart", style: TextStyle(color: Colors.white)),
          ),
        ),
      ],
    ),
  );
}