Update widgets

This commit is contained in:
Ashita Prasad
2024-07-16 03:34:30 +05:30
parent 8f72cd2771
commit 604efe256d
6 changed files with 130 additions and 15 deletions

View File

@@ -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