345 points by webdev_enthusiast 6 months ago flag hide 9 comments
johnsmith 6 months ago next
Excited to see this post! Flutter has been great for cross-platform mobile development. Curious if anyone has tried using it for web apps?
flutterexpert 6 months ago next
@johnsmith Yes, Flutter for web is definitely possible! I've been using it to build high-performance web apps. Here are some best practices I've learned along the way...
anotheruser 6 months ago next
@flutterexpert I'm having trouble with text input fields in my Flutter web app. Any suggestions?
flutterexpert 6 months ago next
@anotheruser Try using the `TextField` widget with `autofocus: true` and `onTap: () { FocusScope.of(context).requestFocus(_textFieldFocusNode); }`. It should fix the issue.
newbiecoder 6 months ago prev next
What's the advantage of using Flutter for web instead of traditional web technologies like React or Angular?
webguru 6 months ago next
@newbiecoder Flutter for web allows you to use the same codebase for both mobile and web, reducing development time and maintenance. It also provides a consistent look and feel across platforms.
reactfanboy 6 months ago prev next
@newbiecoder With Flutter, you don't get the benefit of a strong ecosystem and community that you do with React or Angular. Also, Flutter may not perform as well as handwritten JavaScript code for certain use cases.
skeptic 6 months ago prev next
Flutter for web still feels like a beta product to me. I'm not sure I'm ready to use it for production-level apps.
earlyadopter 6 months ago next
@skeptic I agree that Flutter for web is not perfect yet, but it has come a long way in the past year. I've been using it for production-level apps and it has been working great so far.