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

How does a parent widget know to rerender itself when only a child widget's internals were updated?
If I have an ExpansionPanel inside a Column that is center aligned and the user clicks on the ExpansionPanel to grow itself, since the ExpansionPanel does not have access to my setState to cause a rerender, how does the parent component know to update the constraints for the ExpansionPanel and move the other widgets inside the Column out of the way?I was under the impression before that constraints given by the parent were fixed until the next time setState were called.I have no callbacks attached to ExpansionPanel so there is no way for ExpansionPanel to cause the parent widget to rerender.
void build(context) { return Column( children: [ ExpansionPanel( body: SizedBox(height: 400), headerBuilder: (_, __) => Text("Click to expand") ), Text("This text gets pushed down when ExpPan expands") ] ); } 


January 02, 2022 at 09:30AM by em_te
https://ift.tt/3FM0H8T
New post on /r/flutterdev subreddit:

Google Map Clustering
Hello guys,Does anyone know if Flutter team is working on implementing 'built-in' google map clustering mechanism?I currently use https://pub.dev/packages/google_maps_cluster_manager which does the work but it doesn't feel the same as the Android native's one.I am implementing a project which heavily depends on smooth clustering experience and having a proper cluster mechanism will greatly enhance the UX of the app.Thanks,

January 02, 2022 at 01:12PM by morberd
https://ift.tt/32I09Cv
New post on /r/flutterdev subreddit:

Save Your Data Locally in Flutter with Hive
https://ift.tt/3eJPPMM

January 02, 2022 at 02:09PM by SncOne_
https://ift.tt/3sKwjbk
New post on /r/flutterdev subreddit:

FlutterForce — Week 151
https://ift.tt/3mRsIo9

January 02, 2022 at 01:15PM by flutterist
https://ift.tt/3FPqLzM
New post on /r/flutterdev subreddit:

Is the flutter team spreading too thin?
We know the flutter team has a lot in their plate ATM. As the title implies, I think the flutter team doesn't have the resources to tackle all platforms and offer performance, tooling, etc...One part of it are plugins. Sure, you can fork a project and modify it to cater your needs and help grow the community but since we have limited time, it becomes increasingly difficult to maintain any plugin and then you have forks and "new" plugins out of that original one.The community has an Interesting take.Since flutter is tackling multiple platforms, we're creating, in an involuntary manner, factions for each of them.There's a faction pleading to focus more on mobile (plugins, speed, ...) Instead of spreading too thin. Another faction wants the core team to work on bringing web to the forefront of the show and to a certain extent compete with other JS frameworks. Then you have the minor factions pleading on their respective use case (desktop, embedded, TV, etc...).This creates different scenarios that we, as a community, have to address before bite us where the sun don't shine.At best, we maintain the community together by working on cycles: one trimester on mobile, etc...On avg, we create silos that could hopefully communicate without a lot of friction.At worst, devs loose faith since the spread is too thin to get anything done and go to other frameworks that got it together.This is not a rant but something to think as a community.

January 02, 2022 at 04:37PM by elforce001
https://ift.tt/3pLaWEQ
New post on /r/flutterdev subreddit:

Developers don't appreciate Flutter Web enough
There's been a lot of negativity towards Flutter Web recently over everything it can't do so I wanted to share a post about what it can do.First and foremost, building our product in Flutter Web saved us 1-2 years of development time and made our product possible. Without Flutter Web, our company would not exist. Let me explain:At Codelessly, we're building a design to code converter that converts Figma designs into working app and website code. For those that don't know, Figma is a popular design tool. In order to achieve our target goal of 99% conversion accuracy, we realized that we needed to recreate Figma and implement the Figma API spec. Therein lies the problem, recreating Figma requires building a canvas rendering framework.How long would that take? Let's say we chose React to build our product instead of Flutter Web. Starting with React, we'd essentially start at 0 because we'd need to build the rendering framework, tooling, and the required APIs. React includes none of those for free. We would have needed a team of 10-15 people with highly advanced knowledge of React and low level canvas rendering tech. This most likely would have taken 1 - 2 years and at the end of the day, all we would have done is recreate a worse version of Flutter. We also wouldn't be able to leverage any Flutter widget or Flutter plugins. Forget being able to instantly deploy to mobile and desktop as well. Building everything from scratch is what Figma does and it's an incredibly difficult engineering task.Instead, Flutter give us a canvas renderer for free!! Let me repeat that again. With Flutter, you get a canvas renderer with Flutter's worldclass APIs and widgets, tooling, ecosystem, and deployment to native desktop and mobile on top, for free. The canvas renderer itself is worth millions of dollars. The ecosystem - invaluable.Here's what you can do with HTML canvas:Recreate Figma, Miro, and almost any web app that requires dynamic graphics.Build a data table that supports 10 million rows.Animated, interactive experiences.Custom graphs and data visualizations.Realtime streaming graphics.The choice is easy, you can either spend years learning React and WebGL or use Flutter and start building instantly.Flutter Web opens up a world of possibilities and enables smaller teams to build incredible web apps that would otherwise be impossible. Hopefully we can make that the narrative instead of focusing on how Flutter Web isn't good for building HTML websites.

