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

I made an early draft of a form library called Former that is inspired by Formik.
One of my favorite react libraries is formik. It is an elegant form building library that drastically reduces boilerplate for keeping track of values, form validation, and form submitting. As far as I know there isn't anything similar in the Flutter world, so I tasked myself to make one. I would really appreciate feedback from the community!Featuresdisable entire formdeclarative form validationno more controllers/manual tracking of valueseasy error handlingExampleFirst off, some simple example code.The form:``` part 'my_form.g.dart';class MyForm = _MyForm with _$MyFormIndexable;@Formable() abstract class _MyForm implements FormerForm { String username = ''; String email = '';@FormableIgnore() String ignored = '';@override Future<void> submit() { // TODO: implement submit return Future.value(); } } ```Consuming the form,MaterialApp( title: 'Former example', home: Scaffold( body: SafeArea( child: Former( form: () => MyForm(), schema: () => MyFormSchema( username: StringValidator() ..min(10) ..max(50), email: StringValidator()..email(), ), child: _Form(), ), ), ), );...and the _Form widget:Column( children: [ FormerTextField(field: MyFormField.username), FormerError(ofField: MyFormField.username), FormerTextField(field: MyFormField.email), FormerError(ofField: MyFormField.email), ElevatedButton( onPressed: () { Former.of(context, listen: false).submit(); }, child: Text('submit'), ), ], );Behind-the-sceneAs you may already have noticed, this library relies on code generation to provide the flexibility of formik. The library will generate three things:A class that makes the form "indexable" via the bracket operator.An enum class that contains all the fields of the form to avoid magic strings.A schema class that lets you specify the schema of the form.Behind the scene, everything is being keep tracked of with a ChangeNotifier which is provided by a ChangeNotifierProvider. Every widget under the provider can access the form via Former.of(context). That means, apart from the built-in widgets that are provided by Former, you can make your own form widget that consumes the form.Githubformer_genformerIt is still very early in the development stage, so features are not at all complete.Again, I would really appreciate feedback from the community, so no matter how critical, just bring it on!

May 05, 2021 at 01:43PM by MrCreeper1008
https://ift.tt/3tmbsYn
New post on Flutter Dev Google group:

(iOS) Firebase Auth Sign in With Phone Number: Error after adding ' pod 'Firebase/Auth' ' inside Podfile
Hi Community, I posted this question on StackOVerflow but haven't had any guidance/ replies yet-- just thought I'd give it a try here! And thanks :) *Note: Also, some of the issues I've had so far are because I'm using a 2020 M1 Silicon Valley Mac... I'm not sure if this is another issue

May 05, 2021 at 05:11PM by Andrew Villegas
https://ift.tt/3vPnL1f
New post on Flutter Dev Google group:

Doubt in flutter
Hi guys I am trying to create a fully functional dating app in flutter where we match 2 users and upon matching I need to chat with them and I tried implementing it using firebase, firestore and mobx but what happens is that it is taking the user id that I have already registered and I am not

May 05, 2021 at 05:16PM by P Sanjeevi
https://ift.tt/3eZjbGC
New post on Flutter Dev Google group:

problem
can any one help me to solve this problem Using dart [image: WhatsApp Image 2021-05-05 at 7.52.22 PM (1).jpeg]

May 05, 2021 at 08:07PM by ola7...@gmail.com
https://ift.tt/3tkn2TN
New tweet from FlutterDev:

🔴 The Flutter #GoogleIO schedule is LIVE 💙

Google I/O is back, online, and free for everyone! Save your spot and sign up for three days of great Flutter content.

Keynotes
Workshops
AMA Sessions
Meetups

...and more!

Register now 👉 https://t.co/6oe00GmV0l pic.twitter.com/zguMlssyuR— Flutter (@FlutterDev) May 5, 2021

May 05, 2021 at 08:06PM
http://twitter.com/FlutterDev/status/1390005011950620676
New post on /r/flutterdev subreddit:

Looking for flutter mentor!
Hello everyone, I am new to flutter and looking for a mentor to guide me in my learning journey. I have good experience with Python and got amazed by cross platform application development capabilities of flutter and started learning it.I would like someone to talk to, ask basic-dumb flutter questions, discuss projects- implementation approaches, share/exchange code knowledge, review my code.I am open to connecting with other flutter learners for collaboration. Please feel free to comment or send a DM if interested.

May 05, 2021 at 09:26PM by shubham8garg
https://ift.tt/3b5c7XZ
New post on /r/flutterdev subreddit:

android studio or Xcode
hi, I'm just new at the macOS and I want to learn flutter in order to create android and iOS apps, the question is, do I need to use Xcode or android studio or both for developing in flutter and dart?thanks

May 06, 2021 at 12:44AM by Ok-Being-6587
https://ift.tt/3eUDjK4
New post on /r/flutterdev subreddit:

Flutter Dev on M1 MacBook or Mac Mini
Hi everyone. I'm about to purchase a Mac of some sort for the sole purpose of building, testing and deploying an app for IOS. The bulk of the development will be done on other systems while testing for Android & Web, so day-to-day use is not something I care much about.The current plan is to pick up a Mac mini (M1) with 8Gb of memory (cheapest option). Just wanted to see what the community thinks before moving in on with the purchase. Here are a few things I'm wondering.Do you have issues running Android Studio / building flutter apps on M1 Macs?Should I go for 16 Gb of memory? Is the performance on an 8 Gb M1 horribly slow or unable to complete builds?Any other thoughts?

