confirmationDialog method

void confirmationDialog(
  1. BuildContext context
)

Implementation

void confirmationDialog(BuildContext context) async {
  showDialog(
    context: context,
    barrierDismissible: false,
    builder: (BuildContext context) {
      return AlertDialog(
        title: Text("Use Google's location services ?"),
        content: const Text(MyStrings.middle_lorem_ipsum),
        actions: <Widget>[
          TextButton(
            child: const Text('DISAGREE'),
            onPressed: () {
              Navigator.of(context).pop();
            },
          ),
          TextButton(
            child: const Text('AGREE'),
            onPressed: () {
              Navigator.of(context).pop();
            },
          )
        ],
      );
    },
  );
}