Is there a way to get the size of an existing widget?

I'm trying to get my UI to show two buttons with one slightly overlapping the other, in the middle of a full-width card. Because a Stack will only be as wide as its n...

Add different routes/screens to Flutter app

I'm trying to add multiple screens to my flutter app but can't get it to work. And there are no tutorials/ guides to do this. Does anyone have an example on ho...

How do I set the animation color of a LinearProgressIndicator?

The <a href="https://docs.flutter.io/flutter/material/LinearProgressIndicator-class.html" rel="noreferrer">LinearProgressIndicator documentation</a> helpfully displays...

How to playback an .mp3 file in a Flutter app?

I have written a <em>Dart</em> web app that retrieves .mp3 files from a server and plays them back; I am trying to write a mobile version using Flutter. I know <code>d...

Material flutter app source code

There used to be a sample application, called Material flutter. It was a nice show case of all the flutter widgets. Does anyone knows where the source code is?

Flutter build with C/C++ code - example?

I'm using the hello_services gradle build to create a service in Java, but what I would really like is to use C/C++ code within my app, initially on Android. I've trie...

Is it possible to develop iOS apps with Flutter on a Linux virtual machine?

I am new to developing mobile apps and wanted to try Flutter but I use Windows. Because Flutter doesn't support Windows yet I had the idea to use a virtual machine run...

No top-level getter className declared

I am expanding on the flutter_gallery example. I try to create new Gallery Item <pre><code>new GalleryItem( title: 'Journal', subtitle: 'Example app c...

Is it possible to register a Flutter app as an Android Intent Filter and to handle Incoming Intents?

One can launch another Activity using an Intent from a Flutter app: <a href="https://github.com/flutter/flutter/blob/master/examples/widgets/launch_url.dart">https://...

How to navigate to a web page from within a flutter app? (OAuth)

I am trying to build a Flutter app that uses OAuth to connect to a user's account on another website. This requires navigating to the site's OAuth page where the user...

Flutter fails on `flutter` command

I'm following the <a href="http://flutter.io/getting-started/" rel="noreferrer">Getting Started with Flutter</a> guide and getting stuck when running the actual <code>...

How to capitalize the first letter of a string in dart?

How do I capitalize the first character of a string, while not changing the case of any of the other letters? For example, "this is a string" should give "This...

How to prevent accidental publishing of a private pub package

When I have a package that I absolutely won't publish to pub.dartlang.org, how can I prevent someone accidentally publishing it?

How to exclude debug code

Let's say I have simple logger: <pre class="lang-dart prettyprint-override"><code>void main() { var logger = new MyLogger(); logger.log("hello Dart"); } </c...

How do I split or chunk a list into equal parts, with Dart?

Assume I have a list like: <pre class="lang-dart prettyprint-override"><code>var letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']; </code></pre> I would lik...