May 06, 2021 at 12:36AM by JBarCode
https://ift.tt/3nRMXB9
New post on Flutter Dev Google group:

bottom navigation
Hello friends. I'm new to flutter. Please help me solve the problem. How to create a bottom navigation with nested screens so that absolutely all screens are stored on the stack. The bottom tab bar was saved on all screens (nested ones too). The back button on the android returned sequentially

May 06, 2021 at 06:43AM by Евгений К
https://ift.tt/3emU81j
New post on /r/flutterdev subreddit:

I recently updated my project from v1.22.6 of Flutter SDK to v2.0.6. But I am not able to build the iOS build.
Recently, I have migrated my project from v1 embedding to v2 embedding in flutter and since migration, I am facing an issue of build creation for ios. Whenever I start project building on pod install command it give me an error.​[!] Invalid `Podfile` file: no implicit conversion of nil into String.# from /Users/cbindia/Documents/mpa_app_test/ios/Podfile:57# -------------------------------------------# unless File.exist?(copied_framework_path)> FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)# end# -------------------------------------------​I tried all the different ways mention in GitHub like removing Podfile and Podfile. lock. Updating version, just one thing is not checked like deletion of ios folder and use flutter create which I can't do in the project because it may give conflict for the app on bitrise.Any help appreciate it. If Flutter team can point what step need to done

May 06, 2021 at 08:59AM by ankittale
https://ift.tt/3h991WG
New post on /r/flutterdev subreddit:

AR Core on Flutter vs on native Kotlin
I will be working on a open source project with a Museum over at a my country and we are looking into creating an AR or VR experience to view artifacts and sceneries in a virtual enviroment. I am a React/React Native developer and support for AR and VR is not good imo or atleast I have not found a library yet. I've been thinking on going native with kotlin and AR Core and further down the line learn Swift, but I just found out flutter has a plugin for AR Core, so I was wondering what are your opinions or how has your experience been when working on AR or VR apps using Flutter?

May 06, 2021 at 08:05AM by Crispness
https://ift.tt/3nTihj9
New post on /r/flutterdev subreddit:

Is there any way of getting 4 space indent in Android Studio ?
2 spaces indent is just too small for me, I can't follow the code.From version 4 they removed the custom formatter, and now even the workaround that I found here: https://youtrack.jetbrains.com/issue/WEB-41628 isn't working anymore.Whomever came up with the idea of forcing everybody in the world to use their preferred formatting style can go sit on a cactus, because they are a pretentious asshole.I read the "reasoning" behind it, and it's BS. If you want all public code to be the same, enforce the formatting on packages submitted to pub.dev.But for my own private code that will never be made public, I should be able to use whatever the hell formatting style I want.This makes me so angry and frustrated I might drop Flutter/Dart altogether like a bad habit despite having spent about 2 years on it, and having developed a mobile app and a desktop app so far.And the answers from the guy from JetBrains don't help, either, acting like yet another pompous asshole.All this could have been avoided by enforcing the usage of TABs and letting each dev decide the size of the TAB. That way repository code can be the same but it can look different in each IDE.It blows my mind that so many devs are for spaces instead of TABs, when TAB is the interface, and the spaces are the implementation. Use the interface, then define your own implementation.

May 06, 2021 at 10:53AM by kyle_dai
https://ift.tt/3tsjC1s
New post on /r/flutterdev subreddit:

Does anyone know any tutorial with step tracker?
Hey, so I started learning flutter 2 moths ago. I'm still finishing udemy course that I bought but there isn't anything about counting steps. I need this future for app that I want to create. I saw some pedometer package but it seems very complicated and I would like to understand what should i do. Thank you

May 06, 2021 at 11:35AM by Lava2k19
https://ift.tt/3vMO8Vu
New post on /r/flutterdev subreddit:

Is it technically possible to create a new dialer?
I know you can launch a phone number to get the stock phone app to dial the number, but can you also develop your own dialer UI and never leave your own app when making calls?

May 06, 2021 at 02:00PM by AddictedToTech
https://ift.tt/3elmp8r
New post on /r/flutterdev subreddit:

How to better manage business logic in your Flutter apps 🦋 My approach on how monorepo will help you better manage business logic in your apps. I hope it'll bring you some value. SSR is coming back so should monorepos 😉
https://ift.tt/3enZl8S

May 06, 2021 at 01:59PM by ThatLukeUrban
https://ift.tt/2PZDpYA
New post on /r/flutterdev subreddit:

Spotify SDK or MusicKit on Flutter
Warning - non programmer probably asking basic questions 🙈Hi guys,I am the owner of a native iOS app, MusicHub. MusicHub currently uses the Spotify API to pull information, in future I will want to implement its full SDK so the users can play music through the MusicHub.I also want to create MusicHub on android and I have just discovered Flutter. It seems awesome!I’m just wondering if anyone has had any experience with either the Spotify SDK or Apples MusicKit to pull song information and play music on both iPhones and Androids? Does it work?Any thoughts or advice before I hire a dev would be greatly appreciated. Thanks

May 06, 2021 at 01:17PM by gamgoumy
https://ift.tt/3uouy1t