spkersten / flutter_coast

PageView wrapper that supports Hero-like animations
https://pub.dev/packages/coast
MIT License
22 stars 11 forks source link

Request: Null Safety (?) #2

Closed Trefa1998 closed 3 years ago

Trefa1998 commented 3 years ago

Hi Sander. I love the package, so thank you.

Are there any plans in the works to migrate to Null Safety for Dart 2.12+?

Trefa1998 commented 3 years ago

I forked the repository and ran through the migration tool myself earlier to see if I could save you some time, but it fails two of your tests:

1.) 'finish transition' -> 'should finish transition in case new source page is not equal to current source page'

2.) 'transition animation' -> 'should return reverse in case newvalue is [smaller] than previous value.'

Theoretically if we could have a <= on one of the else-ifs or return AnimationStatus.dismissed (suggested because it is the initial value) on the else clause, that could help.

spkersten commented 3 years ago

I've published version 2.0 with null safety. Thanks again for doing the migration.