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

It's possible to create directly firebase collection and there fields from flutter also fetch the collections name
.

March 30, 2021 at 08:41AM by Prashant_4200
https://ift.tt/3wdAuMb
New post on /r/flutterdev subreddit:

Using function Widgets inside Stateless Widgets
I am making a page body (Stateless Widget) that is comprised of several elements. For the ease of structure, I have this approach:Widget firstPart() { return Container(child: Text(“first part”)); }Widget secondPart() { return Container(child: Text(“second part”)); }etc.. (this all goes inside the same Stateless widget class)And then for the @build, I combine firstPart(), secondPart() as children of a Column.Does this approach induce any performance hit? Should I make firstPart(), secondPart() separate Stateless widgets, or copy-paste their code to the @build ?Thanks!

March 30, 2021 at 08:31AM by aveMind
https://ift.tt/3cxHr2E
New post on Flutter Dev Google group:

change selected color checkbox on datatable
hi, i'm just using datatable , i wonder how can i change selected color checkbox on datatable , anyone know ? [image: Screenshot 2021-03-30 183452.png]

March 30, 2021 at 01:39PM by You Sour
https://ift.tt/2PbQNsg
New post on /r/flutterdev subreddit:

Call for assistance: macos_ui package
Hi everyone.In light of discussions I've had on Twitter about the lack of a macOS style widget/theme pack, I've started a package for this: https://github.com/GroovinChip/macos_ui. This is a huge undertaking so I'd appreciate any assistance, be it advice, feedback, repo maintenance, code contributions, or simply spreading the word.Thanks!

March 30, 2021 at 02:39PM by GroovinChip
https://ift.tt/39pOb0y
New post on /r/flutterdev subreddit:

Would anyone like to share their portfolio site made using flutter web?
Hi, I am an app developer. I have been using flutter for a long time now. Since flutter web is in stable channel now, I am thinking of creating my portfolio site using flutter only owing to it's amazing UI capabilities. Let me know if anyone else has done that. If you haven't created it using flutter, I would still like to look at it and may be recreate it in my own way using flutter :)

March 30, 2021 at 03:57PM by rushilmakkar
https://ift.tt/3sCR9qf
New post on /r/flutterdev subreddit:

Getting Bool State from Firestore in Dart
Hello! I am trying to get a bool value from Firestore when the app is being initialized/reloaded: it returns True if it is "like" and False if it is not "like". Every time a user likes/unlikes a post, a database (called userFavorites) is being created or update on Firestore. So when initializing/reloading the app, I'm trying to get access to this True/False for each of the posts that are being displayed on the UI (if the user has never liked or unliked the post, the value for this bool will automatically be False). The problem that I am having is that I am not able to get and display the T/F bool value from the Firestore database into the UI each time a post is reloaded (or seen on the screen). What code could I use to do that? Thanks!

March 30, 2021 at 03:21PM by Alvaro-99
https://ift.tt/3u7qWjT
New post on Flutter Dev Google group:

Flutter error in dart
Kindly someone help me to solve this error. Thanks in advance With regards, Rakesh Lahkar

March 30, 2021 at 04:34PM by rakesh...@gmail.com
https://ift.tt/3u5FuR1
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