show static method

Future<NiceFeedbackData?> show(
  1. BuildContext context, {
  2. String title = 'Send Feedback',
  3. String? description,
  4. bool showRating = true,
  5. bool showCategory = false,
  6. List<String>? categories,
})

Implementation

static Future<NiceFeedbackData?> show(
  BuildContext context, {
  String title = 'Send Feedback',
  String? description,
  bool showRating = true,
  bool showCategory = false,
  List<String>? categories,
}) {
  return showDialog<NiceFeedbackData>(
    context: context,
    builder: (context) => NiceFeedbackDialog(
      title: title,
      description: description,
      showRating: showRating,
      showCategory: showCategory,
      categories: categories,
      onSubmit: (feedback) => Navigator.of(context).pop(feedback),
      onCancel: () => Navigator.of(context).pop(),
    ),
  );
}