danvick / flutter_chips_input

Flutter input field that takes in Material Chips as entries
https://pub.dev/packages/flutter_chips_input
BSD 2-Clause "Simplified" License
110 stars 146 forks source link

[NNBD] Null safety migration #83

Open DevNico opened 3 years ago

DevNico commented 3 years ago

Null safety is in beta with flutter core support and it's therefore time to start migrating packages as per the dart migration guide.

jhancock4d commented 3 years ago

It's now final and most everything is finishing migration...

awhitford commented 3 years ago

Yes, now this project is behind. 😨

sumitasharma commented 3 years ago

+1. It would be great to have null safety support for this package.

zsoerenm commented 3 years ago

I created a new package chips_input, which has null safety. It is build from scratch, but I used some inputs from this package. It is only compatible with Flutter 2.0 and above, because it uses the new AutoComplete widget.

JohnGalt1717 commented 3 years ago

@zsoerenm It looks good, but the problem is that this won't work with online data at all right now. Any chance we could get some minor fixes on this in the mean time?

zsoerenm commented 3 years ago

@JohnGalt1717 you can use it with online data. You just need to pass the data to the widget when it is build. If the online data changes, you'll have to rebuild the widget. This won't work, if the download size is too large to be downloaded completely, obviously.

JohnGalt1717 commented 3 years ago

That's not at all efficient. We use the old version and use odata on the server side to return the results denounced as the user types filtering based on what they've typed. This ensures no massive load of a million or more records. Hence the need.

zsoerenm commented 3 years ago

Yes, sorry I can't help with that. At least the flutter team is aware of it: https://docs.google.com/document/d/1fV4FDNdcza1ITU7hlgweCDUZdWyCqd-rjz_J7K2KkfY/edit?disco=AAAAKEuguLw

JohnGalt1717 commented 3 years ago

@zsoerenm Ya, just hoping to get the flutter 2 crashes with this version fixed in the mean time.