r/FlutterDev • • Dec 09 '21

Plugin Introducing a Flutter Charting Library: Graphic

118 Upvotes

About a year ago, we published a Flutter charting library: Graphic, aiming to help Flutter app developers in data visualization. It evolves a lot in the past year and has these features now:

  • A Grammar of Graphics: Graphic derives from Leland Wilkinson's book The Grammar of Graphics, and tries to balance between theoretical beauty and practicability. It inherits most concepts, like the graphic algebra.

  • Declarative and Reactive: As is encouraged in Flutter, the chart widget of Graphic is declarative and reactive. The grammar of data visualization is implemented by a declarative specification and the chart will reevaluate automatically on widget update.

  • Interactive: With the signal and selection mechanism, the chart is highly interactive. It is easy to pop a tooltip or scale the coordinate.

  • Customizable: With the shape and figure classes, it's easy to custom your own element, tooltip, annotation, etc.

  • Dataflow Graph and Operators: Graphic has a internal structure of a dataflow graph and operators. That is how the reactive reevaluation and interaction is implemented.

Here is the documentation and Example App, and a introducing artical.

If you need charts in your Flutter app, welcome to have a look and try!


r/FlutterDev • • Nov 25 '20

Discussion Full stack Flutter devs?

118 Upvotes

I posted under r/dartlang yesterday that we just open-sourced the Functions Framework for Dart. I also tweeted about it. Here's what really struck me while I was checking out the profiles of people who liked or retweeted my tweet: a huge percentage of folks listed Flutter as their primary or only area of expertise!

Because I'm coming at this from the serverless perspective, this took me a bit by surprise. But it makes sense that the vast majority of people programming Dart are developing Flutter apps, so I suppose I really shouldn't be quite so surprised.

It also implies to me that there are quite a few people who consider themselves (or are interested in being) full-stack developers who have an appetite for leveraging Dart on the backend.

This also makes sense. I spent a long time as a Node.js developer, primarily doing backend development, but I worked with many full stack devs who really liked using JavaScript both on the frontend and the backend -- it's nice to leverage the expertise you invested time and energy into mastering for a specific programming language on both sides of a web request.

But it also resonates with me for another reason. Although I've been focused on the cloud side of things for quite some time, I spent years building "connected desktop clients" and "rich internet applications" for the browser using a variety of UI frameworks and platforms, going back to Java applets through Swing and JFC for Java, as well as WPF and Silverlight for .NET, for long list of enterprise line of business applications.

I personally never fell in love with building web apps using HTML/CSS/JavaScript. As more and more frontend work shifted to the web, I focused more and more on server code.

Flutter brings me back full circle to the excitement of building user interfaces that began with my first HyperCard stacks back in the late 80's. I'm more new to Flutter than probably 99.9% of all you subscribed to this subreddit.

Let me be clear, my enthusiasm for Flutter isn't about drinking the Kool-Aid at work. Even when I was director of cloud engineering at Appcelerator, I didn't care about Titanium (and I mean absolutely no disrespect to the talented team we had there). It's just that at that point of my career I was far more excited about building out our MBaaS (mobile backend as a service, basically a PaaS for hosting APIs on the backend that the mobile client apps used) than I was about building user interfaces.

As a developer advocate at Google, I have a lot of choice for what areas I want to focus on. I saw an opportunity to bring serverless support to Dart -- a language that intrigued me for a number or reasons. I remember having a conversation and sharing my enthusiasm about Dart with Jeff Haynie, the CEO at Appcelerator, back around 2015 or 2016. We were a hard-core Node.js team and we loved JavaScript, but we were also quite experienced with its pain points.

Having spent years as a Java and C# developer, Dart looked really appealing and promising to me even then. Ironically, I'd spend the next few years with Go just because it was just beginning to dominate in the cloud tooling space, so we adopted it for our next generation CaaS/FaaS, but that's another story...

So back to Dart ... and Flutter. As I began drafting a plan on bringing serverless support to Dart, it occurred to me that considering how much I enjoyed using Java or C# to develop both desktop apps and web services, the same must be true -- or would be true -- for a lot of Flutter devs.

Dart has been marketed as a client-optimized language for quite some time, but this does not mean that there's anything intrinsic to the language that implies it's not a good language for the backend. It simply means that the team committed first and foremost to building quality libraries and an awesome UI framework that can target so many platforms primarily.

But why shouldn't Dart be a first-class citizen of the modern Cloud Native world? In this world, code is deployed in containers. I spent a bit of time a few weeks ago optimizing the size of the Docker image for Dart, with very pleasing results. Although it's not yet an official image, you can still take advantage of it now if you want. This repo provides more details. But optimizing the image is only a first step toward something more exciting.

If you have ever used Google Cloud Functions or Cloud Functions for Firebase, then you're already familiar with a very convenient method for deploying code that can respond to various events in the cloud, including of course, HTTP requests. To write the code that you will deploy to these environments requires that you use a Functions Framework for a specific programming language.

