mirror of
https://github.com/foss42/apidash.git
synced 2025-12-11 23:57:50 +08:00
Update widgets
This commit is contained in:
@@ -37,8 +37,14 @@ class CollectionPane extends ConsumerWidget {
|
||||
},
|
||||
onImport: () {
|
||||
showImportDialog(
|
||||
context,
|
||||
(file) {
|
||||
context: context,
|
||||
importFormat: ref.watch(importFormatStateProvider),
|
||||
onImportFormatChange: (format) {
|
||||
if (format != null) {
|
||||
ref.read(importFormatStateProvider.notifier).state = format;
|
||||
}
|
||||
},
|
||||
onFileDropped: (file) {
|
||||
final importFormatType = ref.read(importFormatStateProvider);
|
||||
file.readAsString().then((content) {
|
||||
kImporter
|
||||
|
||||
Reference in New Issue
Block a user