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

Access firebase via the credentials json file?
Is it possible to access firebase via the credentials json file rather than updating the files required by iOS and Android?

September 20, 2020 at 04:04PM by mrgnhnt96-dev
https://ift.tt/2RHCFEL
New post on Flutter Dev Google group:

How do i fix this error?
[image: Capture1.PNG]

September 20, 2020 at 04:26PM by Kum Hon Loke
https://ift.tt/3hQTAz4
New post on /r/flutterdev subreddit:

<b>How we built our Flutter app</b>
We just launched <strong>PlanHive</strong> on the <em>Play Store</em> and the <em>App Store</em> after 7 months of development. PlanHive is an app to organize events of all types, from catch-ups to entire trips. We are a team of two people, one working on the app full-time and one part-time. This is a technical overview of how we built our app. It doesn't cover everything, but we're happy to answer any questions. Hopefully someone will find this information useful!Main FeaturesCreate an eventAdd multiple activities to an eventUpvote/downvote an activityView invitees and their responses (yes, no, maybe)Share photos in the event albumSend text/photo messages in the event chatSend direct messages to your contactsCreate and send messages in a group chatServer Stack<em>Spring Boot</em> based backend written in Java<em>Elastic Beanstalk</em> to host our servers<em>DynamoDB</em> to persist the user data<em>S3</em> for blob storage (e.g. uploaded photos)<em>SES</em> for email verificationClient-Server CommunicationThe client communicates with the server using JSON over a custom REST API.We use polling to update the app's content:We created an API endpoint to fetch new feed entries using a specified timestamp as the cutting point. The client invokes the endpoint in response to user input (pull to refresh), push notifications, and some key events (e.g. app starts or resumes from background).We use a <em>Fan-out on Write</em> approach to create the user feeds on the server. We maintain an index for each user (feed) where each entry points to another resource in the database (e.g. message). The feed entries are sorted by timestamp, so the server can run a very efficient query to fetch a section of the feed.We use <em>Firebase Cloud Messaging</em> to push updates to the client.Client Stack<em>Sqflite</em> package to use Sqlite in Dart<em>Firebase Messaging</em> package to handle notificationsPlenty of other packages, too many to list allClient ArchitectureThe client logic tries to follow the <em>MVC</em> pattern:<em>Model</em>:<em>API layer</em>: creates and sends API requests and parses the results<em>Storage layer</em>: saves and load data to and from the local database<em>Service layer</em>: this is the entry point to the <em>Model</em> used by the <em>Controllers</em>. It uses the API and Storage layers to provide and manipulate data. When providing data the service layer reads from the local database. When manipulating or creating new data, the API layer is usually invoked first and the result is saved to the local database.<em>View-Controller</em>: views are obviously just widgets, either stateful or stateless. We didn't structure our code to separate <em>View</em> and <em>Controller</em>, but usually the <em>View</em> part is contained in the <code>build</code> method and the <em>Controller</em> is the rest of the <code>State</code> class.State management:We didn't use any fancy package or framework for state management. We are relying purely on the <code>State</code> class of our stateful widgets. Because almost all our <em>Model</em> functions are async, <code>initState</code> will usually start an async operation that loads the state from the database. This means the <code>build</code> method has to take into account that some parts of the UI may not be ready yet, usually by null-checking before using any of the state properties. After any state-changing operation completes (e.g. following a user interaction or a server sync) we don't try to patch the state with the bits that changed. We instead reload the whole state from the database and call <code>setState</code> when the operation completes.Our <code>State</code>s subscribe to a <code>RouteObserver</code> (that we add to the <code>Navigator</code> at the start) and automatically reload the state when the top route pops off (see <code>RouteAware.didPopNext</code>).Our <code>State</code>s subscribe incoming…
New post on /r/flutterdev subreddit:

