Is there any solution to take picture using laptop camera with Flutter desktop? - windows

Is there any solution to take picture using the laptop camera with Flutter desktop (on Windows)?
I don't want to use go-flutter.

You would need to write a plugin that implements it using Windows APIs.
Since the Texture widget isn't supported for Windows yet, you would need to use a separate native window for any live preview UI.

use camera_windows 0.1.0+1, the official plugin

Related

Change application opening animation in flutter

Below is the link of the natural behavior flutter desktop application shows in my application:
https://screenrec.com/share/wtcI6OFJ7L
Because this is the system tray application for desktop, to give the feel, i want it to open as:
https://screenrec.com/share/FfJknUReT3
How can it be achieved? The animation plugins in flutter that i have researched so far does not provide this functionality.
Since this is only about windows platform, I found a WIN32 API that may meet your needs. Follow this link:
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-animatewindowHere is a YouTube video on it: https://www.youtube.com/watch?v=meIci7gOTLk You can call the api using win32 package in your flutter application. Here is the link: https://pub.dev/documentation/win32/latest/winrt/AnimateWindow.htmlAs per its documentation, the API enables you to produce special effects when showing or hiding windows. There are four types of animation: roll, slide, collapse or expand, and alpha-blended fade.

show local notification on Windows Flutter

Im trying to build a windows application using flutter. I want to show native windows notification on certain events. I did not find any library to do this.
any idea?
you can use flutter_local_notifications_linux: ^0.3.0 it part of flutter_local_notifications so it should work

Genymotion GPS is not getting my current position

As the title says, my genymotion is getting the static position declared in the gps options. Theres another option that I could get my current position? Im using cordova application testing with genymotion.
Genymotion does not plug the GPS position to your computer's position.
If you want to customize your position you can do it on several ways:
Use the GPS Widget (free feature) located on the right bar of the device. You can either set manually GPS data or use the Map view to do it easily
Use the Genyshell (free feature) to script the positions injection.
Use the Java API (paid feature). By including the JAR of this feature you can control the GPS and other device sensors. This feature is very useful to improve code coverage, for unit testing for example.
I was using cordova geolocation plugin.
navigator.geolocation.getCurrentPosition(onSuccess,onError,options);
And I was also facing the same problem, It wasn't working in genymotion. Setting enableHighAccuracy to true worked for me like below.
var options = {
enableHighAccuracy: true,
maximumAge: 0
};
For programming, you could give fake position by using any app. For instance you might use Fake GPS location to give static GPS position.

how to make firefox or any other xulrunner based app float above all other windows in mac 10.6 and above?

afloat is very useful to keep the window above all the windows in mac, but only cocoa based applications. Is there a way that one can achieve this feature for other applications programmatically. example firefox
I do not want to use afloat, but I would like to know how to code this feature in mac.
Thanks a lot!!

Can we programmaticllay take screen shots using Blackberry and Windows 7 SDK?

I know that we can take screen shot of an App during runtime. In iOS we can use UIGraphicsBeginImageContext to get the screen shot. We can also do the same in Android.
But is it possible with Blackberry and Windows 7 Mobile OS?
A simple search for "blackberry screenshot" on stackoverflow returned this pretty straightforward answer:
Taking screenshot of the current screen in BlackBerry
And a search for "windows-phone screenshot" yields this:
Windows Phone 7 - Capture Screen
If what you need is for capture a screenshot of your own Windows Phone app, then this post from Jeff Wilcox will come in handy!
It looks like there is a function for that in Display. Check out the SDK reference.
There are a couple of Homebrew tools you can use to take screenshots on WP7 here and here however you wont be able to use these programatically. You can also something along the lines of Mark Artega or Jeff Wilcox
There is no Silverlight VisualBrush support for WP7 and no global Screenshot functionality on WP7 Mango, but writablebitmap.
There is a very usefull way by using default Microsoft Emulator integrated WP7 Screenshot Tool
or use third party methods.
If you are familar with XNA Framework, there you can access to the screen. Using Multithreading, you can do your screenshots that way. If never used the last app because I feel fine using Microsofts Emulator Screenshot button to save my png images.
After you can stitch it together using different ways.

Resources