Preview Flutter Applications on Multiple Devices

  Рет қаралды 29,963

Fun with Flutter

Fun with Flutter

Күн бұрын

Easily preview your Flutter application on multiple different devices and screen sizes. Change themes, test accessibility controls and more.
Device Preview Package:
pub.dev/packages/device_preview
Make a donation to the package creator:
www.buymeacoffee.com/aloisdeniel
Online preview:
flutter-device-preview.fireba...
/ 1250839559933493248

Пікірлер: 74
@aloisdeniel
@aloisdeniel 4 жыл бұрын
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.
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Thanks :) and thanks to you for the great package.
@kitompoglavi
@kitompoglavi 4 жыл бұрын
That's what she said?
@gameplaystrailers7797
@gameplaystrailers7797 4 жыл бұрын
Aloïs Deniel you are awesome
@bikkikumarsha
@bikkikumarsha 4 жыл бұрын
Flutter is a revolution. Thanks for your priceless contribution.
@1879heikkisorsa
@1879heikkisorsa 4 жыл бұрын
Thank you both!
@shwanagha230
@shwanagha230 3 жыл бұрын
great way to raise donations.... best ever
@loisienyami5095
@loisienyami5095 4 жыл бұрын
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
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
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.
@tristangrobler4950
@tristangrobler4950 2 жыл бұрын
Always cool hearing someone in SA doing cool content!
@FunwithFlutter
@FunwithFlutter 2 жыл бұрын
We're taking over
@Salehalanazi-7
@Salehalanazi-7 4 жыл бұрын
If anyone is wondering the music in the intro is Roral Ceef - A Snake Walking Great video yo! Brightened my day
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
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.
@nihatcancivi5630
@nihatcancivi5630 2 жыл бұрын
Nice video , ty.
@mohsanikram3569
@mohsanikram3569 4 жыл бұрын
Level no words for this
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Thanks :)
@admin69234
@admin69234 4 жыл бұрын
really like this feature.
@eiderarango5863
@eiderarango5863 3 жыл бұрын
Nice video, thanks bro for sharing.
@alifarhadali5580
@alifarhadali5580 3 жыл бұрын
amazing 💙💙
@krishnakumarramachandran5888
@krishnakumarramachandran5888 4 жыл бұрын
Thanks for this video, waiting for your upcoming video's brother.
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Most welcome
@blank-vw2sb
@blank-vw2sb 4 жыл бұрын
Nice
@bikkikumarsha
@bikkikumarsha 4 жыл бұрын
More short videos about cool packages please.
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Coming soon
@michelgent7419
@michelgent7419 4 жыл бұрын
Hey, getting the following exception: No MaterialLocalizations found. Does anyone knows how to solve it?
@AMR-vx6rj
@AMR-vx6rj 3 жыл бұрын
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 !!
@kavyapatnaik6975
@kavyapatnaik6975 3 жыл бұрын
6.7.1 has issues with stable version of flutter. But using beta 0.6.2 solved it. Works smoothly on emulator.
@taeispoop190
@taeispoop190 3 жыл бұрын
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
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
I just emulates. Physical devices are always best, second best would be an emulator. And this is just a nice to have.
@HimanshuYT
@HimanshuYT 4 жыл бұрын
❤️💙💙
@simplastx4821
@simplastx4821 4 жыл бұрын
cool
@Ainigma
@Ainigma 2 жыл бұрын
Can i preview iPhone without a MacBook with this plugin?
@MoAdel92
@MoAdel92 3 жыл бұрын
how to run it after doing this steps
@mefrochedcosta1428
@mefrochedcosta1428 4 жыл бұрын
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.
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
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
@taufiqhasib9720
@taufiqhasib9720 4 жыл бұрын
how can we calculate RGB(red, blue, green) from a photo image ?
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
pub.dev/packages/palette_generator
@motabarjavaid5482
@motabarjavaid5482 4 жыл бұрын
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
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
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.
@motabarjavaid5482
@motabarjavaid5482 4 жыл бұрын
How big would you recommend?
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
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.
@aloisdeniel
@aloisdeniel 4 жыл бұрын
You can launch it on Desktop from master channel!
@motabarjavaid5482
@motabarjavaid5482 4 жыл бұрын
even on linux?
@yaroslavmakarov2218
@yaroslavmakarov2218 3 жыл бұрын
How did you open emulator in the fill screen?
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
Tablet emulator. Hacky hack attack
@nabinray3150
@nabinray3150 4 жыл бұрын
I have added the dependencies and done the else code but now how to launch the emulator? Because when I run the code it tells to connect a device.
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Not sure I understand. There shouldn't be an issue if you can run the normal Flutter starter app. Can you provide more info
@fiqbaha8019
@fiqbaha8019 4 жыл бұрын
@@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'.
@nabinray3150
@nabinray3150 4 жыл бұрын
@@fiqbaha8019 yeah its the same issue of mine.
@walterbarker2
@walterbarker2 4 жыл бұрын
I have the same issue in Visual Studio Code - no connected device
@walterbarker2
@walterbarker2 4 жыл бұрын
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?
@sobanjosodiqsolomon9947
@sobanjosodiqsolomon9947 4 жыл бұрын
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.
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Hey, thanks. Just to clarify, in the video I'm running the app on a android emulator with a set size, not on windows
@rayhanyulanda
@rayhanyulanda 3 жыл бұрын
@@FunwithFlutter Should i input the package in "dependencies" not in "dev_dependencies"?
@Maudrandir
@Maudrandir 4 жыл бұрын
next video idea: styled_widget package, the author says it is a replacement for Division package, same owner
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
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.
@khanisrarahmedalihusain
@khanisrarahmedalihusain 4 жыл бұрын
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.
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Might be better to ask this question on StackOverflow, and maybe provide a little bit more information on the error.
@maheshjamdade1
@maheshjamdade1 4 жыл бұрын
Device preview is the package
@abhinaychitirala2448
@abhinaychitirala2448 4 жыл бұрын
Hey. Can you walk me throw this. I am not able to understand. Pretty much very new to Flutter.
@maheshjamdade1
@maheshjamdade1 4 жыл бұрын
@@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
@hardikvansia3293
@hardikvansia3293 4 жыл бұрын
I accept I am noob. With the help of this now can we run ios device on Windows ?
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Unfortunately not. It's just a skin to make it look like the device. For native functionality always run on the target platform/device.
@phanirithvij
@phanirithvij 4 жыл бұрын
0:18 you lied it only took me a few seconds
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Hah! Better to underpromise and overdeliver.
@adriaanstips1407
@adriaanstips1407 2 жыл бұрын
Ek is ook Afrikaans 😌😎
@ravgeetdhillon2990
@ravgeetdhillon2990 4 жыл бұрын
This video deserves 100% like-to-dislike ratio.
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Thanks :)
Flutter Version Management. You need to use this.
16:01
Fun with Flutter
Рет қаралды 82 М.
Flutter UI Tip 3: Popup Card
12:00
Fun with Flutter
Рет қаралды 73 М.
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 9 МЛН
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 37 МЛН
Каха заблудился в горах
00:57
К-Media
Рет қаралды 10 МЛН
Flutter Layout Basics
4:00
Fun with Flutter
Рет қаралды 117 М.
Nightcore - Outside (Calvin Harris ft. Ellie Goulding)
3:13
TrueNightMusic
Рет қаралды 3,9 МЛН
Flutter Tutorial - Responsive UI Text Layout - Auto Size Text
14:26
HeyFlutter․com
Рет қаралды 32 М.
Best 30 Flutter Widgets, Packages & Tips
5:11
Flutter Mapp
Рет қаралды 119 М.
Flutter Story App UI Concept - Speed Code
7:52
Devefy
Рет қаралды 306 М.
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Рет қаралды 35 М.
React Native vs Flutter | Which to Learn in 2023
10:17
노마드 코더 Nomad Coders
Рет қаралды 97 М.