PAINTROID-737: Add Pipette Tool#78
Conversation
|
Hi @juliajulie95 @msesko @bakicelebi |
|
Hi Bhav, I could not reproduce the problem you are having. But i found another similar issue. Transparent colors while drawing are darker. Only after onUp when the command is executed the transparency is correct. And the problem you are describing is happening only when the colors are transparent. I am guessing there is an underlying issue with the color picker and not the pipette tool itself. I will have to have a deeper look but for now few suggestions:
|
For this, should I enable scrolling so that the apply button becomes visible? or reduce the size of each component |
It is already scrollable but it is really hard. I think this can be fixed in color picker PR. Imo we can do bit compacter dynamic design so that the scrolling of bottomsheet is never activated. |
|
@Lenkomotive fixed conflicts |
| import 'package:flutter/material.dart'; | ||
| import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
|
|
||
| class PipetteToolPage extends ConsumerStatefulWidget { |
There was a problem hiding this comment.
Opening a new page for pipette tool is overkill. As mentioned in my previous comment the kotlin version of Pocket Paint doesnt open a new page. You can approach this tool the easiet way:
- onTap -> get color of the pixel under the point
- set paint color to that color using paint provider
This simplyfies the user experience and matches the original implementation of the tool and removes alot of unnessary code.
|
@bhav-khurana Hi, are you still working on this or should someone take over? |

Ticket
PAINTROID 737
New Features and Enhancements
As present in the native application, a pipette tool for selecting a particular color from the current state of the drawing canvas is implemented. This tool is a part of the colorpicker package itself and allows the user to pick any color from the drawing and use it on other objects.
Checklist
Your checklist for this pull request
Please review the contributing guidelines and wiki pages of this repository.