Flutter Desktop Application Image Picker - flutter-web

I am building Flutter Desktop Application . I am facing many issues .
I want to pick a image from Flutter desktop and need path in return But no plugins are supported .
Help me regarding this issue .I hope you will reply me as soon as possible.

Hi did you use file_picker pub its support for the flutter Desktop its also return file path

Related

how to enable or switch existing flutter project (mobile only) to MacOS or WEB or Linux or Windows?

I have made a flutter app only for mobile (Android and IOS). now client requested that make it for web/macOS/windows app.
so now how can I enable the existing projects for all other platforms or wise wars? here is all case I want to know
Existing on the web and adding other (mobile, windows, mac)
Existing on the web and adding only (mobile)
Existing on the Mobile and adding other (web, windows, mac)
Existing on Mobile and adding only (windows, mac)
Existing on the Mac and adding other (mobile, windows, web)
Existing on Windows and adding other (mobile, web)
many many thanks in advance. Questions and answers will be useful for many flutter developers in the future so if possible then a details answer will be appreciated!
flutter create --platforms=windows,macos,linux .
Is the one command that you need to run in terminal of your root project directory. You can specify platforms in the comma seperated list.
Like mentioned in the doc https://docs.flutter.dev/development/platform-integration/desktop#add-desktop-support-to-an-existing-flutter-app
List of platforms:https://docs.flutter.dev/development/platform-integration/desktop#add-desktop-support-to-an-existing-flutter-app
To enable disable platforms let say we want to disable ios altogether you can use and create a project later. Now you wont have ios as it is not available.
Well you can toggle the config and simply run the above mentioned command to go for ios
flutter config --no-enable-ios
You can follow this link for the config commands.
https://docs.flutter.dev/development/platform-integration/desktop#set-up
So lets say you have a case where you need to add only windows and mac you can disable other platforms and use the create command.
Now for the existing project if you want to enable or add a platform you can use the above create with platforms flag
NOTE:
CONFIG SETTINGS ARE USUALLY GLOBAL
There are many ways we can counter it. we can make use isolated development too complicated for simple usecase.
We can use FVM https://fvm.app/ for the configs so that it doesnot affect our core sdk.

Dart The named parameter 'home' isn't defined

when I am trying to run an app in VS code, this message shows up "The named parameter 'home' isn't defined.".
It is a general problem for all flutter projects .flutter doctor says no issues.
I also tried creating a new project from scratch using android studio and Intellij and no progress .it says (theme: and home:) are not identified as named parameters.before that everything was perfectly fine ..please help! :(
As mentioned in the comments, it seems like you may have modified your Flutter SDK (there was previously a bug in the analysis server that made this easy to do accidentally by running quick-fixes).
There's an open issue about having flutter doctor detect this here:
https://github.com/flutter/flutter/issues/25220
For now, running the git clean command Günter gave in the comments from inside your Flutter SDK folder should get things back to normal.

iOS App crashes since Xamarin.Forms version 2.3.4 when distributed via TestFlight

We have a Xamarin.Forms app for iOS and Android that we have in the stores for some months now. We develop with VS 2017. For testing the iOS-version, we use TestFlight.
Everything worked pretty well, until mid-april when we wanted to test a new release via TestFlight:
We installed the iOS-App on our test devices via TestFlight, and now on our test devices the app closes down right after the splash screen without generating a crash report (we use HockeyApp).
The app works fine though on the iOS-simulator and when being published directly on a device (iPad) via VS.
We found out that the problem is the update of Xamarin.Forms from version 2.3.3.180 to version 2.3.4.231 or later.
We would like to use latest version of Xamarin.Forms. Does anyone have the same issue and did you find a solution?
We just found the solution for this problem:
We use a custom font for our app and changed the font of the navigation bar in the AppDelegate.FinishedLaunching method by using UINavigationBar.Appearance.SetTitleTextAttributes.
This caused the iOS version of our app to crash when distributing via TestFlight. We removed the code to change the font and now we can publish the app again.

Opening documents in hybrid apps

I have made a hybrid app using jquery mobile and now I want to open few docs such as pdf,pptx etc.which are already included in project on a button click. I have the liberty to open it inside as well as outside the app. Ouside the app will be feasible I guess as device can then take care of opening. I want to install app in iOS, windows and android device. Any help would be appreciated.
#user2621561, you can achieve your requirement by using Cordova file, file transfer and file opener plugin. If the file is available in server, first you got to download the file using file transfer plugin and store it in device using file plugin and then you can open the file using file opener plugin. Have tested this approach in iOS and android, it works. Not tested in windows though.

develop for Vuzix M100 smart glasses

I am developing for Google glass using Glass Development Kit + android studio. I am unable to run this apk file on Vuzix M100 smart glasses. So for this problem I checked its developer site .This website says that "We need to use eclipse IDE along with vuzix sdk to develop for same."
Please suggest me on below mentioned points :
So it will cause double work for me. Any body knows any solution to this problem ?
Can I upgrade Vuzix Smart phone OS to run API level 19 ?
How can I make this apk generated using GDK to run on Vuzix M100 Smart Glasses.
I have also come across this question ,but answer was posted a year before.
After much reserch and browsing I found out that wikitude SDK can be used for developing applications that can run on both google glass and Vuzix M100 smart glasses.For details check out the documnets listed below :
http://www.wikitude.com/documentation/
http://www.wikitude.com/developer/documentation/epson

Resources