-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PAINTROID-737: Add Pipette Tool #78
base: develop
Are you sure you want to change the base?
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls fix conflicts
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.