Skip to content
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

Question: Use dynamic text in title or message text #39

Closed
pbasl opened this issue Apr 7, 2019 · 3 comments
Closed

Question: Use dynamic text in title or message text #39

pbasl opened this issue Apr 7, 2019 · 3 comments

Comments

@pbasl
Copy link

pbasl commented Apr 7, 2019

Hello;
Can the text in the flushbar be dynamic??

Trying to do something like this, but not working
Flushbar( title: 'Hey ${user.fullName}', titleText: Text(user.lastName), message: 'You have successfully logged in ...', duration: Duration(seconds: 2), )..show(context);

@AndreHaueisen
Copy link
Owner

Hi @pbasl
Short answer, no. To change the text you have to create another instance.
What you can do to show progress is use the built-in progress indicator by setting showProgressIndicator = true and then use progressIndicatorController to control the progress

@pbasl
Copy link
Author

pbasl commented Apr 8, 2019

Sorry I don't understand what you mean by 'create another instance'??

@AndreHaueisen
Copy link
Owner

Arguments are final. You need to create a new Flushbar if you want to display a new text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants