You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Smooth the path to using a CustomPaint with a paintable ChangeNotifier #7648
If you have a ChangeNotifier that implements a paint() function, it'd be nice to be able to hand that straight to CustomPaint instead of having to jump through the hoops that Scrollbar jumps through.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
abarth commentedon Mar 14, 2017
The trick is to make up a type name with the proper interface given that Dart doesn't have union types.
Allow ChangeNotifiers to be CustomPainters
Allow ChangeNotifiers to be CustomPainters (#9584)
github-actions commentedon Sep 5, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Allow ChangeNotifiers to be CustomPainters (flutter#9584)