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

Flutter and the Web. Your experience?
So how's Flutter for the web?Good aspects, bad ones, what is it good for, and bad for.. what's your experience?

May 10, 2020 at 09:21PM by Robert_Bobbinson
https://ift.tt/3bmLET3
New post on /r/flutterdev subreddit:

<b>I made a simple meditation app with Flutter in ONE WEEK</b>
I was just looking for a clean implementation of a meditation app. I just want something that would get me to meditating as fast as I can.I don't want to sign up or be offered a subscription or a paid course, or to even hear a guide. The most popular ones, <strong>Headspace</strong>, and <strong>Calm</strong> had IAPs and probably some sort of tracking (to keep the shareholders informed! Results have to be measured somehow!).I really just wanted a simple meditation app that got to the point as fast and as beautiful as possible.So I made my own app: <strong>justBreathe</strong>It's simple a meditation timer. You determine how long the session is; if you want a ticking timer or a beautiful animation; and if you want to hear a gong at the beginning and end of the session.This is my gift to the world. If this app helps someone attain clarity, and relaxation, even just one person, then all of the man-hours I've put into it would be worth it.How Flutter enabled my VisionFlutter really helps developers iterate VERY quickly. Especially for a solo-project, where you literally have the control to create and define your own features, the sky is the limit.I didn't need much to get started. I just needed a State Management solution outside of SetState (because I needed an easy way to pass and share data between Widgets, without implementing my own InheritedWidget or ScopedModel). I read a few articles on it, like <a href="https://flutter.dev/docs/development/data-and-backend/state-mgmt/simple">Simple App State Management</a> and <a href="https://medium.com/coding-with-flutter/flutter-state-management-setstate-bloc-valuenotifier-provider-2c11022d871b">Flutter State Management: setState, BLoC, ValueNotifier, Provider</a>. <strong>Provider and ChangeNotifier were more than enough for this use-case.</strong>The implementation doesn't have a clear or strong architecture. I just went with what I knew, which was a typical MVC-U architecture. Well, in this case, Data-Screen-Utils architecture. I separated the domain of data, business logic, and UI. Though there's much more work to be done in terms of refactoring, getting to an MVP took less than 3 days.The animations were easy to work with. Having had experience with Pebble and animations using C language, working with Dart was a breeze and an absolute pleasure. I implemented page Route transitions with the help of some code from <a href="/user/gskinner_team">u/gskinner_team</a> with their article <a href="https://blog.gskinner.com/archives/2020/03/flutter-simplify-your-pageroutes.html">Flutter: Simplify your PageRoutes</a>.It was easy to add simple animations through the app to make the experience better.Then when I had my MVP, I began to work on localization. I used the <a href="https://pub.dev/packages/intl">intl</a> package and with the help of <a href="https://marketplace.visualstudio.com/items?itemName=localizely.flutter-intl">Localizely's Intl extension</a>, (and with the help of my GF and a generous and skilled translator on Reddit), I manage to implement french localizations!PublishingI was eager to publish. I just had to follow this <a href="https://flutter.dev/docs/deployment/android">article from flutter.dev on how to release an Android App.</a> It was easy to do.I used a fastlane as my CD, but to get to the market fast, I just literally did flutter build appbundle. Took screenshots and published to production on Google Play Console.The review process took 6 days? <strong>This means between planning, developing, publishing this app, the publishing review process took longer than the app creation process!</strong> Granted it's a simple MVP, but I just want to emphasize how quick the development process was.Final ThoughtsOverall, creating a Flutter App allows for the creation of beautiful and performant apps, very quickly. As a one-man team, this project was enjoyable. Flutter really allowed…
New post on /r/flutterdev subreddit:

Flutter Web and Chrome (browser) extensions
Will there be a way for Chrome (browser) extensions to work with websites made with Flutter Web?For example:Password managersContent (ad) blockersAs I understand, Flutter Web is just a canvas on which the UI is painted, so it has noting to do with DOM elements that can be interacted with.

