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
31
votes
4 answers

libusbmuxd version error during flutter install

I'm having problems installing and configuring flutter On mac OS Sierra 10.12.6 Xcode 9.2 brew doctor reported all ok flutter doctor reported [!] iOS toolchain - develop for iOS devices (Xcode 9.2) ✗ **libimobiledevice and ideviceinstaller are not…
Dave Lister
  • 441
  • 1
  • 6
  • 12
31
votes
2 answers

Flutter Future vs bool type

My Flutter project has a utility.dart file and a main.dart file. I call the functions in the main.dart file but it has problems. It always showAlert "OK", i think the problem is the the utility class checkConnection() returns a future bool…
GPH
  • 1,111
  • 6
  • 29
  • 49
31
votes
7 answers

Change position of a Flutter Snackbar

I want to display a simple disappearing error message above a button when certain conditions aren't met. It seems as if Flutter's Snackbar is well suited to this purpose. However, I'm having difficulty changing the position of the Snackbar to be…
mongy910
  • 537
  • 1
  • 5
  • 16
31
votes
3 answers

convert a String of "uint8list" to a Unit8List

I have a memory image stored in Sqllite converted to String with the toString() method, I want to convert it to Unit8List to display it inside a MemoryImage widget
Osama Gamal
  • 2,280
  • 5
  • 17
  • 28
31
votes
5 answers

How to add asset image in app bar as an action icon in Flutter application?

Problem I am trying to add a logout image icon in appbar of flutter screen. I have created a asset folder and created directories images/icons/ and placed icons in them. I have mentioned them in pubspec.yaml file. I tried to implement a asset…
user3831831
31
votes
4 answers

How to check if Flutter Text widget was overflowed

I have a Text widget which can be truncated if it exceeds a certain size: ConstrainedBox( constraints: BoxConstraints(maxHeight: 50.0), child: Text( widget.review, overflow: TextOverflow.ellipsis, ) ); Or max number of…
Lian
  • 2,197
  • 2
  • 15
  • 16
31
votes
6 answers

How to use an image instead of an icon in flutter?

I am currently doing something like this new Tab(icon: new Icon(Icons.arrow_forward), text: "Browse"), However I would like to use an image as an icon . I get images using new Image.asset("assets/img/logo.png"), My question is how can i use that…
MistyD
  • 16,373
  • 40
  • 138
  • 240
31
votes
1 answer

How to bind an enum to DropdownButton in Flutter?

Is it possible to bind a dropdownbutton to an enum? I have created an enum and trying to bind it to a dropdownbutton, see code below. Thanks for any help on this. enum ClassType { Class-A, Class-B, Class-C, …
Edmand Looi
  • 3,331
  • 6
  • 19
  • 21
31
votes
5 answers

Flutter - Import from existing android project

I am currently working on an android project which is ~75% complete. I need a similar application for iOS. Can I import this project to flutter? How? Also, will flutter supports the libraries I have used in this project?
Rashiq
  • 650
  • 1
  • 9
  • 23
31
votes
3 answers

Flutter - Overlay card widget on a container

In flutter, is it possible to place a part of a card on another container? In CSS, we would set margin-top to a negative value or use translate property. In flutter as we cannot set negative values to margin-top, is there an alternative to that?
Praveen Kumar
  • 1,597
  • 3
  • 13
  • 14
31
votes
7 answers

Flutter column doesn't expand

I am a complete newbie in Flutter, but I already like it. The question is: why is the column not expanding to the full height? code is on gist.github
Nikita Kraev
  • 1,069
  • 2
  • 11
  • 13
31
votes
11 answers

How to change BottomNavigationBarItem icon when selected, Flutter

I am new to Flutter. I have a BottomNavigationBar with 4 items. I want to change icon of the item when pressed. Please help. This is what I have done so far. bottomNavigationBar : new BottomNavigationBar( currentIndex: index, onTap:…
Fathima km
  • 2,539
  • 3
  • 18
  • 26
31
votes
8 answers

Flutter Keyboard listen on hide and show

How can I listen whether the keyboard is showing up or hiding? I tried this example How to listen to keyboard on screen Flutter? void _listener(){ if(_myNode.hasFocus){ // keyboard appeared }else{ // keyboard dismissed …
GreenTigerEye
  • 5,917
  • 9
  • 22
  • 33
31
votes
11 answers

Failed assertion: line 3927 pos 14: '_dependents.isEmpty': is not true

I am back again with the issue related to the question already posted by me on stack overflow Error: '_elements.contains(element)': is not true this issue has been plaguing me but i was unable to reproduce the same issue and now i have somehow tried…
Mahi
  • 5,726
  • 13
  • 31
  • 41
31
votes
4 answers

How to put two ListView in a column?

I have two ListView with ExpansionTiles that I would like place one after another inside a column which has some other Widgets first inside it. This is my code, @override Widget build(BuildContext context) { // TODO: implement build return new…
karan vs
  • 3,044
  • 4
  • 19
  • 26
1 2 3
99
100