Comments (9)
What the OP suggests is valid. The dialog widget seems not that flexible in ways such that I can't get full control of the dialog contents. For instance, I can't change the text style of the dialog content texts, or at least I can't find a way to do that. So to add more parameters to the existing dialogConfig
interface or to leave that dialog part completely to the user seems like a better idea. And I prefer the second one.
from pin_code_fields.
I've consulted with a UX designer before making decision on UI. The pasted code should be asked from the user.
And there are these parameters which solve the localization problem
`/// title of the [AlertDialog] while pasting the code. Default to [Paste Code]
final String dialogTitle;
/// content of the [AlertDialog] while pasting the code. Default to ["Do you want to paste this code "]
final String dialogContent;
/// Affirmative action text for the [AlertDialog]. Default to "Paste"
final String affirmativeText;
/// Negative action text for the [AlertDialog]. Default to "Cancel"
final String negativeText;`
from pin_code_fields.
Did you mean the localization for the pasted value?
from pin_code_fields.
from pin_code_fields.
In that case, there must be a default one, as developers might not have the time to add their own dialog widget, they just want to use a default one. Or if someone wants to modify then they can their own, but there should be a default one always.
from pin_code_fields.
Thanks for your feedback, there should always be a default configuration which would automatically generate default dialogs and stuffs for user as many developers might not the need customization. And for the one who needs customization, how would you suggest it to be? Should they be able to able to change content only or they can build the whole widget with other buttons and stuffs?
from pin_code_fields.
It's all up to you. If you don't want to remove the current implementation of the dialog widget and API, because it seems like a good idea since many users might not need customization, then please don't as it's a good and valid reason. I just suggested to leave it completely to the user (maybe as an event listener as the OP implied) because that dialog part seems like not a part of the library. If you don't want to remove it, then leaving the whole building process of the dialog might not be a good idea. The two seem really diverse.
Whether you add more configurations to the dialogConfig
or leaving the whole process as an event, either one should work.
from pin_code_fields.
No updates on this?
from pin_code_fields.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from pin_code_fields.
Related Issues (20)
- Bug: Wrong code prefix for Italy
- Change space between pins HOT 1
- Cursor animation HOT 1
- same issue with flutter version3.10.2 HOT 1
- Pincode field box flickers when moving to next box HOT 1
- If the keyboard is dimissed it never shows again even on tap! HOT 1
- How to change `helperStyle` for "Enter X digits code" text for Dark Background? HOT 3
- Prefix text look HOT 1
- fill color with input is taking app theme. HOT 1
- Flutter integration Test Hangs with `pumpAndSettle()` when using `PinCodeTextField` HOT 3
- PinCodeFieldShape.circle how add custom radius
- Unable to Input text using Selenium for automation HOT 1
- How to change focus by click HOT 1
- Background item color HOT 1
- Improvement: Allow to avoid showing the paste confirmation dialog HOT 1
- PinCodeTextField causes constant redraws HOT 5
- Unexpected shape HOT 1
- autofocus on PinCodeTextField with keyboard on initial screen HOT 1
- A color with a non-1.0 opacity appears differently for a fill color vs color
- How to change Border Color ???? HOT 2
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 pin_code_fields.