May 10, 2020 at 10:00PM by momentumiseverything
https://ift.tt/2YQT668
New post on /r/flutterdev subreddit:

Why decode HTTP response if a json response is returned from the server?
Hello,I was wondering about why it is necessary to call json.decode() on an http response.body if the server sends the result as a json object already. I understand that the Response object stores 'body' as a string, but why? Why doesn't it store 'body' as json object if it was sent as json from the backend.I'm just thinking about this from a performance point of view as serializing and deserializing are a bit computationally expensive.

May 10, 2020 at 09:37PM by ju_98u
https://ift.tt/2YPPWzJ
New post on /r/flutterdev subreddit:

Best practice for UI scaling / responsiveness
So I made the whole design without having the responsive part on my mind, loaded app on smaller screen device and everything was huge. What would be the best approach to deal with this? I saw some plugin ScreenUtil or something. Can someone just tell me what is the most correct way to deal with this?

May 10, 2020 at 10:29PM by itsdjoki
https://ift.tt/2YSns8u
New post on Flutter Dev Google group:

How can I create a password?
Does some one now how Flutter can create a password for users?

May 10, 2020 at 11:12PM by Jonas Riesen
https://ift.tt/2SPNSUI
New post on /r/flutterdev subreddit:

For people like me who are into listening music while coding...
... check out the list I use when I’m coding: 8+ hours of retro synth music inspired by Stranger Things and also this space opera synth list I also listen frequently.Also curious to know what kind of stuff do you listen to, if any.

May 11, 2020 at 12:49AM by armsofmerlin
https://ift.tt/2WnhQl8
New post on /r/flutterdev subreddit:

Connecting my flutter app to a database
Hey guys. Hope you all doing fine . I started learning firebase like 3 weeks till now. And its time to add my database interactions , all i'm finding in youtube is firebase ... , but i want to do CRUD manipulating my database using php as a backend. Anyone who can show me the steps too ?? For example, for getting data from a server , should i make a seperate php files and everyone of them has a different job ? One from extrating the data from table users , and one from product ..., i'm really tripping out

May 11, 2020 at 03:33AM by oussamabht
https://ift.tt/3dtKu9C
New post on /r/flutterdev subreddit:

not sure why this MediaQuery error occurs on build?
I get the following error on emulator build only. if i restart after that or re save anything, all is good.
I/flutter ( 9073): This can happen because you do not have a WidgetsApp or MaterialApp widget (those widgets introduce I/flutter ( 9073): a MediaQuery), or it can happen if the context you use comes from a widget above those widgets. I/flutter ( 9073): The context used was: I/flutter ( 9073): Scaffold I/flutter ( 9073): I/flutter ( 9073): The relevant error-causing widget was: I/flutter ( 9073): Home lib/main.dart:10 
the home component is only this... it doesnt make sense
import 'package:flutter/material.dart'; class Home extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.grey[800], appBar: AppBar( flexibleSpace: Container( decoration: BoxDecoration( gradient: LinearGradient( begin: Alignment.topLeft, end: Alignment.bottomRight, colors: <Color>[Colors.grey[900],Colors.grey[850],Colors.grey[900]]) ), ), elevation: 0, title: Text('Which One'), ), body: Text('home'), floatingActionButton: FloatingActionButton( onPressed: () { Navigator.pushNamed(context, '/submit'); }, child: Icon(Icons.add_comment,size:30), backgroundColor: Colors.pink, ), ); } } 
any ideas why this is happening?

May 11, 2020 at 06:35AM by rdh24
https://ift.tt/3blmpR5
New post on /r/flutterdev subreddit:

Ask community: What do you want to learn after knowing some basic of Flutter?
Hi all,I am curious what do you want to learn after setting up Flutter and running your first program? Do you care about how to write UI or do you care more how to architect Flutter app?I also want to know how you learn them. Feel free to share your experience below.