So using the image the image I mentioned previously as a foundation for containerizing functions, Kevin Moore, Grant Timmerman, and I began crafting a Functions Framework for Dart. Although it is still a work in progress and doesn't pass conformance tests yet (because it only supports HTTP requests right now, not other cloudevents), we are quite excited about the progress and that's why we shared the repo on Monday.

So what can you expect from to come out of this effort?

What's happening right now in parallel is that our cloud functions / serverless platforms are being updated so that the underlying runtime support for Cloud Functions and Cloud Functions for Firebase (which is essentially a nice wrapper over Cloud Functions that triggers functions based on Firebase events) will be provided by Cloud Run.

In other words, at the end of the day, no matter which route you take, your cloud functions ultimately run as containers on Cloud Run, our platform for abstracting away all infrastructure management and automatically scaling containers up and down from zero extremely fast.

Until we reach that point of consolidation, you will still in the meantime be able to leverage the Functions Framework to run your Dart functions directly on Cloud Run (or if your enterprise prefers, Cloud Run for GKE and Anthos) as soon as the Functions Framework itself is production-ready. So if you're a full stack developer, this should be exciting news, but how long do you have to wait?

So far we've been making excellent progress. We have more work to do and we need to extend the docs with more examples, but if you're already familiar with containers and Cloud Run, you can start playing right now. Without committing to a timeline just yet, I think it's reasonable to imagine that things will start looking pretty good in early 2021. You can expect a blog post and a video demo using what's there now to walk through an example deployment to Cloud Run sometime in mid-December.

We'd love for you to open issues in the repo to discuss use cases and feature requests you might have or problems that you encounter. If you'd like to email me directly ([email protected]) to start a conversation, I'll do my best to respond to you in a reasonably timely fashion (if it's time sensitive, please do open an issue instead).

So I'll wrap this up with a few questions:

  1. How many of you would strongly consider writing your backend code to leverage cloud functions with Dart next year?

  2. What would you most like to see to get you excited about this? (For example, would Cloud Functions for Firebase be your top priority?)

  3. Is it okay with the community here if I occasionally post updates on this topic in this subreddit, or should they remain in r/dartlang?

Cheers and keep coding awesome things!


r/FlutterDev • • Oct 08 '20

Video Make 2048 With Flutter

Thumbnail
youtube.com
118 Upvotes

r/FlutterDev • • Feb 05 '21

SDK - Beta Channel, not Desktop Beta [News]Flutter Desktop is beta Now!

117 Upvotes

Updates

Flutter 1.26.0-17.3.pre is now available on the beta channel and the tool flag for desktop is reverted

------

Flutter 1.26.0-17.2.pre is now available on the beta channel.

https://flutter.dev/docs/development/tools/sdk/releases

And Flutter Desktop support is landed in beta: https://github.com/flutter/flutter/issues/73857

  • Texture support landed for Windows

  • Several desktop problems sovled, especially about mouse and keyboard event handling

Checkout the full changelog:

  1. Github project for Flutter macOS beta: https://github.com/flutter/flutter/projects/53

  2. Github project for Flutter Windows beta: https://github.com/flutter/flutter/projects/55

  3. Github project for Flutter Linux beta: https://github.com/flutter/flutter/projects/56

Bonus:


r/FlutterDev • • Feb 01 '21

Video 30 Days of Flutter (Turn notification On)

Thumbnail
youtube.com
117 Upvotes

r/FlutterDev • • Nov 16 '20

Plugin Package for HomeScreenWidgets for iOS and Android

Thumbnail
pub.dev
117 Upvotes

r/FlutterDev • • Nov 10 '20

Discussion Am I the only one frustrated by the status of official plugins

117 Upvotes

