fzyzcjy / flutter_rust_bridge

Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.

Home Page:https://fzyzcjy.github.io/flutter_rust_bridge/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support converting chrono::NativeDate to Dart

TrackerSB opened this issue Β· comments

Recent updates of the dependency to allo-isolate introduced support chrono::NativeDate in FRB. However, when converting a Rust struct containing a field of type chrono::NativeDate a (working πŸ‘πŸ») Dart class which extends from RustOpaque is generated.

Despite the fact that this should be enough to technically utilize the Dart class it would be much nicer if it generated a field of type DateTime instead of depending on RustOpaque. This enables quite more capabilities on the Dart side. In my case especially reflection.

Sure! Looking forward to reviewing and merging #1834 :)