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

Nested Listview (Listview inside Listview) in Flutter
https://ift.tt/3459rX7

October 16, 2020 at 08:05PM by rrtutors
https://ift.tt/355Rabx
New post on Flutter Dev Google group:

PlatformException(photo_access_denied
I truly baffled by this, my iPhone device runs fine but the simulator gives me this problem: PlatformException (PlatformException(photo_access_denied, The user did not allow photo access., null, null)) My info.plist seems to have the items I need (see screen grab). Any advice?

October 16, 2020 at 09:50PM by jerry hamby
https://ift.tt/3j2aYlf
New post on Flutter Dev Google group:

Flutter 1.22.2 hotfix released to the stable channel.
Hi, Flutter 1.22.2 has been released to stable. This is a hotfix release on the 1.22 branch and also includes a hotfixed Dart 2.10.2 version. Changes for this build are listed below and are available on the Flutter Wiki here: Hotfixes to the Stable Channel
New post on /r/flutterdev subreddit:

Kicking off my new development serries on creating a real flutter app
Hi there!I've started a new series on creating a podcast app using flutter. We're going to go through the process of creating an app from start to finish.Youtube LinkBlog PostIf you want to see the serries develop, Subscribe and give a thumbs up!

October 16, 2020 at 09:33PM by DoPeopleEvenLookHere
https://ift.tt/3k7etbc
New post on /r/flutterdev subreddit:

Considering Flutter for Frontend
Just wanted to get the community's opinion on the current state of Flutter Web. We're looking at using Flutter for the front end to minimize the amount of platform specific code required and it'd be great if the web portion could also share the same code base. Can the majority of the mobile UI code be used for deploying to Flutter Web, or is there still a lot of things that will need to be done twice? Thank!

October 17, 2020 at 12:50AM by Zaneris
https://ift.tt/2T1sY4t
New post on /r/flutterdev subreddit:

<b>State Management could have never been easier!</b>
One simple approach.
Design a widget tree with respect to certain variables and then just update parts of your widget tree as per your requirements. That's all you need to design a dynamic UI in Flutter.
How can one update/rebuild a part of them at ease? That's exactly what the below plugin is for.<a href="https://pub.dev/packages/notifier_plugin">https://pub.dev/packages/notifier_plugin</a>Notifier n = Notifier();
int i = 0;// [...Widget Tree...]
FlatButton(
child: n - ()=>Text(i.toString()) // Attaching the Notifier to a part of the widget tree
onTap: (){
++i;
n(); // All the widgets attached to this Notifier get re-built
}
)
// [...]While this might seem like a something a bit simpler than what currently exists, it's real power can only be felt while actually developing UI keeping the above approach in mind.One could even pass a value to another corner of the app with the help of a `ValNotifier`,ValNotifier v = ValNotifier(initalVal: 0);
// [...Some Widget Tree...]
FlatButton(
child: v - (value)=>Text(value.toString()),
onTap: ()=>v(v.val+1)
)
// [...]
// Note: Both Notifier and ValNotifier can work with multiple widgetsJust want to update a widget tree without explicitly defining it? The plugin has got you covered.int i = 0;// [...Widget Tree...]
~(n) => FlatButton(
child: Text(i.toString()) // Attaching the Notifier to a part of the widget tree
onTap: (){
++i;
n(); // All the widgets attached to this Notifier get re-built
}
)
// [...]A ValNotifier can be obtained in a similar manner by adding an extra parameter,
~(n,v)=>SomeWidgetTree()If this still sounds unrelatable, then just imagine practically implementing some UI logic without really thinking about any other concept....just the above approach. (Design with respect to certain variables and then update as and when needed and see the ease it will provide...the ease would be felt to such an extent that only the app's logic would be there in the developer's mind while using the approach)While the basic features of the plugin will cover most of needs, here's a list of just few of the features the plugin otherwise offers,Perform (foward/reverse/circular) animations with the help of a ValNotifier/TweenNotifier (just specify the start and end value and the duration [and curve] and the plugin shall handle the rest for you)Performing http requests with common parameters have got easier than ever! Every time you request from a HttpNotifier, you'll just have to overwrite the parameters that were previously cached or send a request directly with them, thereby reducing the overall boiler-plate code.Almost any common listenable object (ChangeNotifier, ValueNotifier, Stream(Controller), Notifier, ValNotifier, ...(including controllers)) can be easily be connected to a widget for updates. So whenever the listenable object gets notified or receives a new value, the connected widget will automatically rebuild that part of the widget tree without any hassles.A few examples:changeNotifier - () => Text("Will surely accept no parameters"),
valueNotifier - (value) => Text("Will surely accept a single parameter ($value)"),
stream - (snapshot) => Text(snapshot.hasError?"Error: ${snapshot.error}":"Data: ${<a href="https://snapshot.data">snapshot.data</a>}")And since a controller is very likely to be a ChangeNotifier or ValueNotifier,textEditingController - (textEditingValue) => Text(textEditingValue.text), // ValueNotifier
scrollController - () => Text(scrollController.offset.toString()), // ChangeNotifierEver felt that dealing with Future(s) or async objects is not that intuitive or has too much code to deal with? The plugin has solved that problem too.future - (snapshot)=>DealWithIt(snapshot)
WFuture(future) - (data)=>Text(data.toString()) // Loading and error widget were predefinedTo know more about the other features offered by the plugin, head over to the links given below.Plugin: <a href="https:/…
New post on /r/flutterdev subreddit:

Help improve the dart language
I'm an avid fan of dart but like any languages it has its problems (no this isn't a post about enums :) .One ongoing problem I have with the language is discovering what exceptions a particular method is going to throw.The date language guide recommends adding details of what exceptions are thrown but the reality is that they rarely are.I think there are two root causes of this.1) it requires writing documentation and most developers hate writing documentation. 2) it's often hard to determine what exceptions your method throws because the methods that you call don't document their exceptions.This problem then bubbles up the code path and you have the situation as we have today where exceptions are essentially not documented.I believe there is an easy, non invasive, way of solving this problem.The idea is to add a lint that tells developers that they are missing documentation for an exception.With a lint in place the IDEs can be modified to add a quick fix which automatically adds the exception to the documentation.With little effort we can get a dramatic improvement in exception documentation which will benefit everyone in the community.As it's implemented as a lint it can be globally or locally disabled if you find the lint offensive.I've raised an issue on the dartlang repo.https://github.com/dart-lang/linter/issues/2246If you think this issue would benefit the community could you please vote or comment on the issue.

