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

setGravity() shouldn't be called on text toasts #303

Closed
muhammadkamel opened this issue Apr 29, 2021 · 5 comments
Closed

setGravity() shouldn't be called on text toasts #303

muhammadkamel opened this issue Apr 29, 2021 · 5 comments

Comments

@muhammadkamel
Copy link

I am getting a warning "setGravity() shouldn't be called on text toasts, the values won't be used".
I am using the latest version of the package.

Fluttertoast.showToast(
msg: "Text here!",
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.BOTTOM,
timeInSecForIosWeb: 1,
backgroundColor: Colors.grey,
textColor: Colors.white,
fontSize: 16.0,
);

@iekara
Copy link

iekara commented May 4, 2021

I have same problem.

Thank you.

@akashvshroff
Copy link

I'm having the same issue. Thanks.

1 similar comment
@fatih38
Copy link

fatih38 commented May 15, 2021

I'm having the same issue. Thanks.

@18691899062
Copy link

18691899062 commented May 15, 2021 via email

@SittiphanSittisak
Copy link

How you fix this?
How I use toast in API 30?

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

7 participants