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

Flutter - Streaming and Caching videos

I'm developing an application in flutter which is showing videos in a list (like Instagram). Videos must be streamed so I can't download them first and then play them. I want to cache them while they are being streamed. I've seen CacheManager class…
Saman Salehi
  • 1,995
  • 1
  • 22
  • 36
32
votes
8 answers

Flutter web create issue in existing flutter app

I already have the flutter app, now I am adding support to flutter Web following this doc. I am getting the error on flutter create . Ambiguous organization in existing files: {com.app.android.fluttermodule,com.app.android.flutterModule}. The --org…
Rahul Devanavar
  • 3,917
  • 4
  • 32
  • 61
32
votes
10 answers

How to access Provided (Provider.of()) value inside showModalBottomSheet?

I have a FloatingActionButton inside a widget tree which has a BlocProvider from flutter_bloc. Something like this: BlocProvider( builder: (context) { SomeBloc someBloc = SomeBloc(); someBloc.dispatch(SomeEvent()); return someBloc; …
Henrique Arthur
  • 988
  • 1
  • 9
  • 17
32
votes
2 answers

How to open DropdownButton when other widget is tapped, in Flutter?

I need to have a DropdownButton's list of options open/show programmatically when some other widget is tapped. I know that this may not be UI-best-practice and all, but I need this behavior: As an example, in a structure like the one below, I may…
NeuronQ
  • 7,527
  • 9
  • 42
  • 60
32
votes
3 answers

How to access to provider field from class that do not have context?

I am using Provider. I have got two classes: class TenderApiData {} it's stand alone class (not widget). How I can write accesstoken to AppState? class AppState extends ChangeNotifier // putted to ChangeNotifierProvider { String _accesstoken; //…
Dmitry Bubnenkov
  • 9,415
  • 19
  • 85
  • 145
32
votes
5 answers

adding width to drawer in flutter

I want to be able to add width to this drawer because it takes up too much of the screen when open and I want to lessen the width a bit, is this possible and how would I do this? here is my scaffold Widget build(BuildContext context) { return new…
overdeveloping
  • 740
  • 2
  • 8
  • 21
32
votes
7 answers

Could not find the correct provider above this widget

I have a problem using Flutter Provider... My flow is like this: After login user id is passed to new widget -> from there it preforms save to db and then it redirects to new widget (Dashboard). And this is a code of a widget after Login: return…
harunB10
  • 4,823
  • 15
  • 63
  • 107
32
votes
8 answers

Adding Shadows at the bottom of a container in flutter?

I have a simple screen with a container about 100 in height and with blue color. I want to add a shadow or elevation at the bottom of the container. This is my code below import 'package:flutter/material.dart'; import…
yoohoo
  • 1,147
  • 4
  • 22
  • 39
32
votes
5 answers

How to pop two screens without using named routing?

For example, my current routing is like this: Login -> Screen1 -> Screen2 -> Screen3 -> Screen4 I'd like to go back to Screen2 from Screen4. I can't use named routing, because I have to pass a parameter to Screen2. Push Screen2 in Screen4 is not a…
Bigto
  • 433
  • 1
  • 4
  • 7
32
votes
2 answers

How to use image icon (from assets) instead of IconData and pagination bottomNavigationBar in Flutter

I am using bottomNavigationBar in my flutter project I'm new in flutter and have I no idea about pagination and use assets image icons instead of iconData. I searched about it for the last 2 days but not got satisfaction. Please help me...... I used…
user10522232
32
votes
2 answers

Listening to a variable change in flutter

I'm trying to listen to a variable change to execute some code. So the variable is a bool named reset. I want to execute something (say reset the animation controller) once the animation ends OR a button (from another widget) is pressed. Executing…
Rajdeep
  • 2,246
  • 6
  • 24
  • 51
32
votes
15 answers

How to align text in a button in flutter?

I just want to do the most simplest of things: I just want to have a button with the text aligned to the right. For some reason I can't figure this out. I tried textAlign: TextAlign.right but it's still in the centre. I tried making a row inside the…
Alex Joseph
  • 423
  • 1
  • 4
  • 4
32
votes
8 answers

App running on debug mode only for Flutter

I am not sure what is wrong with my Android Studio IDE, but whenever I run the app inside flutter it always runs on debug mode. Please see the label on the right side of the corner. Logs: Launching lib\main.dart on POCO F1 in debug…
Jitesh Mohite
  • 31,138
  • 12
  • 157
  • 147
32
votes
21 answers

Flutter packages get does not install new package

I'm trying to install a package (dynamic_theme) in flutter. When I run flutter packages get -v it does not even try to install the package. So far I've tried: Running flutter packages get Running flutter packages get Restarting my computer Updated…
Alve
  • 640
  • 2
  • 9
  • 19
32
votes
9 answers

How to check if the user is logged in, if so show other screen?

My first screen is a login screen and it needs to check if the user is logged in to open the home screen directly but I get an error using this check. I'm doing the check on initState, the condition is returning true, so looks like the problem is…
djalmafreestyler
  • 1,703
  • 5
  • 21
  • 42