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

how can i use 'custom light' for flutter web? #12

Open
kania-gh opened this issue Apr 8, 2022 · 2 comments
Open

how can i use 'custom light' for flutter web? #12

kania-gh opened this issue Apr 8, 2022 · 2 comments

Comments

@kania-gh
Copy link

kania-gh commented Apr 8, 2022

i would like to use this for flutter web, but it will be appear at the bottom of the screen and covers the whole space. i tried to wrap it in center or other widgets but it is impossible.

thank you.

@kania-gh
Copy link
Author

kania-gh commented Apr 8, 2022

I found one sollution for it and changed the code in this way, i think it has a better apperance in web:
in 'sheets.dart' file :
1- change 'width: double.infinity' for first Container to -> width: 500
2- change 'mainAxisAlignment: MainAxisAlignment.end' for Row in the second Container to -> mainAxisAlignment: MainAxisAlignment.center.
3- try to find description: Text('your text') in (_sweetSheet.show(... ) ) and add -> textAlign: TextAlign.center.
4- if you want you can add 'height' to your Text.

@CorneilleEdi
Copy link
Owner

Thank you for everything.
Yes, I think it's time to adapt the package to other platforms.
I will work on it.

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