Simplification #30
Replies: 2 comments
-
|
Hi @wer-mathurin , I couldn't find enough time to analyze and think about it in a detail. However, you pointed out important parts, thank you! Firstly, this is what I have understood and came into my mind about the Text widgets: As you said we can change these options and enable users to provide their own custom text widgets (maybe they need a text widget with more parameters). So, I think what you said is sensible. Finally, what I'm thinking to implement is as follows:
Additionally, about the removing login texts and theme part:
|
Beta Was this translation helpful? Give feedback.
-
By default, the plugin can be use with nothing to do. Let say your BaseText expose some API. I include the Type for clarity |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
One use case is being able to hide the Welcome title or do more fancy stuff.
What do you think of being able to pass Widget instead of text for LoginText where it make sense and/or completely removing LoginText, I will show you later with example what I have in mind.
By default, if no widget it provided use a Text widget with default TextTheme. (exactly like today)
This can also remove the need of passing the TextTheme to the loginTheme.
If you need you style the Welcome here is what I have in mind...
If you need to change the Style
If you need to remove the widget and space.
By providing the languageOption is simpler to display the appropriate message
For customizing the TextFormField maybe we can use the standard InputDecoration instead of passing the text in LoginText and style in LoginTheme.
I think this will remove the need for multiple properties like welcomePadding. Since you can change the padding by providing yours :-)
Beta Was this translation helpful? Give feedback.
All reactions