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

XMLHttpRequest error in flutter web [Enabling CORS AWS API gateway]

Note: It turns out that this had nothing to do with flutter and everything to do with the fact that I had set the API gateway to a Lambda Proxy I am trying to hit an API endpoint from a Flutter web application, every time it errors out and gives me…
DrkStr
  • 1,752
  • 5
  • 38
  • 90
31
votes
2 answers

Flutter: how to delete a file inside the Flutter app directory

I want to delete a text file (which hold some data about the user) inside the directory of my flutter app how to do so?
Karrar
  • 1,273
  • 3
  • 14
  • 30
31
votes
4 answers

Calling a method with Provider.of(context) inside of dispose() method cause "Looking up a deactivated widget's ancestor is unsafe."

When I tried to call a method inside of State dispose method like below. @override void dispose() { Provider.of(context, listen: false).close(); super.dispose(); } I got this. The following assertion was thrown while…
user12208004
  • 1,704
  • 3
  • 15
  • 37
31
votes
1 answer

Use Gradient with Paint object in Flutter Canvas

I am able to draw a semi circle using the following example: Flutter how to draw semicircle (half circle) However, the Paint object only seems to accept a Color (using Paint.color). I would like to add a RadialGradient or LinearGradient as the…
user2511882
  • 9,022
  • 10
  • 51
  • 59
31
votes
6 answers

Flutter - Remove String after certain character?

What is the best way to remove all characters after specific character in the String object in Flutter? Suppose that I have the following string: one.two and I need to remove the ".two" from it. How can I do it? Thanks in advance.
Shalugin
  • 1,092
  • 2
  • 10
  • 15
31
votes
2 answers

How to encode URLs in Dart?

I'm trying to port some code from Python to Dart (for a Flutter application). However, I'm having a bit of trouble encoding URLs. I'm trying to do the equivalent of parsedData = urllib.parse.quote(STR_DATA). The closest I've gotten is with the Uri…
Fabio Suarez
  • 497
  • 1
  • 6
  • 12
31
votes
7 answers

How to change border color of checkbox in flutter / dart

I have a checkbox added to my UI in Flutter app, I can see checkbox color or active color property but can't find any option to change border color of checkbox , which is usually black. Whats the provision or tweak to change the border color ?
vishal dharankar
  • 7,536
  • 7
  • 57
  • 93
31
votes
9 answers

How to extract Left or Right easily from Either type in Dart (Dartz)

I am looking to extract a value easily from a method that return a type Either. I am doing some tests but unable to test easily the return of my methods. For example: final Either result = await…
Maurice
  • 2,129
  • 2
  • 25
  • 33
31
votes
3 answers

How to make flutter card auto adjust its height depend on content

In the project, I'm using images and text inside the flutter card, but the card returns a fixed height. and then I also tried just using a card with an empty value, but it still returns a fixed height. what should I do to make the height of the card…
Fatoni
  • 509
  • 1
  • 6
  • 10
31
votes
8 answers

print() statement not printing to console in flutter iOS app within Android Studio

The print() statement is not printing any data within Android Studio's console in Flutter iOS version, but same code works fine for flutter android version. Here is the flutter Doctor summary: [✓] Flutter (Channel master, v1.10.7-pre.109, on Mac OS…
Aravinth thiyagarajan
  • 2,193
  • 3
  • 12
  • 10
31
votes
10 answers

How to access Provider providers in Dialogs in Flutter

The Provider package makes use of InheritedWidget. This is a problem when I want to access a provider when I'm in a Dialog. If I load a dialog using showDialog(... builder: (context) => MyDialog); I can't access anything using InheritedWidget…
JustLearningAgain
  • 2,227
  • 4
  • 34
  • 50
31
votes
24 answers

Flutter Hot reloading not working in android studio(mac)

While working on mac machine I found that hot reloading not working in Android Studio. I don't know what's wrong :) Here is the code which not reloading(I am changing the Hello world text to Flutter Sample text) import…
Jitesh Mohite
  • 31,138
  • 12
  • 157
  • 147
31
votes
7 answers

How to only add a shadow on one specific side of a Container?

I am trying to add a shadow to only the right side of of my container widget using the boxShadow parameter in the BoxDecoration widget. new Container( decoration: BoxDecoration( color: Colors.grey.withOpacity(0.5), boxShadow: [ …
countpablo
  • 501
  • 1
  • 5
  • 15
31
votes
2 answers

How to jump to another page with pageview flutter

Hello I tried to jump to my second page tab if I press on a button on my first Page tab. Currently I know only call route of my seconde page widget but bottomnavbar isn't present... I don't know how to call my parent widget from my first page tab to…
Nitneuq
  • 3,866
  • 13
  • 41
  • 64
31
votes
5 answers

How to get current URL in Flutter Web App

How can I get the current URL in a Flutter Web App on which the user of the web app currently is? For example: app1.website.com app2.website.com According to the result of the current URL on which the user of the web app currently is, I want to show…
TheUniqueProgrammer
  • 605
  • 2
  • 6
  • 13