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

Flutter FlatButton is deprecated - alternative solution with width and height

After Flutter Upgrade "FlatButton" is deprecated and I have to use TextButton instead. I didn't find a solution for a new button-type with width and height. This is my working FlatButton. How can I solve it with textButton or…
Moo
  • 670
  • 1
  • 6
  • 11
32
votes
8 answers

flutter_localizations from sdk depends on intl 0.17.0 and fstore depends on intl ^0.16.1, flutter_localizations from sdk is forbidden

Because every version of flutter_localizations from SDK depends on intl 0.17.0 and fstore depends on intl ^0.16.1, flutter_localizations from SDK is forbidden. So, because fstore depends on flutter_localizations any from SDK, version solving…
32
votes
3 answers

Get the Global Context in Flutter

Is there any way to get the global context of Material App in Flutter. Not the context of particular screen. I am trying to get the context but it gives me the context of particular screen but I wan the context of MaterialApp.
Muhammad Tameem Rafay
  • 3,602
  • 2
  • 21
  • 32
32
votes
6 answers

This request is missing a valid app identifier, meaning that neither safetyNet checks nor reCAPTCHA checks succeeded

Flutter App Firebase Phone Authentication Error: This request is missing a valid app identifier, meaning that neither safetyNet checks nor reCAPTCHA checks succeeded. Please help me to solve this issue.
32
votes
7 answers

How to I change the disabled color of an ElevatedButton

I am using Flutter ElevatedButton, which is recommended over RaisedButton in the docs. In raised button, you could specify and disabledColor. In ElevatedButton, I can not. How can I stylize what the ElevatedButton looks like when it is disabled?
Scorb
  • 1,654
  • 13
  • 70
  • 144
32
votes
28 answers

Flutter: Unhandled Exception: Bad state: field does not exist within the DocumentSnapshotPlatform

I am new to flutter and i am building a social media App through tutorial which i am now customizing. Now I tried to add more input fields to a users profile page then i started getting the error below. When i could login my timeline page turned red…
Ace
  • 390
  • 1
  • 4
  • 11
32
votes
3 answers

Problem launching an app in release mode Flutter on an iOS simulator

I can no longer launch my application in release mode on the simulator. When I type "flutter run --release" I get an error message "Release mode is not supported by iPhone 11.". Anyone else have the same problem?
Jeremy HOFFMANN
  • 1,230
  • 1
  • 11
  • 21
32
votes
3 answers

Triggering initial event in BLoC

example_states: abstract class ExampleState extends Equatable { const ExampleState(); } class LoadingState extends ExampleState { // } class LoadedState extends ExampleState { // } class FailedState extends ExampleState { …
vendrick
  • 478
  • 1
  • 5
  • 12
32
votes
3 answers

What is copyWith and how can I use it in Flutter and what are it's use cases?

//File: email_sign_in_model.dart class EmailSignInModel { EmailSignInModel({ this.email='', this.formType=EmailSignInFormType.signIn, this.isLoading=false, this.password='', this.submitted=false, }); final String email; …
Milan Poudel
  • 602
  • 1
  • 9
  • 20
32
votes
2 answers

How to extract number only from string in flutter?

Lets say that I have a string: a="23questions"; b="2questions3"; Now I need to parse 23 from both string. How do I extract that number or any number from a string value?
Zero Live
  • 1,653
  • 5
  • 22
  • 44
32
votes
2 answers

How to apply flex in flutter

I am a beginner in a flutter, and I have learned how to handle the sizing and text rendering when the screen sizing changes from desktop to tablet to mobile. But I want to understand how can I change the sizing or flex the content when I am…
Unbreakable
  • 7,776
  • 24
  • 90
  • 171
32
votes
6 answers

How to use data from Provider during initState in Flutter application

I am refactoring my Flutter application code by adding Provider as a state management. Desired behavior: When Home screen opens, app should check if users email verified, if it's not then should show dialog popup. Problem: It worked fine when I…
32
votes
10 answers

How to change checkbox border-color in flutter? By default, it is showing black but I want it in grey

How to change checkbox border-color in flutter? By default, it is showing black but I want it in grey.
Aishwarya
  • 509
  • 1
  • 7
  • 14
32
votes
3 answers

Dart - Constrain a generic type (T) to an Enum

Is there a way to constrain a generic type to be an enum, something like the following? class MyClass {} Something like this in C#.
atreeon
  • 21,799
  • 13
  • 85
  • 104
32
votes
5 answers

How can you set title and icon for a flutter web app?

What I'm trying to do is build a flutter web app that, when displayed in the browser, the tab shows an icon and a title (as currently it only shows the world icon and the localhost... title). Actual Result : Desired Result : Edit: I can now add…