-
Notifications
You must be signed in to change notification settings - Fork 151
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
Snackbars on iPad span the entire screen width #84
Comments
Thanks for the report @iRoachie. I'm guessing this would be a simple fix by setting some sort of max width on iOS. Happy to accept PRs! |
I don't mind doing it all, how would we get the width of the content? |
I didn't personally write the iOS implementation but I'm guessing one or both of these lines are what determines the width:
You might need to dig into the iOS UI APIs a bit to figure out what needs to be tweaked. This guide recommends Good luck and thank you for offering! |
hello, I see that this thread is old. Skimming through the documentation, I was thinking that it would be better to have an option that allows the developer to adjust the width of the snackbar, rather than having a fixed width. I personally would prefer that the snackbar take up the entire width if the screen no matter the size. Thinking about it, this shouldn't be difficult to implement. Rather than hard coding a specific width value, you would simply use a custom 'width' option that is added in the Let me know what you think |
thanks @TimCatana, sure I would accept a change like that for iOS! |
Hey been using your package for a while.
One concern I have is that Snackbars on iPad are full width compared to on Android where they only take up the required space.
Android:
iOS:
The text was updated successfully, but these errors were encountered: