For questions about Flutter UI software development kit that are specific to version 2 of the framework. Use the more generic [flutter] tag on all Flutter questions, and only add this one if your question is specific to version 2.
How do I make the autocomplete box be the same size with the TextField which doesn't have a specific width, it takes up the maximum width.
Autocomplete(
optionsBuilder: (TextEditingValue textEditingValue) {
…
After running the Flutter project, I get this error. What can I do to solve it?
Error: The method 'setMockMessageHandler'
isn't defined for the class 'BasicMessageChannel'.
FAILURE: Build failed with an exception.
With the Flutter 2.0 release, the FlatButton has been replaced with TextButton.
Hence, the padding property is not longer available directly, but as a ButtonStyle property.
My problem is, how can I set it since it's no longer available as…
I have upgraded http version and getting this type of error.
The argument type 'String' can't be assigned to the parameter type 'Uri'.
Any solution for convert String to Uri?
After migrating to null-safety and flutter 2 I get problem with ios build:
I run flutter clean; rm ios/Podfile.lock pubspec.lock; rm -rf ios/Pods ios/Runner.xcworkspace; flutter run --flavor dev -t lib/main_dev.dart
and got this logcat:
…
I can't use TextEditingController because the TextFormField uses the Autocomplete fieldViewBuilder TextEditingController
Autocomplete(
optionsBuilder: (TextEditingValue textEditingValue) {
if (textEditingValue.text…
I got a problem with Firebase Cloud Messaging onMessage in Flutter 2.0.
The function
FirebaseMessaging.onMessage.listen((RemoteMessage message) { ... }
is not called when receiving a message in the foreground. However, the logs say
broadcast…
I am posting this question to help future readers. After upgrading to Flutter 2.8 I suddenly got this error when trying to run my app:
Flutter: A value of type 'ListTileThemeData' can't be assigned to a variable of type 'ListTileTheme'.
How did I…
I'm making a project in which when user click on button a timer will start and after user set time a sound will play for that I'm using just_audio: ^0.6.15+1 in my flutter project but it cause many issue below is error stuff.
D/Linux (21303):…
I am developing an app for Windows Desktop, using Flutter 2.0.
How can I clear app data and make it as it was at day zero, remove all caches, remove any signed accounts, ... just like Clear Data in Android.
In my App, I use 2 Material Apps to handle the Navigation with the BottomNavigation Bar.
As my App is pretty complex, this was the best way to do this.
On one Screen, when the user is not logged in, a bottomSheet opens, where the user can put in his…
Before switching to Flutter 2, I was using an old version of firebaseMessaging without problems, and now I have the latest version.After upgrading I get the following error:
The class 'FirebaseMessaging' doesn't have a default…
Flutter application is designed for mobile and web. We are using firebase_messaging for messaging funtioanlity. It was working charm earlier. Recently we upgraded our Flutter SDK to 2.0 version (Channel stable, 2.0.4).
And the application works as…
I have A list of Images.network("$imgUrl") in my flutter app
It works fine on phones (Android and IOS even on phone Browsers) but it does not work on desktop browser.
however images are shown when i use flutter build web --web-renderer html
should'n…
While defining ThemeData of the Flutter app, we can define colorScheme property.
This property has inner-properties such as background & onBackground, primary & onPrimary, secondary & onSecondary, etc. Also, all these properties are set as…