Questions tagged [flutter2.0]

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.


Resource


Source Code and Building


Community


Related tags

89 questions
29
votes
10 answers

Flutter 2.0 - Autocomplete widget goes out of screen from right side

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) { …
Ibrahim Ali
  • 2,083
  • 2
  • 15
  • 36
26
votes
6 answers

The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'

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.
25
votes
3 answers

Flutter TextButton padding

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…
Sen Alexandru
  • 1,953
  • 3
  • 19
  • 35
13
votes
1 answer

Flutter http 0.13.0 : String can not assign to Uri

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?
Kalp Shah
  • 279
  • 2
  • 14
9
votes
2 answers

Flutter: Undefined symbols for architecture arm64

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: …
andreich
  • 1,120
  • 1
  • 11
  • 28
9
votes
3 answers

Flutter 2 - Set initial value of an Autocomplete TextFormField

I can't use TextEditingController because the TextFormField uses the Autocomplete fieldViewBuilder TextEditingController Autocomplete( optionsBuilder: (TextEditingValue textEditingValue) { if (textEditingValue.text…
Ibrahim Ali
  • 2,083
  • 2
  • 15
  • 36
8
votes
2 answers

Flutter 2.0 with Firebase Cloud Messaging: onMessage not called on Android

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…
7
votes
2 answers

Flutter: A value of type 'ListTileThemeData' can't be assigned to a variable of type 'ListTileTheme'

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…
Josip Domazet
  • 2,246
  • 2
  • 14
  • 37
7
votes
1 answer

Issue in just_audio pugin in flutter

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):…
Ankush Mishra
  • 191
  • 2
  • 6
6
votes
0 answers

Clear data of Flutter for Desktop (Windows) application

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.
AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210
6
votes
2 answers

flutter 2.0: nested MaterialApps -> problem with textInput inside showModalBottomSheet

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…
Markus Hein
  • 604
  • 7
  • 14
5
votes
1 answer

The class 'FirebaseMessaging' doesn't have a default constructor Flutter 2

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…
M Al
  • 357
  • 7
  • 15
5
votes
1 answer

Flutter 2.0 web version with firebase messaging is not working

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…
Raghu Mudem
  • 6,793
  • 13
  • 48
  • 69
4
votes
2 answers

Flutter web canvaskit renderer not showing Network images

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…
Mahmood Bkh
  • 499
  • 2
  • 4
  • 15
3
votes
2 answers

What is difference between primary and onPrimary properties in ColorScheme Flutter

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…
Jaineel Mamtora
  • 498
  • 4
  • 10
1
2 3 4 5 6