How I setup base for Flutter project (open source)
Hello,This is how I setup my apps for commercial or personnal projects. It's my template :).I always used the following packages, this github repo show how I used them.https://github.com/EArminjon/flutter_base_projectRoutingTranslations (i18n_extension)ThemesPreferences (shared_preferences, if needed i used sembast to stock lots of data)Requests (http)State management (flutter_bloc)Splash screen (flutter_native_splash)App icon (flutter_launcher_icons)What did you use in addition in your apps ?

September 20, 2020 at 06:02PM by FlutterFreelanceEng
https://ift.tt/3iP2heL
New post on /r/flutterdev subreddit:

How do you deal with large (50-100mb) video uploads? Library or background service or another approach?
Hello,
I am just wondering if any of you here have dealt with large video/file uploads and if so how? I am looking for ideas or libraries or best ways to deal with it. I have tried Dio but there seems to be issues with it uploading empty FormData.If it's possible I'd prefer it to run in the background while keep using the app, but if it's not then it's ok. Would appreciate any help with this. Thanks!

September 20, 2020 at 07:01PM by ry_ryan
https://ift.tt/2RJishI
New post on /r/flutterdev subreddit:

VSCode Barrel File Generator
Hello Flutter developers!Well, I have been programming with Flutter for quite a long time, and as I gained more experience with the framework and the Dart language I started having lots of folders and files in my project. This made some of my files have both long import statements (due to folder nesting) and many lines just for the import statements. Since I know a bit of Javascript, I started using barrel files for my folders and it definetely made my code better.However, you still have to be updating the barrel file yourself and I always felt like an automated way of creating the barrel file would be great! That's is why I came with the idea of creating the Dart Barrel File Generator.It has just been released but it works really well!You can get all the information and the instructions in the marketplace.Please, if you find any bug or something you think it could be improved do not hesitate on opening an issue in the repo. I still have to set up some things in the repo!It will make me very happy if this extension helps someone other than me!Good coding! 💻

September 20, 2020 at 08:11PM by mikeddg
https://ift.tt/2H9Yzya
New post on /r/flutterdev subreddit:

<b>Proposal for upcoming get_it mixin API</b>
Proposal for the coming get_it mixin for Widgets as I was asked by users to help binding the UI to the objects in GetIt. Highly inspired by <a href="https://mobile.twitter.com/remi_rousselet">@remi_rousselet</a> 's Hooks and provider in this aspect. For people using Hooks I plan a similar GetItHook. Please tell me what you think`` <code>/// all the following functions can be called inside the build function of a Widget but also /// in e.g. in</code>initState<code>of a</code>StatefulWidget`. /// The mixin takes care that everything is correctly disposed./// retrieves or creates an instance of a registered type [T] depending on the registration /// function used for this type or based on a name. /// for factories you can pass up to 2 parameters [param1,param2] they have to match the types /// given at registration with [registerFactoryParam()] T get<T>({String instanceName, dynamic param1, dynamic param2});/// like [get] but for async registrations Future<T> getAsync<T>({String instanceName, dynamic param1, dynamic param2});/// like [get] but with an additional [select] function to return a member of [T] R getX<T, R>(R Function(T) accessor, {String instanceName});/// like [get] but it also registers a listener to [T] and /// triggers a rebuild everytime [T] signals a change T watch<T extends Listenable>({String instanceName});/// like [get] but it also registers a listener to the result of [select] and /// triggers a rebuild everytime signals [R] a change /// useful if the <code>Listenable</code> [R] is a member of your business object [T] R watchX<T, R extends Listenable>( R Function(T) select, { String instanceName, });/// like watch but it only triggers a rebuild when the value that the function /// [only] returns changes. With that you can react to changes of single members /// of [T] T watchOnly<T extends Listenable>( Object Function(T) only, { String instanceName, });/// a combination of [watchX] and [watchOnly] R watchXOnly<T, Q extends Listenable, R>( Q Function(T) select, Object Function(R) only, { String instanceName, });/// subscribes to the <code>Stream</code> returned by [select] and returns /// an <code>AsyncSnapshot</code> with the latest received data from the <code>Stream</code> /// Whenever new data is received it triggers a rebuild. /// When you call [watchStream] a second time on the same <code>Stream</code> it will /// return the last received data but not subscribe another time. /// To be able to use [watchStream] inside a <code>build</code> function we have to pass /// [initialValue] so that it can return something before it has received the first data AsyncSnapshot<R> watchStream<T, R>( Stream<R> Function(T) select, R initialValue, { String instanceName, });/// awaits the <code>Future</code> returned by [select] and triggers a rebuild as soon /// as the <code>Future</code> completes. After that it returns /// an <code>AsyncSnapshot</code> with the received data from the <code>Future</code> /// When you call [watchFuture] a second time on the same <code>Future</code> it will /// return the last received data but not await another time. /// To be able to use [watchStream] inside a <code>build</code> function /// we have to pass [initialValue] so that it can return something before /// the <code>Future</code> has completed AsyncSnapshot<R> watchFuture<T, R>( Stream<R> Function(T) select, R initialValue, { String instanceName, });/// Pushes a new GetIt-Scope. After pushing it executes [init] where you can register /// objects that should only exist as long as this scope exists. /// Can be called inside the <code>build</code> method method of a <code>StatelessWidget</code>. /// It ensures that it's only called once in the lifetime of a widget. /// When the widget is destroyed the scope too gets destroyed after [dispose] /// is executed. If you use this function and you have registered your objects with /// an async disposal function…
New post on /r/flutterdev subreddit:

