showPublishDialog method

Future<bool?> showPublishDialog()

Implementation

Future<bool?> showPublishDialog() => showDialog<bool>(
  context: this,
  builder: (ctx) => AlertDialog(
    title: const Text('Видеосвязь'),
    content:  Text('вы согласны включить камеру и микрофон?', style: Theme.of(Get.context!).textTheme.bodyMedium,),
    actions: [
      TextButton(
        onPressed: () => Navigator.pop(ctx, false),
        child: const Text('НЕТ'),
      ),
      TextButton(
        onPressed: () => Navigator.pop(ctx, true),
        child: const Text('ДА'),
      ),
    ],
  ),
);