showImageInsertDialog function

Future<Map<String, String>?> showImageInsertDialog(
  1. BuildContext context, {
  2. FluentEditorLabels? labels,
})

Shows the dialog to insert an image. Returns a Map with 'src' or null if cancelled.

Implementation

Future<Map<String, String>?> showImageInsertDialog(
  BuildContext context, {
  FluentEditorLabels? labels,
}) {
  return showDialog<Map<String, String>>(
    context: context,
    builder: (context) => ImageInsertDialog(labels: labels),
  );
}