We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Let takes this example
I don<t think there is a way to add the logo on top of the Welcome string.
I we add the ability to have something like this:
typedef WelcomeBuilder = Widget Function(String localizedString); AnimatedLogin( welcomeBuilder : (localizedString) => Column(...)...
typedef WelcomeBuilder = Widget Function(Widget defaultChild); AnimatedLogin( welcomeBuilder : (defaultChild) => Column(...)...
typedef LabelBuilder = Widget Function(LabelType type, String localizedString, Widget defaultChild); AnimatedLogin( labelBuilder : (type, localizedString, defaultChild) => switch(type) { LabelType.welcome => ..., _ => defaultChild}
This labelBuilder or welcomeBuilder is optional, so it will not break the API :-)
Another idea is use this feature to return a Record to make the alignment as well !!!
typedef LabelBuilder = (Widget, Alignment) Function(LabelType type, String localizedString, Widget defaultChild, DisplayType mobileOrDesktop); AnimatedLogin( labelBuilder : (type, localizedString, defaultChild, displayType) => switch(type) { LabelType.forgotPassword => (Alignment.centerRight, defaultChild) _ => (null, defaultChild)}
The text was updated successfully, but these errors were encountered:
bahricanyesil
No branches or pull requests
Let takes this example
![image](https://private-user-images.githubusercontent.com/39314023/303748158-f7bfb562-ec93-42a8-a6c3-7ab093bd5ff0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NTYwODYsIm5iZiI6MTcxOTc1NTc4NiwicGF0aCI6Ii8zOTMxNDAyMy8zMDM3NDgxNTgtZjdiZmI1NjItZWM5My00MmE4LWE2YzMtN2FiMDkzYmQ1ZmYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDEzNTYyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQwYzAxOTMyN2FjZjg5YmVmY2YwYzJkYTMwNTI3MzZjMzE4NWNmN2Y4ZjNjYmM0NjQ3YzgyOWNjNjc4YmU5OTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.E9EwBErmGn-VD0kGvx9D5L4qJUL5qjp2YIY4sMlZOpg)
I don<t think there is a way to add the logo on top of the Welcome string.
I we add the ability to have something like this:
This labelBuilder or welcomeBuilder is optional, so it will not break the API :-)
Another idea is use this feature to return a Record to make the alignment as well !!!
The text was updated successfully, but these errors were encountered: