Comments (9)
I think adding an argument (showCopyButton) will be enough for this case. It's best to do the simplest method now, and change to more advanced later if there comes a use-case for that
Sure! works for me :)
On other note, check the available Icons and think the ContentCopy one is the right one.
Yeah looks good! We can go ahead with this.
You can check it out here: https://github.com/mrghosti3/GreenStash/tree/note-copy
Feel free to create a PR if you think it's ready. I'll review it tomorrow since it's late night where I am.
from greenstash.
Okay, will create a PR later. Have a great evening.
from greenstash.
Could implement this feature quickly. The previous ones are a bit more difficult for me as I'm new to kotlin overall, used to older way (Java and XML) of developing Android apps.
from greenstash.
Sounds like a good idea. I think adding a copy button here, which is visible after expanding, would be a better idea than long-press, as long-press can collide with the card's collapse UI which happens on single tap.
from greenstash.
How about adding a button on the left of the arrow? This could allow to skip needing to expand the note card.
from greenstash.
I don't think that would be great from a UX perspective because then it can only be an icon button, which would be very small and easily misclicked, leading to the expansion of the notes card instead of the text being copied. The other solution allows us to have an actual button with a decent size, which cannot be easily misinterpreted. I think something like (copyIcon "copy")
using FilledTonalButton()
would look much nicer.
from greenstash.
Understandable, then a copy button below text sounds like a good way to do. Gonna try and create it then.
ps. Also to clarify, it's a Filled tonal button with an icon or without?
from greenstash.
Great!
Also to clarify, it's a Filled tonal button with an icon or without
With, you can probably use something like Icons.Filled.Copy
combined with ButtonDefaults.IconSpacing
for placing icon and a text inside Row()
I think this could be implemented by preferably overloading or adding two additional parameters in ExpandableTextCard()
, which is used to show notes. One is for deciding whether we should show a copy button (something like showCopyButton: Boolean
), and the other is a callback (onCopyClicked(text)
) which would allow us to handle copying of the text, this would allow us to implement the feature while also ensuring reusablility of common composables at the same time
from greenstash.
I think adding an argument (showCopyButton
) will be enough for this case. It's best to do the simplest method now, and change to more advanced later if there comes a use-case for that.
On other note, check the available Icons and think the ContentCopy
one is the right one.
You can check it out here: https://github.com/mrghosti3/GreenStash/tree/note-copy
from greenstash.
Related Issues (20)
- Unable to back up app data HOT 5
- [Feature Request] Simple finance tracking HOT 4
- [Feature Request] Replace/change top bar menu HOT 5
- [Feature Request] pick goal images over gallery / file manager HOT 3
- [Feature Request] Remove fractions from some currencies HOT 3
- [Feature Request] Remember last filter options HOT 1
- [Bug]: Stop showing the msg Authentication Succeeded HOT 1
- [Feature Request] add a transaction description HOT 1
- [Feature Request] Import data from other apps / import CSV HOT 2
- [Feature Request] Make icons more consistent in style, aligning with Material Design 3 guidelines HOT 1
- [Feature Request] Simplify No. to Read HOT 1
- Fix double precision issue when depositing via reminder notification
- Break down larger composables into smaller functions
- Remove propagations of Experimental APIs
- Add .CSV Import & export functionality
- Add amoled black theme
- Recommend to provide an archiving function for data HOT 1
- Consume backhandler calls to close search bar if its open
- [Bug]: App reliably crashes on click of 'Default Locale' in the settings menu HOT 30
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from greenstash.