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

Have you switched from stream-based state management to any other and why?
I've been developing Flutter apps since the early 2018, and what got me in love with streams was a 2018 I/O talk by Matt and Filip from the Flutter team, which looks like it has since been deleted.I've lucked out at my current job and got to decide on the state management approach, obviously I've went for something I'm well familiar with, and that's using StreamBuilder, StreamSubscription and Stream objects to handle state management (alongside some setState and StatefulBuilder widgets here and there). We've built a functionally very large webshop, and are on the track to release it! I'm actually surprised by how little bugs we've encountered, so I don't think complexity is an issue.My question is: have you used stream-based solutions in a professional capacity, and have you switched from it to any other solution and why? If it means anything, my colleagues seem to have gotten a good grip on streams, so that's not a concern.Many thanks.EDIT: Any issues you've noticed that resulted in you not choosing stream-based state management?

November 13, 2021 at 01:24AM by No_Appearance4886
https://ift.tt/3C9Hnjd
New post on /r/flutterdev subreddit:

First Flutter-Powered Mobile Banking App in Europe
https://ift.tt/3C6ZuXb

November 13, 2021 at 10:10AM by smbale
https://ift.tt/3FcFgx3
New post on /r/flutterdev subreddit:

What are common ways to do application structure and architecture in Flutter?
I would like to decide on an application structure and architecture for the app I'm building that will be scalable and easily readable for other people in the future.There is supprisingly little information online on how to approach those things in Flutter. What are some common ways to do that? Should I go for architectures like MVC or MVVM or are there other viable options for Flutter? And are there some good tutorials by example available for that?

November 13, 2021 at 10:00AM by Rebound870
https://ift.tt/3FdKLM4
New post on /r/flutterdev subreddit:

BLoC vs Riverpod
It seems commercial programming requires BLoC. Maybe this is more a legacy of older Flutter. For those who've used both, do you think BLoC has enough to offer over Riverpod to be as necessary as the commercial market has made it, or should it fade away for being so complex?Obviously there are those who will say "use both" or "it depends" but what I'm trying to get to the bottom of is: really how valuable is BLoC that new developers have to get their minds around it in addition to the complexities already in Flutter.View Poll

November 13, 2021 at 03:32PM by itsastickup
https://ift.tt/3wJYWFi
New post on /r/flutterdev subreddit:

