Questions tagged [flutter]

Flutter is an open-source UI software development kit / framework created by Google. Flutter apps are written in the Dart language. It is used to develop cross platform applications for Android, iOS, Linux, Mac, Windows, Google Fuchsia, and the web from a single codebase. Flutter was released in May 2017. Largest open-source platform built using UI elements.

Filter by
Sorted by
Tagged with
585votes
17answers
238kviews

How can I remove the Flutter debug banner?

How can I remove the debug banner in Flutter? I am using flutter screenshot and I would like the screenshot not to have a banner. Now it does have. Note that I get not supported for emulator message ...
user avatar
  • 23.9k
479votes
31answers
401kviews

How do I use hexadecimal color strings in Flutter?

How do I convert a hexadecimal color string like #b74093 to a Color in Flutter? I want to use a HEX color code in Dart.
user avatar
442votes
33answers
501kviews

Create a rounded button / button with border-radius in Flutter

I'm currently developing an Android app in Flutter. How can I add a rounded button?
user avatar
  • 8,333
428votes
17answers
356kviews

How to change the application launcher icon on Flutter?

When I create an app with a flutter create command, the flutter logo is used as an application icon for both platforms. If I want to change the app icon, shall I go to both platforms directories and ...
user avatar
391votes
12answers
556kviews

How can I add a border to a widget in Flutter?

I'm using Flutter and I'd like to add a border to a widget (in this case, a Text widget). I tried TextStyle and Text, but I didn't see how to add a border.
user avatar
  • 92.4k
367votes
23answers
222kviews

No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() in Flutter and Firebase

I am building a Flutter application and I have integrated Firebase, but I keep getting this error when I click on a button either to register, login or logout. I have seen other people have asked the ...
user avatar
364votes
28answers
271kviews

How to change package name in flutter?

Is there any way to change Package Name of Flutter project? I want to change package name and application name in flutter project.
user avatar
  • 4,287
354votes
24answers
201kviews

How can I dismiss the on screen keyboard?

I am collecting user input with a TextFormField and when the user presses a FloatingActionButton indicating they are done, I want to dismiss the on screen keyboard. How do I make the keyboard go away ...
user avatar
333votes
15answers
150kviews

How do you detect the host platform from Dart code?

For UI that should differ slightly on iOS and Android, i.e. on different platforms, there must be a way to detect which one the app is running on, but I couldn't find it in the docs. What is it?
user avatar
  • 5,041
329votes
34answers
144kviews

Waiting for another flutter command to release the startup lock

When I run my flutter application it show Waiting for another flutter command to release the startup lock this messages and not proceed further.
user avatar
329votes
60answers
473kviews

Message "flutter run: No connected devices"

I am trying to create a sample application with Flutter (fresh installation). Android Studio is also installed (fresh installation). Here is the output of flutter run flutter run No connected devices. ...
user avatar
  • 14k
323votes
16answers
118kviews

Scaffold.of() called with a context that does not contain a Scaffold

As you can see, my button is inside the Scaffold's body. But I get this exception: Scaffold.of() called with a context that does not contain a Scaffold. import 'package:flutter/material.dart'; void ...
user avatar
314votes
20answers
296kviews

Flutter - Wrap text on overflow, like insert ellipsis or fade

I'm trying to create a line in which center text has a maximum size, and if the text content is too large, it fits in size. I insert the TextOverflow.ellipsis property to shorten the text and ...
user avatar
  • 10.1k
309votes
11answers
91kviews

flutter doctor --android-licenses gives a java error

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156) ...
user avatar
306votes
16answers
295kviews

How to do Rounded Corners Image in Flutter

I am using Flutter to make a list of information about movies. Now I want the cover image on the left to be a rounded corners picture. I did the following, but it didn’t work. Thanks! getItem(var ...
user avatar
  • 3,662

15 30 50 per page
1
2 3 4 5
8076