Questions tagged [flutter-channel]

27 questions
67
votes
7 answers

Which channel do I use in Flutter SDK?

There was an announcement of Preview 1 at " Announcing Flutter Release Preview 1 – Flutter – Medium" Download the latest beta release of the Flutter SDK In the document. Get Started: Install on macOS - Flutter Latest beta release version is 0.5.1.…
granoeste
  • 1,531
  • 3
  • 12
  • 15
34
votes
5 answers

Error: The specified language version is too high. The highest supported language version is 2.8. in android studio how can I fix it?

After switched to branch 'stable' flutter channel The following is the build issue. Error: The specified language version is too high. The highest supported language version is 2.8. output:…
J L
  • 647
  • 1
  • 7
  • 15
19
votes
5 answers

create method channel after upgrading flutter- can not resolve method getFlutterView()

i was using native android method in my flutter app using documentation which said use MethodChannel(flutterView, CHANNEL).setMethodCallHandler... but after upgrading flutter the MethodChannel function does not require flutterView and there is no…
Mahmood Bkh
  • 499
  • 2
  • 4
  • 15
12
votes
2 answers

Unit Testing for Providers in Flutter

We have started a new project on Flutter in the TDD approach. I am using providers for State Management. While trying to write the Widget Testing we are facing the issue to test the providers. Can you please suggest with an example to write the unit…
7
votes
2 answers

Flutter Windows Desktop app gets stuck on white screen after msix installation

Background I just developed my first flutter desktop app for a windows machine. The app is working fine while developing/debugging it, but I am trying to test it as an application in release mode. What’s done I created an msix using pub msix. For…
5
votes
1 answer

Hot Reloading in Flutter not Working When running in Physical Device

I'm using Android Studio to Develop Flutter Apps. When I run the App in Emulator I'm able to Hot Reload but when using Physical Device, Hot Reload, Flutter Hot Restart, Timeline View and Flutter Inspector buttons are disabled. Is there any way to…
4
votes
8 answers

Flutter - Flutter Version Management (fvm) package not working in windows

I just added the the fvm package to switch the flutter channel from stable to master without downloading sdk components every time when switching flutter channels. I have followed the step written in readme.md for switching the channel. I have set…
Jay Mungara
  • 6,663
  • 2
  • 27
  • 49
4
votes
2 answers

Flutter - How to switch flutter channel without downloading flutter & dart sdk every time

Currently i was trying on flutter web for which i needed to work on flutter master channel. But, then i needed to work on my other projects. On them i am working on flutter stable channel. But, every time i switch my flutter channel using the…
Jay Mungara
  • 6,663
  • 2
  • 27
  • 49
4
votes
2 answers

Error: Type 'ui.TextHeightBehavior' not found in flutter

I got a problem when I flutter build appbundle in terminal command Compiler message: ../../flutter/packages/flutter/lib/src/widgets/basic.dart:5149:9: Error: Type 'ui.TextHeightBehavior' not found. final ui.TextHeightBehavior…
3
votes
0 answers

Can't receive updates from ValueNotifier when used from MethodCallHandler

I have a simple Widget with a ValueListenableBuilder that listens to a ValueNotifier. The build function of the ValueListenablebuilder is never triggered when updating the value of the ValueNotifier from a native method call (using…
Paolo Rotolo
  • 1,243
  • 1
  • 14
  • 22
3
votes
2 answers

How to detect user inactivity in Flutter

I developed my app for Android using Java and now want to migrate to Flutter. For detecting user inactivity I override this method in my Activity: onUserInteraction and reset a Timer, if there is no user interaction, I show a Screen Saver like…
Mneckoee
  • 2,802
  • 6
  • 23
  • 34
3
votes
2 answers

How to get audio metadata from its path in flutter?

I have path of the audio file like "sdcard://music/ABC.mp3" . How to get other details such as album, artist, duration etc from that path.
Aman gautam
  • 822
  • 2
  • 9
  • 20
3
votes
3 answers

Can I call Kotlin function from Dart

Using Flutter, a kotlin/swift function can be called by something like: file.dart: static const platform = const MethodChannel('my.test.flutterapp/battery'); final int result = await platform.invokeMethod('getBatteryLevel'); file.kt: private val…
Hasan A Yousef
  • 22,789
  • 24
  • 132
  • 203
2
votes
1 answer

Flutter federated android plugin - only see interface method

Running the simplest example in a flutter android plugin(federated), I keep getting: MissingPluginException(No implementation found for method getPlatformVersion on channel plugins.mydomain.com/my_package) It is like it only sees the interface, and…
Chris G.
  • 23,930
  • 48
  • 177
  • 302
2
votes
0 answers

Can we have multiple Flutter SDKs in one machine?

Can I have multiple flutter SDK versions installed on my machine? As we know on stable version, flutter web did not release yet. can i have 2 different channels of flutter sdk on my machine one represents flutter stable channel and other represent…
Umair
  • 1,759
  • 6
  • 23
  • 44
1
2