Closed hukjordanjanaq closed 2 years ago
hello @jordanjanaq did you get any solutiion?
Hi, i used a pull request. In the pubspec.yaml, i change for this:
flutter_inner_drawer: git: url: https://github.com/kenjishiromajp/flutter_inner_drawer ref: kenjishiromajp-update-for-2.12-null-safety-casting
Hi, i used a pull request. In the pubspec.yaml, i change for this:
flutter_inner_drawer: git: url: https://github.com/kenjishiromajp/flutter_inner_drawer ref: kenjishiromajp-update-for-2.12-null-safety-casting
This worked for me.
thx, solution worked like a charm.
I've encountered this issue. And, this solution is worked for me.
The issue is coming from
children
doesn't accept any nullable widget.
Also _trigger(..)
method returning nullable widget
https://github.com/Dn-a/flutter_inner_drawer/blob/9dbe02e648dd9db8ec018a0ce4b1ca3839cbc0b3/lib/inner_drawer.dart#L544-L563 And It is being used on https://github.com/Dn-a/flutter_inner_drawer/blob/9dbe02e648dd9db8ec018a0ce4b1ca3839cbc0b3/lib/inner_drawer.dart#L600-L620
While the children can't be null anymore, we can remove or replace _trigger()
widget when it returns null.
Hi, i'm testing with the example in the documentation but I'm getting error.