I am an indie developer, I made a bet on Flutter am very happy with Flutter but everytime I use plugins (the official one to be more specific) I get frustrated. For instance flutter fire is a complete shit show (and I'm sorry about the choice of words). The Admob plugin has a lot of problems (same they problems it had for more than year) : memory leaks, ads on iOS are displayed in full screen and can't be dissmesed, ads fail to load a lot of times. Then we have a Firestore always last to get the new features out of all the platforms about 2 months after the features were announced still they're nowhere in the Flutter plugin (not in for example). Sorry for the long rant and I know that the Flutter team is doing their best but I just feel frustrated and I wanted to know if I was the only one who feel this way


r/FlutterDev • • Jun 23 '25 This

Discussion go_router 15.2.0 introduces a breaking change — in a minor version?!

116 Upvotes

Just got burned hard by letting the pubspec.lock updatesgo_routerto 15.2.0. And I’m seriously questioning how this was allowed in a minor release.

Here’s the deal:

In 15.2.0, GoRouteData now defines .location, .go(context), .push(context), .pushReplacement(context), and .replace(context) for type-safe routing. Sounds nice in theory, but it comes with a big gotcha:

You must now add a mixin to your route classes or you’ll get a runtime error when pushing a page.

  The following UnimplementedError was thrown while handling a gesture:
  Should be generated using [Type-safe
  routing]

No compile-time warning. Just straight-up breakage if you update and don’t read the changelog.

This breaks Semantic Versioning. Minor versions should not introduce breaking runtime behavior that affects core routing logic. That’s what major versions are for.

If you're using codegen-based routing, hold off on updating unless you're ready. And to the maintainers: please, this kind of change needs more care and a major version bump — or at the very least, backward compatibility during a transition period.

Anyone else tripped over this?


r/FlutterDev • • Feb 22 '25

Article Common mistakes with TextFormFields in Flutter

Thumbnail
medium.com
116 Upvotes

r/FlutterDev • • Mar 20 '21

Video Hi, I made this application to control this robot, I used socket for the camera and Bluetooth to send data, enjoy! In the description you can find the code.

Thumbnail
youtu.be
116 Upvotes

r/FlutterDev • • Feb 16 '21

Plugin AWS Amplify (Auth, DataStore, Analytics) is Now Generally Available for Flutter!

Thumbnail
aws.amazon.com
116 Upvotes

r/FlutterDev • • Jul 30 '20

Plugin We open source a Signal Protocol library for Dart and Flutter implements

Thumbnail
github.com
116 Upvotes

r/FlutterDev • • Apr 14 '25

Dart Dart 3.8 will contain an updated formatter that can preserve commas

115 Upvotes

It looks like Dart 3.8 (ready to release but not released yet) will use dart_style 3.1 (also not yet released) which re-introduces the significant comma.

According to the changelog, use

formatter:
  trailing_commas: preserve

in analysis_options.yaml to stop the behavior of Dart 3.7's formatter dart_style 3.0 of automatically wrapping lines by automatically adding and removing commas to achieve this.

Unfortunately, the latest dev build that includes the updated formatter isn't rolled into Flutter yet and I'm too lazy to compile Dart from sources. So I haven't tried it yet.

But I'm really looking forward to that new option.


r/FlutterDev • • May 18 '21

SDK Flutter 2.2 with default null safety released on stable channel

Thumbnail groups.google.com
115 Upvotes

r/FlutterDev • • Jan 05 '21

Community I think it’s past due we start a Flutter Reddit Client

115 Upvotes

That would be pretty cool. r/FlutterDev members can submit and vote on designs, then we make it an open source project.


r/FlutterDev • • Oct 31 '20

Video Custom Paint just became more Awesome 🔥 Flutter Shape Maker | Biggest Update

Thumbnail
youtu.be
115 Upvotes

r/FlutterDev • • Apr 15 '24

Plugin Signals v5 is now released 💙🎉

Thumbnail
pub.dev
114 Upvotes
  • 🪡 Fine grained reactivity: Based on Preact Signals and provides a fine grained reactivity system that will automatically track dependencies and free them when no longer needed

  • ⛓️ Lazy evaluation: Signals are lazy and will only compute values when read. If a signal is not read, it will not be computed

  • 🗜️ Flexible API: Every app is different and signals can be composed in multiple ways. There are a few rules to follow but the API surface is small

  • 🔬 Surgical Rendering: Widgets can be rebuilt surgically, only marking dirty the parts of the Widget tree that need to be updated and if mounted

  • 💙 100% Dart Native: Supports Dart JS (HTML), Shelf Server, CLI (and Native), VM, Flutter (Web, Mobile and Desktop). Signals can be used in any Dart project


r/FlutterDev • • Jun 14 '21

Article A Year As A Flutter Developer

114 Upvotes

Hi there! I'm Alistair, a Flutter Dev from Zimbabwe. Just wanted to share an article that I wrote about my first year as a Flutter Developer.

Main points covered are:

  1. How I got started

  2. The Apps I made throughout the year

  3. How I got my first contract gig

https://alistair.hashnode.dev/a-year-as-a-flutter-developer

Hope you enjoy the article ;)


r/FlutterDev • • Mar 31 '21

Video Flutter Animated Login UI

Thumbnail
youtu.be
114 Upvotes

r/FlutterDev • • Sep 24 '20

Plugin flutter_sinusoidals | Flutter Package

Thumbnail
pub.dev
114 Upvotes

r/FlutterDev • • May 28 '20

SDK Release mode for Windows has been merged to master!!!

Thumbnail
github.com
114 Upvotes

r/FlutterDev • • Sep 02 '19

Tooling Panache, a Flutter material theme editor in your browser

Thumbnail rxlabz.github.io
114 Upvotes

r/FlutterDev • • Aug 16 '19

Tooling Flutter IDE builder !

Thumbnail
twitter.com
114 Upvotes

r/FlutterDev • • Apr 20 '19

SDK Flutter on master now supports building for desktop with hot-reload

Thumbnail
twitter.com
114 Upvotes