Questions tagged [flutter]

Use this tag for questions about the Flutter cross-platform UI toolkit. If your question is platform-specific, tag the platform as well (e.g., [android], [ios], etc.). You may also wish to include the [dart] tag for coding questions.

Flutter applications are written in the Dart programming language, and can connect to platform languages such as Java, Kotlin, Swift, and Objective-C. Also, thanks to ffi support, it is possible to interact with the C code directly . Flutter itself is built with C, C++, Dart, and Skia (a 2D rendering engine).

Flutter development is currently supported on Linux, macOS, Chrome OS and Windows operating systems.

Flutter is developed and maintained by Google and will be the main development SDK for Fuchsia, the expected and upcoming new Operating System also by Google.

Four main components of Flutter:

  • A heavily optimised, mobile-first 2D rendering engine (with excellent support for text) for 60fps apps
  • A functional-reactive framework so you can build customised UIs
  • A rich set of libraries and widgets (Material Design, Cupertino) widgets (optional, you can build-your-own widgets) so you can get started quickly and produce high-fidelity experiences
  • Productive CLI and IDE (IntelliJ) tools for sub-second developer cycles

Flutter is different than most other options for building mobile apps because Flutter uses neither WebView nor the OEM widgets that shipped with the device. Instead, Flutter uses its own high-performance rendering engine and framework to draw widgets to the screen.

Flutter also offers developers a highly productive and fast development experience, fast runtime and engine performance, and beautifully designed widgets that make for beautiful apps.


Resource


Source Code and Building


Community


Books

  • Flutter in Action - Complete Flutter and Dart resource, currently in 'Early Access'.

Related tags

168087 questions
32
votes
14 answers

How to get device IP in Dart/Flutter

I am currently writing an app where the user needs to know the IP address of their phone/tablet. Where would I find this information? I only want to know what the local IP address is, such as, 192.168.x.xxx and NOT the public IP address of the…
iProgram
  • 6,057
  • 9
  • 39
  • 80
32
votes
4 answers

What is initState and super.initState in flutter?

In the documentation it is written but I am not able to understand it. Called when this object is inserted into the tree. The framework will call this method exactly once for each State object it creates. Override this method to perform…
Rajesh Shaw
  • 547
  • 1
  • 4
  • 9
32
votes
10 answers

What is Dart's equivalent to Kotlin's let?

Recently I've been delving into Flutter's ecosystem and Dart has proven itself a neat and simple language. Currently, I am looking for a best practice to run methods if an optional variable is not null. In other words, I am looking for something in…
Ricardo Vieira
  • 1,738
  • 1
  • 18
  • 26
32
votes
5 answers

How to get the claims from a JWT in my Flutter Application

I am writing a Flutter/Dart application and am getting a JWT back from an auth server that has some claims I need to use. I have looked at various (4 so far) Dart JWT libraries -- but all are either too old and no longer work with Dart 2, etc. or…
sjmcdowall
  • 1,471
  • 4
  • 15
  • 27
32
votes
6 answers

DateTime Flutter

How do I implement the current time into Text format? I feel like it should be fairly simple but struggling to do so. Basic example;
Tom O'Sullivan
  • 3,416
  • 5
  • 15
  • 27
32
votes
11 answers

How can I write a paragraph with bullet points using Flutter?

Using HTML I can add a bullet points to a paragraph like this:
  • example
  • example
  • example
    • How can I write bullet point form in Flutter? new Text(''),
lesego finger
  • 321
  • 1
  • 3
  • 4
32
votes
8 answers

Flutter Navigation push Replacement is not working when not placed in the first activity

I have several Page. 1. Start Page 2. Page 2 3. Page 3 4. Main Menu From 1 -> 2. and 2 -> 3. i use this for navigation : Navigator.of(context).push(new MaterialPageRoute( builder: (BuildContext context) { …
Arief Wijaya
  • 827
  • 2
  • 8
  • 20
32
votes
6 answers

How to to display text over the images in Flutter?

I want to display the text over the images in Listview. I am able to see the Images and text but text will showing at left top corner. I want to display it on each text over the each images. Below is my code. Please help me import…
Google
  • 2,183
  • 3
  • 27
  • 48
32
votes
5 answers

How to align a Column's child to the bottom

I'm trying to build a generic home page and I want to align the last child of my column (which contains all the widgets for the page) to the bottom of the screen but the widget wrapped in the Align is not moving. The following is what makes the most…
Mattia C.
  • 700
  • 1
  • 5
  • 15
32
votes
15 answers

Restrict Special Character Input Flutter

I have a TextField that will only take numbers as an input. The Keyboard that appears allows for the input of the the following characters: "-(hyphen) ,(comma) .(period) and space". How can I prevent the user from entering all except the period. …
SupremeAbraxas
  • 321
  • 1
  • 3
  • 3
32
votes
6 answers

How to create toolbar searchview in flutter

I need to implement searchview in toolbar my app to filter a list view:
Magesh Pandian
  • 8,789
  • 12
  • 45
  • 60
32
votes
6 answers

How to open and PDF or word document in the [Flutter]

Question is simple, I would like to open any pdf or doc file via default App with using Flutter. Think a Raised button that related my pdf asset, when user press it, pdf will be opened via Acrobat reader or etc. I don't want to use any web_view for…
Weud
  • 321
  • 1
  • 3
  • 3
32
votes
4 answers

Change TextField's Underline in Flutter

I'm working on an application using Flutter SDK. When I use a TextField widget, and I focus it, the underline becomes blue. I need to change this color to red, how can I do it? Screenshot of what I need to change. I want just the underline to…
Tiziano Gioè
  • 683
  • 2
  • 7
  • 8
32
votes
1 answer

GridView.builder creates page that scrolls endlessly

Trying to use an API to build the grid. Everything renders fine but after the last row of tiles the page goes blank & just keeps scrolling & scrolling &... the grid is built like so: body: new GridView.builder( gridDelegate: new…
JC23
  • 1,248
  • 4
  • 18
  • 28
31
votes
2 answers

LockScreen widget in Flutter?

There are some plugins like home_widget: ^0.1.6 that supports only HomeScreen Widgets. Recently Apple launched LockScreen Widgets on iOS 16. Is there any plugin for that? How do I implement that?