How do I format the background color for a positioned block of text?

I have a positioned Text element that sits on top of an Image element in a Stack. I'd like to apply a simple background color to that Text element, so that it frames t...

How can I layout widgets based on the size of the parent?

Let's say you have a parent widget that might have a variable size. For example: <pre><code>var container = new Container( height: 200.0, // Imagine this...

How do I bold (or format) a piece of text within a paragraph?

How can I have a line of text with different formatting? e.g.: Hello <strong>World</strong>

Flutter app not able to run in IntelliJ

I have installed flutter and dart plugin in IntelliJ as suggested at flutter.io official doc but I am getting the below error. <pre><code>Could not find an option...

Google, Facebook Sign in support with Flutter

I am new to Flutter, Is there any way that i can provide Sign in using <strong>GOOGLE/FACEBOOK</strong> with Flutter. Thanks

Is there a way to call specific code right before the app is killed or moves to the background?

I want to write the user's preferences to a file before they leave the app, so I'm looking for something in Flutter like Android's onPause() or onStop() methods. Is t...

Preloading local image assets in Flutter

I have a list of image assets, and I have one Image widget onscreen. I use a button to cycle through them, using setState(). <pre class="lang-dart prettyprint-over...

What would be a good way for a widget to take 1/3 of the screen?

I am trying to make a widget take up 1/3 the screen regardless of the phone orientation. How do I accomplish this?

IconButton calling setState during onPressed shows no ripple effect

During the <code>onPressed</code> of my <code>IconButton</code> I need to update the database and then the UI so that the user sees feedback of the data change. To do...

Passing command line arguments to a flutter app

Is <a href="https://pub.dartlang.org/packages/args" rel="noreferrer">package:args</a> ArgParser compatible with flutter apps? I see on Github that it is used several t...

How do you use a TextPainter to draw text?

The <a href="https://docs.flutter.io/flutter/material/CustomPainter/paint.html" rel="noreferrer">documentation for CustomPainter's paint method</a> says, "To paint tex...

Is there a way to control where a Text widget overflow occurs (how many lines)?

Right now it seems like if I set the overflow to TextOverflow.ellipsis it cuts off the text at the end of the first line. I want the text to be able to wrap to and fi...

How to set max lines for Text or RichText?

In android, we can set max lines for text view like this: <pre><code>&lt;TextView android:id="@+id/text" android:layout_width="fill_parent" android:la...

Is there an easy way to find particular text built from RichText in a Flutter test?

For example, I may have one <strong><code>RichText</code></strong> in current widget tree, that looks like <pre class="lang-dart prettyprint-override"><code>RichTe...

How to share a file using flutter

I am wondering how to share a file in a flutter app? I saw some old references to using Intents with mojo, but that no longer seems to be present. This seems...