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

Normalized state in Bloc Flutter
Like everyone, I am also confused about statemanagement in Flutter, but I really like Bloc and the library. But one thing is not clear. I read all the docs and all the tutorials already.I come from redux where you have one big global store, in which you have normalized states. I don't know if I should or how I should correlate redux to bloc, but they felt similar from the beginning and they still do. You have a state, events and you listen to state change and trigger events..Say I have an app where I have posts, I might create, list a post show it in a screen, in another screen etc. I might fetch and cache an post. Doesn't this require me to have a normalized state somewhere? And where?Normalized state is basically having a single place for storing an object, like storing it in a map, and referring to that object in other places by id, then using the map to show the object in the UISo where should I put normalized state in Flutter? In a bloc? In a bloc high up in the tree? In the repository? Should I use normalized state at all or is there another way to think about this? Thank you!

March 30, 2021 at 06:32PM by TurquoiSeas
https://ift.tt/3waKBBl
New post on /r/flutterdev subreddit:

Overlay in flutter
Is it technically possible to have Kotlin display an activity which will overlay other apps .

March 30, 2021 at 08:11PM by khaleed56
https://ift.tt/2PkvWTt
New post on Flutter Dev Google group:

I need to Expanded this cloumn
How to make this column flexible or expanded with more tall product picture child: Column( mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children:
New post on /r/flutterdev subreddit:

DART COMUNICAÇÃO UDP/CLIENTE
DART COMUNICAÇÃO UDP/CLIENTE...NÃO CONSIGO RECEBER MESAGEM UDP, preciso criar um cliente para ouvir as porta UDP.. como faço?void connect(InternetAddress clientAddress, int port) {
Future.wait([RawDatagramSocket.bind(InternetAddress.ANY_IP_V4, 0)])
      .then((values) {
RawDatagramSocket udpSocket = values[0];
    udpSocket.listen((RawSocketEvent e) async {
print(e);
switch (e) {
case RawSocketEvent.READ:
Datagram dg = udpSocket.receive();
print(dg);
if (dg != null) {
            dg.data.forEach((x) => print(x));
          }
          udpSocket.writeEventsEnabled = true;
break;
case RawSocketEvent.WRITE:
var descod = HEX.decode('3C 25 25 01 4A 36 3e'); // vira int ASCII
print(descod);
var desco = HEX.encode(descod);
          udpSocket.send(descod, clientAddress, port);
break;
case RawSocketEvent.CLOSED:
print('Client disconnected.');
      }
    });
  });
}
void main() {
print("Connecting to server..");
var address = new InternetAddress('192.168.10.132');
int port = 7777;
connect(address, port);
}

March 30, 2021 at 09:22PM by PreparationMurky3069
https://ift.tt/39uvIjr
New post on /r/flutterdev subreddit:

Multi-environment Flutter Deployments using Github Pages
https://ift.tt/3fr8MFJ

March 31, 2021 at 02:23AM by chimon2000
https://ift.tt/3wgQcGq
New post on Flutter Dev Google group:

How to notify a high level Provider from a singleton? (Flutter design pattern)
In my app I have a singleton *SettingsData* which holds all of the user's settings data (instead of having to read asynchronously from SharedPreferences every time do it once). I create that singleton before calling RunApp(...). On top of that I have a Widget *CurrentItems* (which is a

March 31, 2021 at 03:24AM by yoni keren
https://ift.tt/2QSPb77
New post on /r/flutterdev subreddit:

Does flutter support multiple instances for iPadOS and Desktop?
Apps like Safari or MS Word on the iPad have support for multiple instances, can a flutter app be built with support for multiple instances on both iPadOS and desktop?

March 31, 2021 at 06:14AM by kakakalado
https://ift.tt/3m7ykce
New post on /r/flutterdev subreddit:

Pros and Cons of using Flutter_Bloc vs StreamBuilder and RxDart
I use the built-in StreamControllers and RxDart Observables to manage my state. However, in order to work in a team, I have to learn flutter_bloc because almost everyone is using it. What are the pros and cons of using flutter_bloc vs built-in streams and rxdart? It looks like flutter_bloc is over complicating something that isn't complicated by mapping events to states rather than calling the events directly to update the state.

March 31, 2021 at 06:11AM by quantumizeCode
https://ift.tt/3cBXXyT
New post on Flutter Dev Google group:

What is the purpose of isExtended parameter in FloatingActionButton constructor?
Hello! FAB unnamed constructor has isExtended bool parameter. However, setting it true doen't make the button extended, since this constructor sets tight width constraints regardless of isExtended value. Are there any usecases for this parameter in default constructor? Otherwise, this parameter

March 31, 2021 at 10:07AM by Eugene Ostrovsky
https://ift.tt/3cAoxbm
New post on /r/flutterdev subreddit:

CSV files and Flutter Web
Has anyone had some success with opening a CSV file from Flutter web and using that file?I've tried a lot of packages, but none seem te be doing the job.Any help would be much appreciated.

March 31, 2021 at 11:38AM by MentalMarzipan5
https://ift.tt/2O8InkF
New post on /r/flutterdev subreddit:

Looking for Feedback About my State Management Approach
Hello all,I’ve come up with my own state management pattern (and package that implements it) and I’m looking for feedback on it. It’s similar to using Provider/ChangeNotifier but extends that concept further. Please feel free to critique it as harshly as you wish! That’s the kind of feedback I’m interested in.Here’s my write up of my approach:https://link.medium.com/qi6K4haq4ebPlease let me know what you think!

March 31, 2021 at 11:04AM by JonathanAird
https://ift.tt/3fxlKSe
New post on Flutter Dev Google group:

VerificationFailed Firebase
Hello, my application has been published on Huawei AppGallery. We can download the application from a real phone. But thanks to phone verification, it does not login. I'm getting an error saying we couldn't verify your phone number. Can you help me ? I am authenticating with a Firebase phone. I

March 31, 2021 at 12:13PM by Muti
https://ift.tt/3wa7apT
New post on /r/flutterdev subreddit:

Arguments for using Flutter over React native
So my company are wanting to build a new mobile app, they've used react for web a lot and are considering react native for said app. I'm wondering if anyone has been in a similar position before? Or if anyone had good arguments for flutter over React native? Thanks!

March 31, 2021 at 01:07PM by Northernguy94
https://ift.tt/3w8VJyF
New post on /r/flutterdev subreddit:

VRouter 1.1
🚀 VRouter v1.1 is out 🚀A major update which makes this navigation package even simpler while more powerful.Also check out vrouter.dev which contains the new documentation and has for the first time a set of examples to get started 🔥🔥Support VRouter by liking it on pub.dev, and go build some amazing apps with it!

March 31, 2021 at 04:10PM by Lulupointu
https://ift.tt/3rz2MND