Learn Why Google rewritten Google Pay app in Flutter
Are you building multi platform product for global user base, you should read this before you start development. Learn more about Why Google has rewritten Google Pay app completely in Flutter.Read More

September 20, 2020 at 11:05PM by mobilelabs_in
https://ift.tt/3kCmIf8
New post on /r/flutterdev subreddit:

Does it really make sense to use Springboot as backend?
Hi guys,​I've been reading here and there, just to get an idea, does it really makes sense to use springboot as backend for Flutter? And if yes, which are the cases where it really makes a difference?Thank you so much for the answers

September 20, 2020 at 11:38PM by Beppius
https://ift.tt/2RPYiT3
New post on /r/flutterdev subreddit:

advanced flutter
Hello guys, is there any good reference/course/roadmap to learn advanced flutter+dart?
I've finished the 2 popular courses in Udemy -Angela and Academind(max)- and made many simple apps that use APIs/databases, native features etc. but I still feel I am missing a lot, like State management with Bloc or Redux and I don't feel like I can make stunning designs like those in flutter/examples. so what should I do?
I really appreciate your tips guys so thank you in advance.

September 21, 2020 at 01:29AM by elmomani
https://ift.tt/3iUL1ow
New post on /r/flutterdev subreddit:

Flutter flatbutton widget in detail
https://ift.tt/32M5WEo

September 21, 2020 at 06:39AM by nareshpradeep
https://ift.tt/2RMgvkI
New post on /r/flutterdev subreddit:

Google Pay Select Flutter As a Product Development Platform - Google Pay Flutter
https://ift.tt/2ZUi5W8

September 21, 2020 at 07:02AM by sagarshende
https://ift.tt/2FLR5kJ
New post on Flutter Dev Google group:

Captcha Work
Work from Home Captcha Entry work if Any one interested just share the Details to Email:d....@gmail.com client:2 Captcha

September 21, 2020 at 07:36AM by D Rajesh
https://ift.tt/35RWGAv
New post on /r/flutterdev subreddit:

Advanced begginer
Hi there! I'm new in this community, so 🖐️ to everyone.I'm learning Flutter and Dart for about 2 months now. Dart is quite easy language for me cause I know Java pretty well. But still after this time I have problem to write something all by myself without using Internet. So I want to systematize my knowledge. What do You think about eg. Udemy courses? Are they worth for person like me - are they interesting even when I know basics? Maybe You can recommend something for me.And I know - there is a really good documentation wrote by Flutter devs. However, I'm kind of person which using documentary when have a specific problem.Thanks for Your time.

September 21, 2020 at 08:18AM by dolszewski97
https://ift.tt/2Eik7HR