showUnderConstruction function

Future<void> showUnderConstruction(
  1. BuildContext context
)

Implementation

Future<void> showUnderConstruction(BuildContext context) async {
  return showDialog<void>(
    context: context,
    barrierDismissible: false, // user must press button!
    builder: (BuildContext context) {
      return AlertDialog(
        title: const Row(
          children: [
            Icon(Icons.construction, color: Colors.red),
            SizedBox(width: 20),
            Text('Under Construction'),
          ],
        ),
        content: const SingleChildScrollView(
          child: ListBody(
            children: <Widget>[
              Text('This functionality is not yet available.'),
              Text('Please check back at a later time.'),
              Text('Thank you for your patience.'),
            ],
          ),
        ),
        actions: <Widget>[
          TextButton(
            child: const Text('Okay'),
            onPressed: () {
              Navigator.of(context).pop();
            },
          ),
        ],
      );
    },
  );
}