How to Create a Stunning Splash Screen in Flutter
ฝัง
- เผยแพร่เมื่อ 12 พ.ย. 2024
- In this Flutter tutorial, I'll show you how to create a beautiful splash screen that will captivate your users and give your app a professional look. I'll take you through the process of building a customized splash screen, complete with a gradient background, icons, and text.
You'll learn how to use Flutter widgets to design the UI and Flutter functions to add functionality to your splash screen. I'll also walk you through the code and explain how it works, so you can understand every detail of the process.
Whether you're new to Flutter or an experienced developer, this tutorial is for you. By the end of this video, you'll have a stunning splash screen that will make your app stand out from the rest. So, let's dive in and create a beautiful splash screen in Flutter!
🛡️Join this channel to get access to perks: www.youtube.co...
Help me reach my sub goal by subscribing youtube.com/@S...
||||||||||||||| 233% ||||||||||||||| 4.66K/2K
Most recent subscriber: jtcdarkstar darkstar
@Spellthorn is a talented web/mobile developer who is dedicated to helping others improve their coding skills. Through their TH-cam channel, they create informative and engaging videos that cover a wide range of programming topics. - spellthorn.com/ - แนวปฏิบัติและการใช้ชีวิต
But it is general decorative splash screen, not real one. For real splash screen, one should determine what platform he/she wants to arrange it since it is so different for every platform on flutter.
Good point
Kindly make the real one 🙏🏾🙏🏾
I don’t know how these don’t have hella views, very good content
Appreciate it 😁 glad you liked it
well explained, thank you for ur time doing the video
Glad it was helpful!
I prefer to use this kinda splash screen compared to the Real Splash screen for iOS and Android. More control and can add animations. Good Tutorial
Took a minute but finally got it, thank you so much!
Glad it helped 😊
Really amazing teacher.
Thank you, glad I can help 😊
thanks a lot for the video, but the default flutter splash screen still appear at first and after the custom one ,there is a way to fix this plz?
Every platform has its own splash screen settings. On Which platform did you encounter this issue ?
Thanks so much
🙏🏾
You're welcome 😊
Thank you so much bro, I waste a lot of time doing this. Your video was on point. Thank you 😄🙏
Glad it helped 😁
@@Spellthorn Bro you didn't believe I spent about 2 hour's just for doing this, didn't found correct methods to do it, glad I found your video
Yea there are other ways to do it too like packages etc but this seemed like an easier approach 😁 glad I could end your struggle 🤣
Wow thanks sir....
Welcome! 😊
Great Job❤ Thank you so much sir🙂🤟
Thanks. Glad you found it useful
Thx bro, its a simple and best solution. I prefered you solution, rather than using package. Regards from Nicaragua!
Great guide! Thx
Glad you liked it!
I’m sorry but this is a wrong way to do this splash screen. Both iOS and android creates a default flash screen to which you only have to change the image. Currently there is a flatter logo in the image part. Change the image to what you want. A Splash screen would be shown when there is a delay before loading flutter screens. Since this screen is a flutter page the default splash image would be loaded.
Thanks I'm going to try this
I agree. This isn't create "splash screen", it just create a widget name splash screen.
I try to use rive but it stuck on image.
Liked !
Thanks 😊
good video, keep it up
Thanks, glad you enjoyed it 😁
Wow man! You explained very well!!! You gained another subscriber !!!
I appreciate it thank you
Hi, is there a reason to use stateful widget rather than stateless?
Umm. Stateful may not be needed unless your change state on the splashscreen
really helpful, thanks a lot :)
You're welcome! Glad it was helpful
thanks
You're welcome!
what do you think of `flutter_native_splash`?
It's not great a lot of issues with it.
Never used it so not sure. I feel it's better to do stuff yourself if you can rather than installing a lot of packages
ありがとう
You're welcome
There is an issue with android 12 it leaves a black or white area on the status bar. How can this be solved?
Hmm, it should be hiding the status bars, I don't know of that code being specific to any version.
@@Spellthorn i found out you need to add shortEdges to both styles.xml
I have a question please
This splash is open when i click back in app
I want to fix that
Hmm, so when you minimize app but then come back to it it shows the splashscreen?
@@Spellthorn yes , I want to see him just when I open the app not when I click the button back for closing the app
Hmm ill have to look into this for you as I'm not sure what would be causing that
@@MarkeTrade-MarketPlace This is because when you open the app everytime, it will rebuild again, in this video, he just do inside the flutter, so it will load the flutter (include this "Splash Screen")
i did this with lottie animations, and it brings up bunch of errors like "setstate() called after dispose(). any ideas for a fix? overall a great video!
Thanks. I haven't used lottie animations, so not sure would be causing it, sorry.
Buddy i am getting a default splash screen on testing my app
When you say default splash screen what do you mean? Are you calling the splash screen first then showing your main app screen after
Bro I mean at first I am getting a white screen with flutter logo then my splash screen and then home page i tried every thing but unable to remove the default splash screen 😐
There shouldn't be a default splashscreen. Have you added a splash screen another way?
Nope i just followed this
I understand what you mean. In your main.dart file add this before run-up
WidgetsFlutterBinding.ensureInitialized();
runApp(MyApp());
How to remove flutter default splash screen with flutter icon and white background
Someone else has mentioned this but I'm not sure whats causing that to display as there is no default splash screen, have you added anything to make a splash screen before that could be causing that
great video!, can you make a video teaching it in a simple and practical way, provider? saludos amigo!
This way is pretty simple already. What did you have in mind?
source code please