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
First off, thank you for this package. I found it by accident where I was so frustrated about my app's look on Windows. This package actually solves a part of the problem. The other part on Windows is how fonts look. I wish you had a solution for that too :)
Anyway I have this custom class which overrides applyParentData on Positioned widget. When switching to pixel snap, I get this error:
The method 'applyParentData' isn't defined in a superclass of 'CustomPositioned'.
Try correcting the name to the name of an existing method, or defining a method named 'applyParentData' in a superclass.
You can import pixel snap with hide Positioned. You can also only import positioned from flutter's widgets.dart (show position) and do the subclassing. Or you can import the original widgets.dart as original and then extend original.Positioned. There are multiple ways of solving this.
Yes indeed that solves the problem. I mentioned this issue because setting up this package was as easy as changing material to snap_pixel, and having to hide/show classes is a bit annoying. In fact I tested this package with a simple replace all function of my IDE and I went back and forth to test and see if it works as advertised. It would be good to keep the hassle at minimum.
Hello,
First off, thank you for this package. I found it by accident where I was so frustrated about my app's look on Windows. This package actually solves a part of the problem. The other part on Windows is how fonts look. I wish you had a solution for that too :)
Anyway I have this custom class which overrides
applyParentData
onPositioned
widget. When switching to pixel snap, I get this error:For that class, I had to revert back to
material/widgets.dart
The text was updated successfully, but these errors were encountered: