CodeDoctor
CodeDoctor
Oh, this could be the solution. I didn't check for the inverted stylus input type. I will make a branch for this and it would be nice if anyone can...
I created a branch to test if this solves the issue. Can you try out this apk after it was built successfully: https://github.com/LinwoodDev/Butterfly/actions/runs/7528706756 (go to artifact and download the apk...
Thanks for testing, I have currently no spen capable phone. When pressing it, it will go to the second tool starting from left. Can you try setting the eraser at...
Yeah, debugging the app would help me a lot. Can you try adding a breakpoint in https://github.com/LinwoodDev/Butterfly/blob/c7c2fd77e063ab12d5f9b237004f1a855158399f/app/lib/views/view.dart#L304C45-L304C45 and give me the event properties when pressing the spen button and touching...
Sadly the log files doesn't help. Instead of breakpoints you could add print statements there: ``` ... print("DEBUG INPUT: ${event.kind}, ${event.buttons}"); ``` This would help me a lot figuring out...
I'm currently confused. Our input should be first pushing the button and then drawing with the pen while holding the button. Is there really no output when doing this? In...
Thanks for testing it. I have really no idea how to fix this. This is the same code written in saber as here, we use the onPointerDown function from the...
Really? This is the constant for stylus button: https://api.flutter.dev/flutter/gestures/kSecondaryButton-constant.html Where did you get it? On the debugger you can hover on "event" and get all properties of it
Hmm, and this button only shows up in the pointer move event? Currently the app only switches the tool when first interacting with the screen, the pointer down event. I'm...
The crash should be fixed in the new 2.0 alphas but does not detect as a stylus device. Please follow [this issue](https://github.com/flutter/flutter/issues/42846) for this