Go-flutter: Encounter error "interface {} is map[interface {}]interface {}, not map[string]interface {}" when develop Image_Picker for windows "pickVideo"

Created on 22 Jul 2019  路  1Comment  路  Source: go-flutter-desktop/go-flutter

When develop Image_Picker Plugin for Windows.
pickImage work fine but pickVideo has the following error message

go-flutter: recovered from panic while handling call for method 'pickVideo' on channel 'plugins.flutter.io/image_picker': interface conversion: interface {} is map[interface {}]interface {}, not map[string]interface {}
goroutine 57 [running]:

Modify func handlePickVideo of plugin.go

argsMap := arguments.(map[string]interface{})

to

argsMap := arguments.(map[interface{}]interface{})

can fix problem

Thanks.

bug plugin

Most helpful comment

Thanks for the bug-report!
Fix available in image_picker/v0.1.1

>All comments

Thanks for the bug-report!
Fix available in image_picker/v0.1.1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pauldemarco picture pauldemarco  路  7Comments

qianniancn picture qianniancn  路  7Comments

pchampio picture pchampio  路  3Comments

pulyaevskiy picture pulyaevskiy  路  5Comments

monkeyWie picture monkeyWie  路  7Comments