January 02, 2022 at 05:54PM by Codelessly
https://ift.tt/3457P24
New post on /r/flutterdev subreddit:

Flutter vs Native Kotlin with Jetpack Compose
Having worked with Flutter and Native Java for Android app development. I think the general opinion is that Flutter stands out in terms of developer experience, time to deliver and ease of developing custom UIs.But how does Jetpack Compose combined with a modern programming language like Kotlin compare?Feel free to share your experience with any/both. And what would you prefer considering the target is only Android.

January 02, 2022 at 06:33PM by mannprerak
https://ift.tt/3mOKEje
New post on /r/flutterdev subreddit:

Is react native skia a threat for flutter ?
https://ift.tt/321vYGn

January 02, 2022 at 06:16PM by bouraine
https://ift.tt/3ziEI74
New post on /r/flutterdev subreddit:

How long will it take me to design my first app?
Hey everyone! So to give you some perspective, I'm a UX Designer with a background in WordPress website development as well. I also have basic knowledge of HTML and CSS and how code works in a general sense, but zero Flutter experience.I want to design a somewhat basic app similar to many productivity or planning apps. Giving users the option to create and organize their own input. There will be no complex things like messaging, posting, things like using a camera or microphone, etc.Based on your experience, how long do you think it will take me to start learning Flutter and develop an MVP for an App?

January 02, 2022 at 09:05PM by space-ranger-5
https://ift.tt/3pM63vj
New post on /r/flutterdev subreddit:

When to store data locally vs cloud?
I’m making an event planner calendar app and don’t know if local data or cloud Firestore would be best.I’m new, so I’m thinking if user device storage is full, then storing data locally won’t be possible since device has no more space. (Not sure if that’s how local data works)I want to store data locally just to avoid firebase cost.

January 02, 2022 at 10:57PM by ManleyPlayz
https://ift.tt/3mQH1t4
New post on /r/flutterdev subreddit:

Dart type you have NEVER used
https://ift.tt/3JBj5nf

January 03, 2022 at 09:58AM by mkobuolys
https://ift.tt/3sQDsH3
New post on /r/flutterdev subreddit:

Flutter Web Storage Benchmarks
https://ift.tt/3eOdls9

January 03, 2022 at 03:34PM by processctrl
https://ift.tt/31oeKTc
New post on /r/flutterdev subreddit:

change color of card on tap
i am new to flutter and need help with my code. i want my ontap function to change the color of my card from grey to red,class SubjectDetailsphymcq1 extends StatelessWidget {
u/override
Widget build(BuildContext context) {
return Scaffold(
        appBar: AppBar(
          title: Text("Quiz 1"),
        ),
        body: new ListView(
          shrinkWrap: true,
          children: <Widget>[
Column(
              children: <Widget>[
InteractiveViewer(
                  child: Image(
                    height: 100,
                    image: AssetImage('assets1/Screenshot (124).png'),
                  ),
                ),
Card(
                  elevation: 5,
                  margin: const EdgeInsets.all(0.0),
                  child: InkWell(
                    onTap: () {},
                    child: Container(
                      child: Text("A) Impulse", style: TextStyle(fontSize: 20)),
                      width: 350,
                      height: 50,
                      padding: const EdgeInsets.fromLTRB(20, 0, 0, 0),
                      color: Colors.grey[200],
                    ),
                  ),
                ),
              ],
            )
          ],
        ));
  }
}

January 03, 2022 at 04:54PM by ball-sack-patato
https://ift.tt/3eLDckl
New post on /r/flutterdev subreddit:

Schedule notifications in Flutter using Awesome Notifications — [Part 2]
https://ift.tt/3qLIMJe

January 03, 2022 at 07:25PM by RaghavTheGreat1
https://ift.tt/3qHrxIZ