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

For u64 and i128/u128 types, use BigInt in the Dart side.

iota9star opened this issue · comments

Is your feature request related to a problem? Please describe.

In version 2.0.0-dev.33, the Dart code generated for u64 uses int, but the value range of u64 exceeds that of Dart's int. As for i128/u128 types, there's no available type in Dart. I think using BigInt in Dart could be a good solution.

image

Looks reasonable, and feel free to PR for this! Alternatively I will try to find time to fix it later.

P.S. usize may also be considered the same as u64