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
33
votes
9 answers

How to copy List in dart without old reference?

Code will explain all: //modal for list class MyModal { int myField1; List adjacentNodes; MyModal(this.myField1) { adjacentNodes= new List(); } } //pre code List originalList = new…
pallav bohara
  • 6,199
  • 6
  • 24
  • 45
33
votes
6 answers

How to draw a custom rounded rectangle border (ShapeBorder), in Flutter?

I'm trying to extend the ShapeBorder class to add some functionality. But just playing around with the paint method, I found something that I did not expect: The corners of the border and the corners of the rectangle do not seem to match. I used…
Bram Vanbilsen
  • 5,763
  • 12
  • 51
  • 84
33
votes
8 answers

Flutter Navigator not working

I have app with two screens, and I want to make push from 1st to second screen by pressing button. Screen 1 import 'package:flutter/material.dart'; import './view/second_page.dart'; void main() => runApp(new MyApp()); class MyApp extends…
moonvader
  • 19,761
  • 18
  • 67
  • 116
33
votes
5 answers

Why are certain variables marked as final in flutter custom classes?

I noticed in some of the examples online that classes that extend StatefulWidget have instance variables marked with final. Why is that? I understand what the final keyword does. I do not understand why it is being declared with each instance…
MistyD
  • 16,373
  • 40
  • 138
  • 240
33
votes
3 answers

Flutter Tooltip on all widgets

Is there a way to set a tooltip on a Text widget: new Text( "Some content", tooltip: "Displays a message to you" ) This does not work. However it does work, as mentioned here, on things like the FloatingActionButton: new…
creativecreatorormaybenot
  • 114,516
  • 58
  • 291
  • 402
33
votes
5 answers

How to use @required annotation on Flutter constructor parameters?

When I annotate a constructor parameter with @required IntelliJ shows an error: Annotation must be either a const variable reference or const constructor invocation Can anyone suggest what I'm doing wrong? class StatusBar extends StatelessWidget…
Duncan Jones
  • 67,400
  • 29
  • 193
  • 254
33
votes
6 answers

I want to use named parameters in Dart for clarity. How should I handle them?

TL;DR: Named parameters are optional as a result of a conscious design choice. Short of having official language support, is there any way to enforce (and inform) required named arguments? I find it extremely useful to use named parameters when…
Kafeaulait
  • 664
  • 1
  • 6
  • 14
33
votes
5 answers

How to limit number of characters in TextFormField?

Is there a way in dart language to keep the maximum input length fixed in TextFormField?
Farwa
  • 6,156
  • 8
  • 31
  • 46
33
votes
3 answers

How to Change the Android Notification Icon/Status Bar Icon for Push-notification in #flutter?

I want to replace the default Icon with my own icon for Push-notifications. Now the App show the Icon as White box .
Ajay Kumar
  • 15,250
  • 14
  • 54
  • 53
33
votes
10 answers

Get all from a Firestore collection in Flutter

I set up Firestore in my project. I created new collection named categories. In this collection I created three documents with uniq id. Now I want to get this collection in my Flutter application so I created…
Kamil Harasimowicz
  • 4,684
  • 5
  • 32
  • 58
33
votes
10 answers

How can I handle a list of checkboxes dynamically created in flutter?

Using flutter, I am trying to build a list of values with some text and a customized checkbox next to it. Tapping anywhere on the text or checkbox should show the enabled state and tapping again should disable it. I am unsure how to handle the state…
Anonk
  • 1,473
  • 4
  • 13
  • 15
32
votes
4 answers

IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FMDB.framework" failed: No such file or directory (2) while archiving flutter app

I'm trying to archive my flutter app to export it to the Apple Store. The app can be run without any problems, but the archiving process result with a fail. Xcode is at the latest version that i can download (Version 14.3 (14E222b)) Flutter is…
Matancy
  • 429
  • 4
  • 5
32
votes
12 answers

Flutter IOS build error - "select a development team in the Signing & Capabilities editor."

The following error is displayed when attempting to build on an IOS device: As shown in the picture below, the Signing setting in Xcode is well done. Can you tell me the cause and solution of this? Could not build the precompiled application for the…
Kevin Yang
  • 629
  • 1
  • 5
  • 19
32
votes
4 answers

Flutter doctor results with "cmdline-tools component is missing"

I have tried the answers at here & here to no avail. After installing Android Studio & Flutter on Windows 10, when I run flutter doctor, I get the following: [√] Flutter (Channel stable, 2.5.0, on Microsoft Windows [Version 10.0.19043.1202], locale…
Jhon Piper
  • 513
  • 2
  • 8
  • 21
32
votes
4 answers

Why im getting this error Warning: Operand of null-aware operation '??' has type 'Color' which excludes null

Im using this package flutter_datetime_picker: ^1.5.1 And this is my code String _date = "Please pick Age"; Widget _buildage() { return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( 'Enter Age', …
user15564094