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

Momentum: A super powerful flutter state management library inspired with MVC pattern with very flexible dependency injection.
/r/dartlang/comments/h12tim/momentum_a_super_powerful_flutter_state/

June 12, 2020 at 12:53AM by xamantra
https://ift.tt/2XUgP4w
New tweet from FlutterDev:

All AboutDialog πŸ’¬

Before you ship your Flutter app, learn how you can easily add formalities such as the legalese, version number, licenses, and other small print with a simple widget.

More #WidgetoftheWeek → https://t.co/uuofoT3ciZ pic.twitter.com/ZBk2nWuiSfβ€” Flutter (@FlutterDev) June 12, 2020

June 12, 2020 at 10:10PM
http://twitter.com/FlutterDev/status/1271535349664108544
New post on /r/flutterdev subreddit:

Form validation in Flutter
Validating user input before submission is a good thing to do if you want to improve UX and security. Because everyone can make mistake, your users too. You wouldn't like if user mistakenly typen his email johndoecorp.com and you need to contact him. You need to guess if correct email address is john@doecorp.com or johndoe@corp.com (I actually faced with this sort of issue with phone number field). So It's nice to have form fields validated before submission.Doing validation on client side also has another pro. It improves user experience. User don't have to wait 1-2 seconds to receive error message from the server.You need to verify fields on the server side too! Otherwise your app might be spammed with fake data. Why?I made a dart / flutter package to create different validation logics for example: string length validators, email, phone number, url, ip, and many more coming. Here's a simple code that validates if input is a valid email address and length is less than or equal to 50 characters.
import 'package:flutter/material.dart'; import 'package:form_validator/form_validator.dart'; final form = GlobalKey<FormState>(); Form( key: form, child: Column( children: <Widget>[ TextFormField( validator: ValidationBuilder().email().maxLength(50).build(), decoration: InputDecoration(labelText: 'Email'), ), Button( onPressed: () => form.currentState.validate(), child: Text('Submit'), ), ], ), ), 
It also supports multiple languages, localization. You can simply set locale by writing a line of code:
ValidationBuilder.setLocale('en'); 
Package: https://pub.dev/packages/form_validator
Repository: https://github.com/TheMisir/form-validatorI need help for adding more languages to this package. You can simply duplicate lib/src/i18n/en.dart file and translate messages to your language.Language files looks like that:
import '../form_validator_locale.dart'; class LocaleEn extends FormValidatorLocale { @override String name() => 'en'; @override String minLength(String v, int n) => 'The field must be at least $n characters long'; ... } 
Thanks for reading 😊

June 12, 2020 at 10:24PM by zMisir
https://ift.tt/30OdwxZ
New post on Flutter Dev Google group:

FLutter CallKeep
Hi everyone. Has anyone used https://ift.tt/2UCjCgK to get the incoming calls number? I'm having a hard time using this package.

June 13, 2020 at 12:06AM by wael Abdulaziz
https://ift.tt/2BTvODh
New post on /r/flutterdev subreddit:

Can you save/load a screens widget tree to/from JSON
I have this idea for a kinda note taking web app, specifically for D&D DMs. But there are a lot of different techniques and ways to store information. So had the thought that it would be cool to create a note taking app, kinda like oneNote, but users can create templates for the pages. But not sure how I would save the templates that the users create so that it saves the widget tree and can build the screen from that template.Is it possible to export a widget tree as a json file and have all the fields saved that way. Or is there another approach to where I could create a page creator for the users (kinda like wordpress or wix) and then they can save that page as a template and use it.

June 13, 2020 at 12:51AM by D-Ring86
https://ift.tt/3hqNBlx
New post on /r/flutterdev subreddit:

Flutter Tutorial | Google Sign-in using Firebase-Auth | Firebase Tutorial Series | EP-02
https://www.youtube.com/watch?v=e-2eQGGJSIY