October 17, 2020 at 02:05AM by bsutto
https://ift.tt/3434G0e
New post on Flutter Dev Google group:

error creating project flutter create command was unsuccesfull
error creating project flutter create command was unsuccesfull I created a new project in Android Studio and failed. I get a message like that. what's the solution?

October 17, 2020 at 06:51AM by nadu iki
https://ift.tt/3nZ7CDb
New post on /r/flutterdev subreddit:

How to input and sum two integers
I know it's a very simple thing to most of you, but I just started in Dart and when I input a integer using the stdin.readByteSync() it returns me the ASCII code of this number.When I use stdin.readLineSync() it just concatenate the numbers like 1 + 1 = 11I'm trying to understand the behavior of this methods. I found nothing conclusive in the documentation.

October 17, 2020 at 06:34AM by kaizo23
https://ift.tt/2T467p6
New post on /r/flutterdev subreddit:

How would you code this?
Hypothetically, if I want 1000 buttons, that lead to 1000 pages, that each have the same structure, but unique text on them; what would be the most efficient way of doing this, in your opinion?

October 17, 2020 at 08:02AM by NsfwOlive
https://ift.tt/3lSFfok
New post on /r/flutterdev subreddit:

Flutter 4 Fun new post and new library
Check out our new blog post in Flutter 4 Fun:UI Challenge 2 – Gaming App Design By Nevil Suresh – Part 1 / 2In the end, we published our work as a new library, you can check it out on Github and Pub.You can subscribe to our Blog's notification or Twitter account to get notified on a new post.

October 17, 2020 at 11:28AM by imaN_NeoFighT
https://ift.tt/3k5YuKw
New post on /r/flutterdev subreddit:

Maximalize the use of Hot Reload: Run the Android Emulator directly in Android Studio
https://ift.tt/2IF6AvX

October 17, 2020 at 02:18PM by Kloth494
https://ift.tt/31eaz8Y