State Management Example Using Riverpod
An example how I use immutable models with Riverpod.I have an immutable Game. I also have a bunch of update functions to transform one Game state into the next state, for example to move something forward, there is a moveForward function that returns an Update<Game> function that does whatever is required by the rules:
typedef Update<T> = T Function(T); Update<Game> moveForward() => (game) { final nposition = game.position.step(); if (!game.map.isValid(nposition)) return game; return game.update(position: nposition); }; 
Now I want to combine this approach with Riverpod.I have to create a subclass of StateNotifier to store my Game (or any other updateable value because I'm doing this is the most generic way of course):
class UpdateableStateNotifier<T> extends StateNotifier<T> { UpdateableStateNotifier(T initialState) : super(initialState); void apply(Update<T> update) => state = update(state); ... 
To make creating a provider look nicer and to omit all the explicit types otherwise required, I also provide this utility factory function:
 ... static StateNotifierProvider<UpdateableStateNotifier<T>, T> provider<T>(T initialState) => StateNotifierProvider((_) => UpdateableStateNotifier(initialState)); } 
Then I can setup my gameProvider like so:
final gameProvider = UpdateableStateNotifier.provider(initialGame); 
Later, I can access the current game state as usual:
Widget build(BuildContext context, WidgetRef ref) { final game = ref.watch(gameProvider); ... 
To easily apply updates, I extended WidgetRef:
extension UpdateableStateNotifierExtension on WidgetRef { void apply<S>(StateNotifierProvider<UpdateableStateNotifier<S>, S> provider, Update<S> update) { read(provider.notifier).apply(update); } } 
Now, my UI can do this in callbacks or other actions:
ref.apply(gameProvider, moveForward()); 
There is a bit more work involved because I also support undo (and redo, because why not) and Update actually returns a FutureOr<T>, but the principle stays the same.

November 13, 2021 at 04:15PM by eibaan
https://ift.tt/3F4p1SG
New post on /r/flutterdev subreddit:

Flutter Devs: Problems & Pain Points
Hey All!Hope everyone is doing well. I created a short survey to understand what the largest pain points for flutter devs are. It should only take a minute or two to complete. I would really appreciate if some of you would fill it out.https://forms.gle/qyEefi7n67eLzzsF8Thanks!

November 13, 2021 at 05:34PM by gfroski1321
https://ift.tt/3DdkkW7
New post on /r/flutterdev subreddit:

What was your favorite flutter project you've made/contributed to and why?
Please leave a repository link if you can; Mine is Corona Spectator, and it's my favorite because it was one of the first times I actually felt like I was solving a real world problem with my programming skills.

November 13, 2021 at 08:52PM by 31Carlton7
https://ift.tt/3HcOYRM
New post on /r/flutterdev subreddit:

Best way to ramp up senior dev to Flutter?
I’m currently researching some options for the company I work for to start building some basic mobile apps. We’re a small team, so I’m trying to avoid the traditional approach of building out Android and iOS apps separately. I tried React Native a few years ago, and wasn’t impressed with it.I have 11 years of professional experience as a software engineer, but it’s been mostly C# MVC patterned web applications, short stent with C#, Xamarin Ruby on Rails, SQL Server (maintained some nasty stored procedures), few years of Swift (mostly api and service layers, someone else did the storyboard designs/UI), restful and graphql API creation/maintenance/consumption.With all that said, what’s the best way for me to jump into Flutter/Dart? I don’t mind “Drinking from the fire hose”, but I want the good quality water. I’m looking for some great videos, tutorials, weekly series (I love gorails), VS Code tips, flutter design patterns, garbage collection advice, “must have” flutter tools/components/plugins, or anything else that you wish you had known when you first started with Flutter!I don’t want to have to sit in front of our CIO in a year explaining why we have to rewrite our app(s) in Swift and Java because we decided to go with Flutter.Thanks in advance!

November 13, 2021 at 11:58PM by AlarmingNectarine
https://ift.tt/3Dh85ro
New post on /r/flutterdev subreddit:

how do you make sure that you receive your payment when doing a project for someone that you find online, because i think i just got screwed and handed over a project without getting the money back
Title

November 14, 2021 at 01:06AM by peace___99
https://ift.tt/3ndNkY5
New post on /r/flutterdev subreddit:

Flutter android imagepicker permissions
In the recent post for data protection page Android/playstore made it clear if you're taking images/videos from a device you need to ask permission.Declares at least one of the following permissions: READ_EXTERNAL_STORAGE WRITE_EXTERNAL_STORAGENow flutter imagepicker isNo configuration required - the plugin should work out of the box.And if I am asking permission explicitly app is not responding to the permission means not invoking what should I do. Flutter image-picker explicitly ask permission I am only picking images. Then uploading it to firebase.

November 14, 2021 at 04:46AM by Same-Concern6282
https://ift.tt/3kzbT01
New post on /r/flutterdev subreddit:

Getting null value in QuerySnapshot
Hey guys, I am trying to create a chat app and getting null value in QuerySnapshot while searching for users. I have pasted the code above and the screenshot of the same is attached below.Within the screenshot, The error is that the value is null. What should I do to fix it?https://pastebin.com/UaEdBpZ2

November 14, 2021 at 06:19AM by Fit_Honeydew_8284
https://ift.tt/30l5ePI
New post on /r/flutterdev subreddit:

Flutter getx stateless checkbox does not show checked after being tapped or clicked
Flutter getx checkbox is not updating in view file after being checked. The checkbox should be checked. What is the problem?​In the file : controller.dartclass FormController extends GetxController {final bool checkValue = false;}In the file : view.dart.....final FormController controller = Get.put(FormController());Row(children:[Checkbox(
checkColor: Colors.white,
hoverColor: Colors.amberAccent,
value: controller.checkValue ,
onChanged: (val) {
controller.checkValue=!controller.checkValue;
}),],).....

November 14, 2021 at 07:31AM by knockhome
https://ift.tt/3CelyyY
New post on /r/flutterdev subreddit:

Should I start with Flutter (Dart-OOP) or RN (Js-functional)
Hi,I want to be a mobile developer and I'm starting from scratch.I want to learn both Flutter and React Native. I don't know which one to start FIRST.Does it matter which one I should start with since dart is oop and js is functional?(I don't know the difference between object oriented programming and functional though.)If I start with one, will I have a hard time switching to the other?

November 14, 2021 at 10:40AM by obareyhan
https://ift.tt/3kw4Vc4
New post on /r/flutterdev subreddit:

Which will be faster?
a. Flutter + PHP Apisb. Flutter + dart

November 14, 2021 at 12:28PM by SweetMaya77
https://ift.tt/3owdoxj
New post on /r/flutterdev subreddit:

Learning Java as a Flutter developer
Hey Flutterdevs. Flutter noobie here (coming from Javascript). I've heard a lot of Flutter developers saying Java has played a big role in their understanding of the framework and the Dart language . I was wondering if would I be at a disadvantage if don't learn Java moving forward or should I focus on just Flutter . Looking forward to hearing your thoughts. Thanks in advance.

November 14, 2021 at 03:02PM by randomCoder69
https://ift.tt/3CeVu6W
New post on /r/flutterdev subreddit:

Why isn't refresh rate a top priority issue for Flutter? Rant-ish
So this will be a rant I guess. Flutter seems like a great tool and I'm eager to use it, especially in the Desktop environment. But something is really bugging me. It's the fact that Flutter doesn't go above 60fps. Like, hello...? It's almost 2022 where high refresh rate displays are very common, and now it's even mainstream due to new iDevices targeting 120hz. Increased refresh rate gives a very much better user experience and when it drops lower than normal, it's very noticeable and makes the app feel like it's lagging and slow.I've checked a lot of github issues relating to this. The first issues were related to Android devices where someone had to make a plugin instead of making changes to the flutter framework itself. And there are Desktop github issues from 2019 where nothing has been done since. Just slapped a P5 or P4 on it, said "this is an engine issue" and called it a day. Now that Flutter iPhone apps aren't ProMotion compatible, it brought some attention to this issue. But from what I understood, nothing is being done in the near future since they slapped a P4 on that github issue as well.I just can't treat Flutter with it's supposedly "Beautiful UIs" and "Native Performance" as a serious tool to built my apps with, when such an important feature as refresh rate isn't a priority. What do you think?

November 15, 2021 at 04:43AM by asdfasdf666_
https://ift.tt/30s9Q77