Wow, thanks for the kind words and the highlight! I will add desktop preview as well as soon as it lands in stable! Great video work by the way! :) You got a new subscriber obviously.
This is so cool! I really have been needing to do this and my issues are that I don't have a Mac, and I don't have many devices on me either. So it will make things so much easier for me
Super! Glad you like it. It makes it very easy to quickly switch between different devices to preview different screen sizes and so. But it can't substitute a real device in every instance. You'll see in the package description they mention some limitations - which will give you a better idea.
Glad it brightened your day! This was the quickest I've ever chosen a song before. Went on epidemic sound. The song was promoted. Played it. Loved it. Five minutes later I put it in the video. Normally I spend an hour trying to decide.
Thaaaaaaaaaaaaaaank you , i have a small question >> Should i remove or add these properties inside the materialApp ? locale: DevicePreview.of(context).locale, builder: DevicePreview.appBuilder, i don't know the difference between adding or removing them but i see the difference !!
@@FunwithFlutter Yeah i think their situation is similar to mine. I'm currently using flutter in android studio and can't seem to run the test app. It says that there are no connected devices( The green run button on android studio is grey and not green). So is there a way to get around this or do I have to use visual studio to run the dependency ' device_preview'.
I think I understand the issue now. You have to have at least one Android emulator installed FIRST and then you run this as an emulator within an emulator, is that right?
Nice tutorial 👍...but, i really don't know how to run it on windows after adding to pubspec.yaml and to main.dart file, i'll appreciate any help. Thanks.
As new to Flutter After adding the dependency and installing the packages I'm receiving an error for the import. Target of URI doesn't exist: 'package:device_preview/device_preview.dart'. Try creating the file referenced by the URI, or Try using a URI for a file that does exist.
Are you sure the package was installed. Maybe do a test and see if you can use a different package. Also make sure that there are no weird tabs or spaces in your pubsec.yaml file when including packages. This could cause errors
Get out of my head. I actually considered it for a while. But I've not used it day-to-day yet. Once I've used the package a bit more and given it a proper go, I might just make a video about it. Thanks for the suggestion.
hi! i'm a beginner in flutter, i just want to ask if this is enough to test my app if it works on multiple devices or is it just really a preview, because i can't work with emulators
@@abhinaychitirala2448 its very simple to use follow the documentaton at pub.dev/packages/device_preview Add the package to pubspec.yaml Add a device preview builder to your material app (main.dart) And simply run it, It will start running device in device
The preview runs inside of my current emulator. I know its too much but is there a way to emulate it outside of the boundary of my current emulator? Like you've shown in the video
Hmmmm. I might misunderstand your issue. But here's my answer. I *am* running it in an emulator. That's what you want. However I created a *large* emulator. Specifically for this. You can create a custom android emulator in AVD (android virtual device) manager. That said if you're running a Mac I think you can run this as a Mac app, and you can also run this on the web. I'm sure in the future Windows/Linux will also have better support. Which will be dope.
Depends on your screen size. If your running on a 13 inch laptop, make it 13 inches. And set the resolution to a high resolution, or something like 1920x1080. That is my setting.
I am getting error in app level build.gradle file while connecting my project to firebase. I am trying to solve this problem since last week. But I haven't got any solution yet. So if anyone can help me then please help.