June 12, 2020 at 04:21PM by saheb1313
https://ift.tt/2B1ecVG
New post on /r/flutterdev subreddit:

Recommended platform to get a flutter dev to finish a project
I have an app that due to time constraints I haven't been able to finish myself and I'm looking to get a flutter dev to pick up where I left off and finish my app. I'm looking for a platform that allows me to post my needs and get quotes from flutter devs. What platform do you recommend? I hope I'm not braking rule 6, since I'm only asking for a platform. Thank you!

June 13, 2020 at 03:32AM by ChuckQuantum
https://ift.tt/3dZMEOX
New post on Flutter Dev Google group:

press phone return button, close both keyboard and page together
when press return button on phone, only keyboard closes, while i have to press return button again to let the whole page close. so when press return button, how to close both keyboard and page the same time?

June 13, 2020 at 05:49AM by che.ca...@gmail.com
https://ift.tt/30DQzx6
New post on Flutter Dev Google group:

Flutter WillPopScope
Hello, In my tabs on 3rd tabs I want to use WillPopScrop and I did this : class _ProfileState extends State
New post on /r/flutterdev subreddit:

A Flutter + SQLite Tutorial !
If you've ever wanted to use SQLite database in Flutter, here's a simple tutorial about it:https://ayusch.com/using-sqlite-in-flutter-tutorial/Happy to answer any questions in the comments section :)

June 13, 2020 at 07:29AM by ayusch
https://ift.tt/3d23Y4x
New post on Flutter Dev Google group:

Error in flutter build appbundle command after upgrading android studio to version 4.0.0
$flutter build appbundle Exception in thread "main" java.lang.RuntimeException: Base: GRADLE_USER_HOMEGRADLE is unknown at org.gradle.wrapper.PathAssembler.getBaseDir(PathAssembler.java:97) at org.gradle.wrapper.PathAssembler.getDistribution(PathAssembler.java:44) at

June 13, 2020 at 07:40AM by Pradeep Kumar Reddy Kondreddy
https://ift.tt/3cVETsg
New post on Flutter Dev Google group:

Fire function after render
Hi I have a custom Widget that I'm building and I'm look for a way to fire a function after my Widget get rendered . "NOT BEFORE NOT DURING " because I wanna use some globalKeys that I had saved during the rendering time

June 13, 2020 at 10:26AM by ΨΉΩ„ΩŠ Ω…ΩˆΨ³Ω‰
https://ift.tt/2AwfdFo
New post on /r/flutterdev subreddit:

I just finished a flutter course (taught by Angela). It was beginner - intermediate. What course should I take next to advance my learning?
your text post requires a body

June 13, 2020 at 11:42AM by jemsmakaks
https://ift.tt/2XW2YL6
New post on /r/flutterdev subreddit:

flutter_libphonenumber - The most complete libphonenumber wrapper with automatic masking and real-time formatting
https://ift.tt/3cTAmq1

June 13, 2020 at 12:20PM by bees4thees
https://ift.tt/3dZ8D8F
New post on /r/flutterdev subreddit:

Having trouble with facebook login
I have generated a hash key using keystore and saved it on facebook settings. The app runs fine when im in the android emulator but when I build and install the apk to test on my phone, error says key hash xxxxxx does not match any stored key hashes.What am I missing? How can I change the key hash to match the one I've saved on fb?I'm using the flutter_facebook_login plugin from pub dev

June 13, 2020 at 01:14PM by jommar
https://ift.tt/3hoU0xS
New post on /r/flutterdev subreddit:

Patient Simulator with Flutter and Firebase
Currently developing a mobile application for local paramedic students to practise their clinical reasoning skills using a real-time virtual Zoll X Series defibrillator with tester and student mode using Flutter and Firebase.https://github.com/snakeku/Patient-Simulator-with-Zoll-X-Defibrillator

June 13, 2020 at 01:40PM by solidSnakeku
https://ift.tt/3hpfwT3