mirror of
https://github.com/foss42/apidash.git
synced 2025-05-28 20:27:04 +08:00
21 lines
450 B
Dart
21 lines
450 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:file_selector/file_selector.dart';
|
|
import 'drag_and_drop_area.dart';
|
|
|
|
showImportDialog(
|
|
BuildContext context,
|
|
Function(XFile) onFileDropped,
|
|
) {
|
|
showDialog(
|
|
context: context,
|
|
builder: (context) {
|
|
return AlertDialog(
|
|
contentPadding: const EdgeInsets.all(12),
|
|
content: DragAndDropArea(
|
|
onFileDropped: onFileDropped,
|
|
),
|
|
);
|
|
},
|
|
);
|
|
}
|