ABausG / home_widget

Flutter Package for Easier Creation of Home Screen Widgets
776 stars 213 forks source link

HomeWidget.updateWidget invalid type error message for Long #269

Closed bannzai closed 3 months ago

bannzai commented 4 months ago

Abstraction

I got error message when running android app and call HomeWidget.updateWidget with Long value.

Message

PlatformException(-10, Invalid Type Long. Supported types are Boolean, Float, String, Double, Long, java.lang.IllegalArgumentException

Issue

This message has Invalid Type Long and Supported types are ... Long. So, I confused. Please check it. Thank you.

bannzai commented 4 months ago

FYI: https://github.com/ABausG/home_widget/blob/365f8f910bccf577b0103a239d26d8e3c175e06e/android/src/main/kotlin/es/antonborri/home_widget/HomeWidgetPlugin.kt#L56

I guess wrong anything arround the line.

alpha2048 commented 3 months ago

Same problem here.