Questions tagged [flutter-channel]

25 questions
47
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
  • 997
  • 3
  • 9
  • 13
17
votes
3 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
  • 372
  • 1
  • 2
  • 11
15
votes
4 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
  • 304
  • 3
  • 11
4
votes
3 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
  • 4,359
  • 1
  • 13
  • 32
4
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…
4
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…
3
votes
3 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
2 answers

Flutter cannot switch channel

My flutter works fine with stable channel, but when switching to another channel it ended up with find: invalid mode '+100' Everytime I run this command : > flutter channel master > flutter doctor is always end up downloading a git and the error…
ZKE
  • 71
  • 1
  • 15
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
  • 632
  • 2
  • 8
  • 18
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
  • 15,770
  • 15
  • 88
  • 140
1
vote
4 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
  • 4,359
  • 1
  • 13
  • 32
1
vote
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,033
  • 2
  • 10
  • 27
0
votes
0 answers

Flutter : How to keep Flutter Event Channel running when the app is minimized?

I'm trying to listen to PhoneState using Event Channels , but when the app is minimised , it doesn't listen to the change of events.
muqaddir
  • 1
  • 1
0
votes
0 answers

I'm trying to upgrade the flutter channel but this is what keeps coming up on my flutter console

Checking Dart SDK version... Downloading Dart SDK from Flutter engine 1d537824d6d29bf9967172d32450ef0671097cef... Downloading the Dart SDK using the BITS service failed, retrying with WebRequest... Invoke-WebRequest : Unable to read data from the…
0
votes
1 answer

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
  • 1,833
  • 5
  • 16
  • 29
1
2