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
5 answers

Flutter How to always hide keyboard when click on TextField but keep focus(Keep show cursor)

I can't control keyboard show or hide, In my project I need to always hide keyboard but keep focused to display my custom keyboard(a widget). This is I want And this is my problem
32
votes
3 answers

How to overlap SliverList on a SliverAppBar

I'm trying to overlap a SliverList a few pixels over the SliverAppBar. Similar to this post. I'd like the image in the FlexibleSpaceBar to go under the radius of my SliverList. I'm attempting to achieve the below. I can only get the radius like…
kev
  • 2,306
  • 3
  • 26
  • 31
32
votes
9 answers

Flutter Projects & Android X Migration Issues

I just created a new flutter project, added a few plugins and I'm getting the plugin switched to android x therefore i need to switch to android x. I've tried all the different ways of moving to android x and none has worked for me so far. Right now…
marvin ralph
  • 1,100
  • 3
  • 23
  • 43
32
votes
2 answers

animate show or hide widgets with flutter

i have something like this : import 'package:flutter/material.dart'; class MyWidget extends StatefulWidget { @override State createState() { return _MyWidgetState(); } } class _MyWidgetState extends State { …
DJafari
  • 12,955
  • 8
  • 43
  • 65
32
votes
7 answers

Flutter - Change search hint text of SearchDelegate

In current implementation of SearchDelegate, there is no option to change the hint text. When the query is empty, search screen is displaying "Search" in the query field as a hint text. Hint text is currently defined on line 395 as follows: final…
Despotovic
  • 1,807
  • 2
  • 20
  • 24
32
votes
9 answers

A problem occurred evaluating project ':app'. > path may not be null or empty string. path='null'

Iam facing error while iam trying to run flutter. D:\fluttapp\testbuild>flutter run Launching lib/main.dart on Google Pixel 2 XL in debug mode... Initializing gradle... 2.1s Resolving dependencies... * Error…
32
votes
7 answers

How to add drop shadow to TextFormField In Flutter

I have a text form field in flutter I want to add a drop shadow to it. how should I do that? final password = TextFormField( obscureText: true, autofocus: false, decoration: InputDecoration( icon: new Icon(Icons.lock, color:…
NicoleZ
  • 1,485
  • 3
  • 22
  • 43
32
votes
5 answers

Sizing a container to exact half the screen size in flutter

I am trying to get a container to be exactly half the screen height[after considering the AppBar height] and half the screen width. This is what I came up with... class App extends StatelessWidget { @override Widget build(BuildContext context)…
Doc
  • 10,831
  • 3
  • 39
  • 63
32
votes
6 answers

How to upgrade packages in VSCode/flutter?

I'm using VS Code on a flutter project. I just edited pubspec.yaml to point to a later version of a package, and it automatically ran 'flutter packages get'. In my '/development//flutter/.pub-cache/hosted/pub.dartlang.org' directory, I can see both…
gkd720
  • 491
  • 1
  • 5
  • 13
32
votes
4 answers

How do you force 'pub get' to get latest from git?

I have a git dependency in my pubspec.yaml file, how can I force it to be updated when new changes occur in the git repo? flutter pub get / pub get It does not get the latest, as it is in .pub-cache/git/ Is there a way to force a specific…
Chris G.
  • 23,930
  • 48
  • 177
  • 302
32
votes
6 answers

Flutter show app icon badge on push notification

I'm looking for a way to show an app icon badge when a user receives a push notification. I'm using the Firebase_messaging plugin for flutter for the handling of the push notifications and flutter_app_badger for the app icon badges. But I want to…
Kevin Walter
  • 6,507
  • 8
  • 28
  • 32
32
votes
6 answers

Detect if the user leaves the current page in Flutter?

Is there any way to detect if the user leaves the current page? I don’t think WidgetsBinding will work, because it handles these events by itself. So, does anyone have any solution? Any help is appreciated.
Daibaku
  • 11,416
  • 22
  • 71
  • 108
32
votes
4 answers

How to validate dropdown button in flutter?

I'm new to flutter development. I'm trying to validate form with drop down but could not. I followed this link for drop down validation. https://github.com/flutter/flutter/issues/6422#issuecomment-262337023 The drop down is being auto validated.
KURRU HEM
  • 1,643
  • 3
  • 15
  • 22
32
votes
3 answers

How to do error handling with bloc pattern in flutter?

Imagine I'm using a bloc to handle a network request. If the request fails, the way to handle the failure would be different depending on the platform. On my web app, I would like to redirect the user to an error page while on my IOS app I would…
lo__tp
  • 365
  • 1
  • 3
  • 5
32
votes
3 answers

How to minify a Flutter app with Proguard?

I already made a Flutter app. The release apk is about 14MB. I searched methods to minify this and found this ons: https://flutter.io/android-release/#enabling-proguard But my question is, how can I get to know all my used additional libraries for…
Jan D.M.
  • 2,284
  • 2
  • 20
  • 32