May 11, 2020 at 08:03AM by zen8school
https://ift.tt/3du56P2
New post on /r/flutterdev subreddit:

A few questions about themes
1 - Should I do two ColorSchemes and one ThemeData that uses the colors from the ColorScheme, or use separate ThemeData for each theme? 2 - If the user has dark mode enabled on his device, will that affect the appearance of my app as well, in case I don’t supply a dark theme and go with one theme only ? 3 - Do you cache Theme.of(context) or is it fine to call it as it is?Thank you very much!

May 11, 2020 at 07:24AM by SilentK213
https://ift.tt/3fA1rkF
New post on Flutter Dev Google group:

Facing error while creating flutter project in VS Code
I am creating a new flutter project and facing error "'flutter' is not recognized as an internal or external command, operable program or batch file." I have even tried changing the environment variables but nothing works.. Please help with this issue.. I have tried running flutter doctor too , it

May 11, 2020 at 08:44AM by Anushka
https://ift.tt/35ONMBI
New post on Flutter Dev Google group:

signature with flutter
Hello the above code saves an image in the app root in png format when saving is done I have the following error, the dart code below deals with saving the image in png format. The code allows the user to make a signature on the screen and then click on the save button to make the signature on

May 11, 2020 at 08:58AM by Dev Connect
https://ift.tt/2LhQUgb
New post on /r/flutterdev subreddit:

Flutter : NavigationRail Widget - New in v1.17
https://ift.tt/2SVbXtf

May 11, 2020 at 08:51AM by ankitc_reddit
https://ift.tt/3fBrCaI
New post on /r/flutterdev subreddit:

Question about feasibility of a feature
I'm working on an App made using Flutter. One of the team members suggested a feature which requires the app to track the usage activity of the phone, as in when the phone is being used and when it's not, even when the App is not open.Is something like that possible using Flutter? And if we're planning to launch this app on PlayStore, will there be any legal complications?

May 11, 2020 at 08:22AM by HeWantedIndigo
https://ift.tt/35OTJPb
New post on /r/flutterdev subreddit:

Pinnable ListView - Allows for widgets to be pinned to the top of the ListView
https://ift.tt/3fBl1gt

May 11, 2020 at 11:06AM by SweatyRaccoon
https://ift.tt/3fJpIVN
New post on /r/flutterdev subreddit:

[Question ]Passing data between multiple Screens and trigger function when screen ist pop-ed
Hello everyone!
I am not a very good programmer and just started with flutter last week. Now I have a problem and no solution so far for it.Whats my app? I want to build a app for scanning data from a card, get information per api call and save it in firebase with some extra informations.Currently I have 3 Screens:
- A screen with an camera and a floating button to make a picture of the card
- A confirmation screen, if the text from the card was recognized correctly
- A detail screen with the informations from the api callBecause those are not all screens and some are missing at the moment, my app starts with the detail screen and no informations on it. I tap the "Take Picture Button" and open the "Take Picture Screen". There I take the picture and pass the path to the "Confirmation Screen" - The confirmation screen takes the path, reads the first line of the card and displays a text like "Is this the correct card? $name" - If the user taps on "YES" the text and the image path should be passed to the detail screen.Problems:
- Now I pass the image path and the name of the card via a mobx store from screen to screen. I think there is a better way?
- I need to trigger a function, to populate a Card Object via an api call. Is there a way to do that when, the Confirmation Screen is popped and the Detail screen gets the focus?Is there a way to have a Card Object ready for all screens? Like a database with persistant data for the time the app is running?

May 11, 2020 at 11:05AM by Vegavild
https://ift.tt/35Nddne
New post on /r/flutterdev subreddit:

Flutter present limits
Considering the huge progresses made in the last year, as Android dev(but not iOS) I would like to know if I embrace Flutter what are at the moment the features that really cannot make with flutter and need to integrate with native iOS or Android code.Could you please give me some examples?

May 11, 2020 at 10:50AM by ndrokky
https://ift.tt/3fDcpWD