Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on /r/flutterdev subreddit:

Flutter Stateful or Stateless?
I tried to create a simple form to validate user input data.
class UserForm extends StatelessWidget { final _formKey = GlobalKey<FormState>(); final TextEditingController usernameController = TextEditingController(); UserForm({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Form( key: _formKey, child: Column( TextFormField( controller: usernameController, validator: (value) { if (value == null || value.isEmpty) { return 'Please enter something'; } return null; }, autovalidateMode: AutovalidateMode.onUserInteraction, ), ElevatedButton( onPressed: () { print(usernameController.text); }, child: const Text('Check'), ), ), ); } } 
When I type something and delete it after, I get the error message Please enter something under the textfield.​I saw an official demo example with a form validation here: Build a form with validation | Flutter .Now, my question is: why do we need a StatefulWidget for a form, if the error message gets displayed in a StatelessWidget. The value of TextFormField is changing, not the custom form widget I created.​Can somebody explain me when to use stateless and when stateful?

October 21, 2021 at 01:08PM by Exorcistoo
https://ift.tt/30GL7vr
New post on /r/flutterdev subreddit:

Flutter for Web can bring significant benefits for a business if executed properly. Read this blog to get a detailed guide on how to create Flutter web apps.
https://ift.tt/3jpkdyJ

October 21, 2021 at 12:40PM by connectsteven
https://ift.tt/2Xyo9FR
New post on /r/flutterdev subreddit:

Selling a Website
I have a next js ecommerce website with a dashboard made in flutter and am hoping to find someone who'd be able to sell it for me in India(for a share of the price ofc). I can give more details through dms or a call if anyone's interested.

October 21, 2021 at 02:50PM by 50u1506
https://ift.tt/3E33WaQ
New post on /r/flutterdev subreddit:

Create Flutter apps without code for FREE using Nowa
We are happy to announce a new platform called "Nowa" where you can create Flutter apps for totally free without writing code.here you can see a tutorial of how to create a counter app using Nowa: https://www.youtube.com/watch?v=2oFDNmrkkQ0&t=1sWhy Nowa? read this article on Medium.​Be one of the first 500 users who will have access to our early version by signing up here.We would love to hear your thoughts about Nowa, you can reach us on our Website, Instagram, Youtube, LinkedIn, Facebook and Twitter.or send us an email on: [info@nowa.dev](mailto:info@nowa.dev)

October 21, 2021 at 03:26PM by Nowa_dev
https://ift.tt/3nwT0M3
New post on /r/flutterdev subreddit:

Flutter Login Page with wave animation
https://ift.tt/3jof6in

October 21, 2021 at 06:04PM by rrtutors
https://ift.tt/3niIJme
New post on /r/flutterdev subreddit:

freeRASP Update: Missing hero of Flutter World!
/r/FlutterDev/comments/q2j1ca/freerasp_update_missing_hero_of_flutter_world/

October 21, 2021 at 06:22PM by sergeychuk
https://ift.tt/3vxclQF
New post on /r/flutterdev subreddit:

Your app Terms of Service
Hey guys,I'm trying to integrate Twitter auth/share into my app, but it appears to require a link to my apps TOS, which I currently don't have. Is there a small amount of TOS that is acceptable (ie. I store your email address because we need it for the user, but if you delete your account everything is removed), or what?TOS generators seem to want $50 or more, which is great except for my app is meant to be free, and I'm already trying to figure out how to pay for the Apple store.Any suggestions?

October 21, 2021 at 06:16PM by ScottishRoss
https://ift.tt/3jkOCOz
New post on /r/flutterdev subreddit:

Roadmap for Flutter learning
Hello all the developers, I'm 18 years old and I know basics of java and C. I'm interested in learning Flutter so i thought to discuss it with the experienced ones. What is the roadmap of learning the flutter. What things should i learn first and What's the roadmap should i follow? Thank you

October 21, 2021 at 08:33PM by hanzalamalikk
https://ift.tt/3pnKkd8
New post on /r/flutterdev subreddit:

App Logic in repository or Bloc?
So this is something I have been struggling with. In my app I am using a UI -> Bloc -> Repository -> Provider -> Data pattern. Currently my provider just handles fetching the data and my repository class is doing some additional logic. My question is, should that additional logic really be moved into Bloc vs the repository? All my Bloc does is react to status changes from my Repo and wait for the UI to send a login/logout event which it then calls on the repository.​Example: LoginProvider: Pass the data to our backend.Repository: Call provider to actually trigger login and also store the received token to a secure Hive storage and add the authenticated value to a stream.Bloc: Read the stream from the repository and react to changes in that stream.UI: Listens to the Bloc for changes in the State (status from repo and user) and also add the Login event on button press.

October 21, 2021 at 09:30PM by claytoncasey01
https://ift.tt/2Zg5eAo
New post on /r/flutterdev subreddit:

My First Full Flutter App
This is the first time I make a ffull flutter app. although it does not use the internet but it still has a large code base and I refactored many parts of it from scratch until I reached a somehow state of satisfaction with it (I still have alot of optimal patterns to learn like coding without side effects...).​Anyway the app records, plays, and edits sound (using FFMPEG package for editing the sound).I will link the code on github here and you can fork/clone the repo and run the app. I havn't test it on ios, only android. Feel free to give me feedback about the organization of the code it will be much appreciated. The UI is not my concern now as the code cleanness is the greatest deal ever and once that is done everytthing else follows.

October 22, 2021 at 02:31AM by SnooJokes7874
https://ift.tt/2Xz3iCa
New post on /r/flutterdev subreddit:

Conditional Importing - How to compile for all platforms in Flutter
https://ift.tt/3pqC24l

October 22, 2021 at 12:37PM by Vanethos
https://ift.tt/3C5lvpP