Flutter Custom Splash Screen Tutorial | Flutter Native Splash Screen Guide

Hussain Mustafa
24 Jan 202411:38

Summary

TLDRこのビデオでは、Flutterアプリケーション用のカスタムスプラッシュスクリーンを作成する方法を紹介しています。Flutter Native Splashパッケージを使用して、iOSとAndroid向けに必要な設定とファイルを生成します。手順には、pubspec.yamlファイル内の設定を定義し、背景色やロゴ画像をカスタマイズする方法が含まれます。また、Android 12以降のデバイス向けにスプラッシュスクリーンの設定を調整し、アプリケーションの初期化が完了するまでスプラッシュスクリーンを表示し続ける方法も学びます。最後に、5秒間の遅延を設けてアプリケーションを表示するデモンストレーションを行い、チュートリアルを締めくくります。

Takeaways

  • 📘 Flutterアプリケーションのカスタムスプラッシュスクリーンを作成する方法を学ぶことができます。
  • 📚 唯一必要なパッケージはflutter_native_splashで、iOSとAndroidの特定の設定とファイルを生成するために使用されます。
  • 📋 まず、pubspec.yamlファイル内にflutter_native_splashの設定を記述する必要があります。
  • 🖼️ スプラッシュスクリーンに表示したい画像をassets/images/splashにドラッグアンドドロップで追加します。
  • 🎨 スプラッシュスクリーンの背景色を変更するには、pubspec.yamlファイル内のcolorプロパティを設定します。
  • 📝 flutter_native_splashの設定を更新したら、ターミナルで'flutter pub run flutter_native_splash:create'コマンドを実行して設定を生成します。
  • 📱 Android 12以降では、スプラッシュスクリーンの扱いが変わっているため、プラグインではAndroid 12用の設定が別途必要です。
  • 🖌️ スプラッシュスクリーンに表示する画像を指定するには、pubspec.yamlファイル内のimageプロパティを設定します。
  • ⏱️ アプリケーションの初期化が完了するまでスプラッシュスクリーンを表示し続けるには、メイン関数を非同期にし、flutter_native_splashのpreserveメソッドを使用します。
  • 🔧 初期化が完了したら、flutter_native_splashのremoveメソッドを呼び出してスプラッシュスクリーンを削除します。
  • 📺 チュートリアルを通じて、Flutterで独自のスプラッシュスクリーンを作成し、アプリケーションの最初の印象を良くする方法を学ぶことができます。
  • 🌟 質問や懸念事項がある場合は、コメント欄に投稿してフィードバックを受け取ることができます。

Q & A

  • Flutterアプリケーションでカスタムスプラッシュスクリーンを作成するために必要な唯一のパッケージは何ですか?

    -Flutterアプリケーションでカスタムスプラッシュスクリーンを作成するために必要な唯一のパッケージは、flutter_native_splashパッケージです。

  • yamlファイル内でflutter_native_splashプラグインが使用する情報の定義方法を教えてください。

    -yamlファイル内でflutter_native_splashプラグインが使用する情報は、プラグインが生成する特定の設定とファイルに必要な情報として定義されます。これはiOSとAndroidそれぞれの要件に合わせて行われます。

  • スプラッシュスクリーンに表示するイメージファイルをどこに置きますか?

    -スプラッシュスクリーンに表示するイメージファイルを、プロジェクト内のassets/images/splashというディレクトリ構造に置きます。

  • スプラッシュスクリーンの背景色を変更するにはどうすればよいですか?

    -スプラッシュスクリーンの背景色を変更するには、pubspec.yamlファイル内のcolorプロパティに任意のカラーのhexコードを指定します。

  • Android 12でスプラッシュスクリーンの設定を変更する必要がある理由は何ですか?

    -Android 12ではスプラッシュスクリーンの扱いが変更されたため、プラグインはAndroid 12以降を実行するデバイス向けにスプラッシュスクリーンの特定のセクションを定義する必要があります。

  • スプラッシュスクリーンに表示するイメージを指定するにはどうすればよいですか?

    -スプラッシュスクリーンに表示するイメージを指定するには、pubspec.yamlファイル内のimageプロパティを、表示したいイメージファイルの相対パスに設定します。

  • アプリケーションの初期化が完了する前にスプラッシュスクリーンを維持するために使用されるメソッドは何ですか?

    -アプリケーションの初期化が完了する前にスプラッシュスクリーンを維持するために使用されるメソッドは、flutter_native_splashパッケージの`preserve`メソッドです。

  • メイン関数を非同期的に行う必要がある理由は何ですか?

    -メイン関数を非同期的に行うことで、アプリケーションの初期化ロジックで非同期処理(例えば、サービスロケータによるサービスの登録や環境変数の設定など)を行うことができます。

  • flutter_native_splash.createコマンドは何を実行しますか?

    -flutter_native_splash.createコマンドは、アプリケーションが展開されるすべてのプラットフォームに対して、スプラッシュスクリーンの特定の設定とファイルを生成します。

  • アプリケーションの初期化が完了したら、スプラッシュスクリーンを削除するために使用されるメソッドは何ですか?

    -アプリケーションの初期化が完了したら、スプラッシュスクリーンを削除するために使用されるメソッドは、flutter_native_splashパッケージの`remove`メソッドです。

  • このチュートリアルの最後に何を行なう必要がありますか?

    -このチュートリアルの最後に、コマンドを保存し、アプリケーションをデバッグして、スプラッシュスクリーンが意図した通りに表示されることを確認する必要があります。

  • チュートリアルが終了した後、フィードバックを提供する方法は何ですか?

    -チュートリアルが終了した後、フィードバックを提供するには、動画のコメント欄に質問、コメント、または懸念事項を記入するか、チャンネルを購読して新しい動画がリリースされるたびに通知を受け取ることができます。

Outlines

00:00

📱 Flutterアプリケーションのカスタムスプラッシュスクリーン作成

このビデオでは、Flutterアプリケーションのためのカスタムスプラッシュスクリーンの作成方法を学びます。チュートリアルの最後に、画面に表示されているようなカスタムスプラッシュスクリーンを作成し、アプリケーションに移行できるようになります。まず始めに必要なパッケージであるflutter_native_splashを紹介し、その使用方法と、yamlファイル内の設定を説明します。その後、アプリケーションのデフォルトスプラッシュスクリーンを確認し、プラグインを使用してスプラッシュスクリーンの色を変更し、設定を生成する方法を学びます。

05:02

🎨 Android 12向けスプラッシュスクリーンのカスタマイズ

Android 12以降でスプラッシュスクリーンの表示方法が変更されたため、プラグインはAndroid 12以降を実行するデバイス向けに特別なセクションを定義します。ここでは、Android 12セクションでスプラッシュスクリーンの色を設定し、同じコマンドを使用して再び設定を生成します。その後、アプリケーションを実行し、更新されたグリーン色の背景が表示されることを確認します。次に、デフォルトのアプリアイコンの代わりに画像を表示する方法を学びます。これには、pubspec.yamlファイル内のimageプロパティを設定し、保存して、flutter_native_splash createコマンドを再実行します。これにより、定義された画像と背景色を使用するスプラッシュスクリーンが更新されます。

10:02

🔧 アプリケーションの初期化とスプラッシュスクリーンの管理

アプリケーションが最初の画面が表示される前に初期化処理を行う必要がある場合、flutter_native_splashパッケージを使用してスプラッシュスクリーンを表示しながらその処理を行う方法を学びます。まず、main関数を非同期的にし、flutter widget bindingsを初期化します。次に、flutter_native_splashのpreserveメソッドを使用して、スプラッシュスクリーンを手動で削除するまで維持します。その後、5秒間待機するデモとしてfuture.delayedを使用し、その後にflutter_native_splash.removeメソッドを呼び出してスプラッシュスクリーンを削除します。これにより、アプリケーションがユーザーに表示される前にスプラッシュスクリーンが表示され、5秒後にアプリケーションが開始されます。

Mindmap

Keywords

💡Flutterアプリケーション

Flutterは、Googleが開発したオープンソースのモバイルアプリケーション開発キットです。このビデオでは、Flutterアプリケーションにカスタムスプラッシュスクリーンを作成する方法について説明しています。スプラッシュスクリーンは、アプリのロゴや情報を表示する最初の画面で、アプリのプロフェッショナルさやブランド性を強化するのに役立ちます。

💡スプラッシュスクリーン

スプラッシュスクリーンは、アプリケーションが起動し、メインコンテンツが表示されるまでの間、表示される一時的な画面です。このビデオでは、Flutter Native Splashパッケージを使用して、カスタムスプラッシュスクリーンを作成し、アプリの起動時に表示されるように設定する方法が説明されています。

💡Flutter Native Splashパッケージ

Flutter Native Splashは、Flutterアプリケーションのスプラッシュスクリーンを作成し、カスタマイズするためのパッケージです。ビデオでは、このパッケージを使用してiOSとAndroid向けのスプラッシュスクリーンの設定とファイルを生成する方法が説明されています。また、Android 12以降のデバイスに対するスプラッシュスクリーンの特別な設定も行えます。

💡YAMLファイル

YAMLは、データ構造の表現フォーマットの1つで、アプリケーションの設定を記述するために使用されます。ビデオでは、pubspec.yamlファイル内にFlutter Native Splashの設定を記述し、スプラッシュスクリーンの外観をカスタマイズする方法が説明されています。

💡アセット

アセットとは、アプリケーションが使用する画像、音声、その他のメディアファイルのことを指します。このビデオでは、スプラッシュスクリーンに表示されるロゴ画像をアセットとして指定し、pubspec.yamlファイルでアセットのパスを設定する方法が説明されています。

💡カラープロパティ

カラープロパティは、スプラッシュスクリーンの背景色を設定するために使用されます。ビデオでは、カラープロパティを使用して、スプラッシュスクリーンの背景色を緑色に変更する方法が説明されています。これにより、アプリのブランドカラーを反映させることができます。

💡ターミナル

ターミナルは、コンピュータのオペレーティングシステムと直接的に対話するためのコマンドラインインターフェースです。ビデオでは、ターミナルを使用してFlutter Native Splashのコマンドを実行し、スプラッシュスクリーンの設定を生成しています。

💡サービスロケータ

サービスロケータは、依存性注入を管理し、アプリケーションのオブジェクトを提供するデザインパターンです。ビデオでは、アプリケーションの初期化時にサービスロケータを使用してサービスを登録し、スプラッシュスクリーンが表示された後でメインアプリケーションに移行するように設定する方法が説明されています。

💡Dart言語

Dartは、Flutterアプリケーションの開発に使用されるプログラミング言語です。ビデオでは、Dart言語を使用してFlutterアプリケーションのメイン関数を記述し、非同期処理を実行してスプラッシュスクリーンの表示時間を制御する方法が説明されています。

💡初期化

初期化とは、アプリケーションが起動したときに必要な設定やデータの準備を行うプロセスです。ビデオでは、スプラッシュスクリーンが表示された後、アプリケーションの初期化処理を実行し、完了後にメインコンテンツに移行するように設定する方法が説明されています。

💡プラグイン

プラグインは、アプリケーションに追加の機能を提供するソフトウェアコンポーネントです。このビデオでは、Flutter Native Splashというプラグインを使用して、Flutterアプリケーションにカスタムスプラッシュスクリーンを実装する方法が説明されています。プラグインは、開発者がアプリの機能を拡張する際に役立ちます。

Highlights

The tutorial shows how to create custom splash screens for Flutter applications

The only required package is flutter_native_splash

The plugin generates specific settings and files for iOS and Android from a yaml file

Links to resources and source code are provided in the video description

Define the flutter_native_splash settings in the yaml file to configure the plugin

Ensure there are no indents for flutter_native_splash at the top level of the yaml file

Test the default splash screen before making changes

Create an 'assets' folder to store the splash screen image

Place the image file in the 'assets/images/splash' directory

Uncomment the 'assets' line in the yaml file and specify the image path

Use the 'color' property to change the background color of the splash screen

Run 'flutter_native_splash create' to generate the platform-specific settings

For Android 12, define separate settings under the 'android_12' section of the yaml file

Uncomment and set the 'image' property to use a custom image instead of the app icon

Run 'flutter_native_splash create' again to apply the image and color changes

Mark the main function as async and use FlutterNativeSplash.preserve() to show the splash screen during initialization

Perform any setup tasks before the app is ready, such as registering services with a service locator

Call FlutterNativeSplash.remove() to dismiss the splash screen and show the app

The tutorial demonstrates waiting for 5 seconds before removing the splash screen

Transcripts

play00:00

in today's video I'm going to be showing

play00:01

you guys how to create custom spash

play00:02

screens for flutter application by the

play00:04

end of this tutorial you'll be able to

play00:06

understand how to create a custom spash

play00:07

screen like the one being displayed on

play00:09

screen then actually move into your

play00:11

application so to get started the first

play00:12

thing that I'm going to be showing you

play00:13

guys are all of the packages that we're

play00:15

going to be using while developing this

play00:16

functionality the only package that we

play00:18

require is the flutter native Splash

play00:20

package and what this is going to allow

play00:21

us to do is Define some information

play00:23

within our yaml file which this plug-in

play00:25

is going to use in order to generate the

play00:27

specific setting and files that are

play00:29

required for IOS and Android

play00:30

respectively to show the specific splash

play00:33

screen so by using this plugin it's

play00:35

going to make our development life a

play00:36

whole lot easier by doing all of the

play00:38

heavy lifting for us so I'll copy this

play00:40

dependency I'll come back and I will

play00:42

come back to my pspec yaml file and

play00:44

actually paste it in here and as a side

play00:47

note I just want to quickly let you guys

play00:49

know the links to all of the resources

play00:50

that I use within this video as well as

play00:52

a link to the source code can be found

play00:53

in the description below so feel free to

play00:55

take a look at it if you're confused at

play00:57

any point so I'm going to let Flor pup

play01:00

gets do its magic and while that is

play01:02

happening I just want to let you guys

play01:04

know that now that we've actually

play01:05

imported the dependency what we have to

play01:08

do is actually Define a specific section

play01:09

within our yaml file in order to tell

play01:12

this dependency how it's going to

play01:13

function so to do that you can come back

play01:15

to the actual pub. Dev page for flutter

play01:17

native Splash and you come all the way

play01:19

down to step number one which says that

play01:21

we need to set the flutter native Splash

play01:24

settings within our yaml file so you can

play01:26

either create a new yaml file which you

play01:28

place this stuff in to or you can use

play01:30

the existing pspec ml file and place

play01:33

everything in there so what I'm going to

play01:35

be doing is doing the letter option so I

play01:37

will copy this uh by using this

play01:40

clipboard icon here and copy all of the

play01:41

code I am going to come back come back

play01:43

to ppsp daml I'm going to go to the

play01:46

bottom of this and I'm going to be

play01:48

pasting this in here once that is done

play01:50

the next thing that I am going to be now

play01:51

doing is actually going to the very top

play01:54

and then making sure that there is no

play01:56

intent for the flutter native Splash so

play01:58

as you can see there are no indents for

play02:00

flutter native Splash it's at the start

play02:02

of the line so just do that command save

play02:04

and that's pretty much all we had to do

play02:05

so now that this is done what I'm going

play02:07

to be doing is giving a quick test run

play02:08

to my application to show you guys what

play02:10

the current default functionality is

play02:12

welcome back everybody so now that the

play02:14

actual application is running on my

play02:15

Simulator the next thing that I'm going

play02:17

to be doing is actually stopping running

play02:19

it and I will start running it again to

play02:20

actually show you what the default

play02:22

splash screen looks like so currently

play02:25

when we have not changed anything this

play02:26

is what the default splash screen looks

play02:28

like it's just a white background with

play02:29

the flutter icon within it so now we're

play02:31

going to be changing it so to change it

play02:33

firstly we're going to be taking a look

play02:35

at how we are going to be doing it for

play02:37

all platforms and then what settings we

play02:38

need to tweak for Android 12

play02:40

specifically so before we can get

play02:42

started the first thing that I'll do is

play02:43

I will create a new folder and I'm going

play02:46

to call this assets and this is where

play02:48

I'm going to be placing the image file

play02:49

for actually the image that I want to

play02:51

show on the splash screen so once this

play02:53

is done I'm going to create a new folder

play02:55

under here which I'll call images and

play02:56

after that I'm going to create a new

play02:58

folder under that called splash and then

play03:00

I am going to be basically opening this

play03:02

in finder or if you're using File

play03:04

Explorer on Windows and from here what

play03:06

I'm going to do is basically drag and

play03:08

drop the actual file in which I require

play03:10

so I'm going to quickly copy that file

play03:12

in just give me a second and this is the

play03:15

file that I'm using this is the logo for

play03:17

the cash app app so I'm just using that

play03:19

I'll copy and paste that in here so now

play03:22

we have under our assets images Splash

play03:24

folder a logo. pnt file that we have to

play03:27

display or we're going to be displaying

play03:28

on our splash screen so once this is

play03:30

done the next thing that we're going to

play03:31

be doing is coming to ppsp spec. yaml

play03:34

and I am firstly going to go to the

play03:36

section where we have flutter and then

play03:38

underneath the flutter there's going to

play03:39

be a specific section that says assets

play03:42

so let me find that there it is I'm

play03:43

going to uncomment the assets line and

play03:45

then the next line after that making

play03:47

sure that the indentation levels are

play03:48

correct and then here I'm going to say

play03:50

that flutter you need to make sure that

play03:52

the assets that are under the images

play03:54

folder are made available to us so once

play03:57

this is done that's pretty much all we

play03:58

have to do so now anything anything

play03:59

that's under asset images is going to be

play04:01

made available to my application to use

play04:05

once this is done now we can come to the

play04:06

specifics of actually configuring our

play04:08

flutter splash screen so the first thing

play04:10

that we're going to be doing is actually

play04:12

taking a look at how to change the color

play04:14

so to change the color of our splash

play04:16

screen we can use the color property

play04:17

that's defined here and the color

play04:19

property that I am going to be using is

play04:21

going to be for a green color so I'll

play04:24

copy that hex code and actually paste it

play04:25

in so you can paste in any hex code here

play04:28

for any color the one that I'm pasting

play04:30

here is going to be for a greenish color

play04:33

so once we've done this what we've

play04:35

basically done is now updated our actual

play04:37

configuration Flor splash screen so what

play04:40

now we need to do is actually take these

play04:43

changes and then generate the specific

play04:45

setting so for all of the different

play04:46

platforms that our actual app is going

play04:49

to be deployed to so to do that what

play04:51

we're going to be doing is actually

play04:53

using the following command which I'm

play04:54

going to be showing you it's called here

play04:56

start run flutter native Splash create

play04:58

so I'll copy this this command come back

play05:01

and then actually come to the terminal

play05:03

and paste it in and if I press enter

play05:05

you're going to see that it starts

play05:06

building the package and it tells me

play05:08

here you go it's gone ahead and it's

play05:10

created all of these different settings

play05:12

and files for all of these different

play05:13

platforms and now our splash screen

play05:15

should be updated so if I start running

play05:17

my application and I start running it

play05:21

again and as you can see nothing changed

play05:25

so let's actually discuss why this

play05:27

happened and I specifically did to

play05:29

actually show you guys what the issue

play05:31

here is so if I was testing this on an

play05:33

iOS simulator then this should have

play05:35

worked but specifically after Android 12

play05:37

some things changed in the way that

play05:39

Android 12 handles the splash screen so

play05:42

due to that now this plug-in actually

play05:44

defines a separate section for any

play05:46

devices that are going to have Android

play05:48

12 or above installed on them and the

play05:50

application is going to be running on

play05:52

them so for that we have this Android 12

play05:54

specific section and here is where we

play05:56

have to define specific settings for the

play05:58

splash screen screen when it comes to

play06:00

Android 12 or later so here I'm going to

play06:03

come uncomment the color and since I

play06:05

want the color to be same for all of the

play06:06

flash screens regardless of whether it's

play06:08

running on iOS web or the actual Android

play06:11

12 or above then what I'm going to be

play06:13

doing is copying this color and coming

play06:15

back and then actually pasting it here

play06:18

like so under the Android 12 section to

play06:21

command save then I'm what I'm going to

play06:23

be doing is running the same command

play06:24

again so it's going to go ahead and do

play06:27

everything for us once again and then

play06:28

I'll start running my application again

play06:31

and hopefully this time when the

play06:32

application spins up the actual splash

play06:35

screen that we're going to be seeing is

play06:36

going to be a background which is going

play06:38

to be green in color like so so once

play06:41

this is done the next thing that now

play06:42

we're going to be taking a look at is

play06:44

how can we show the image instead of

play06:46

this default app icon that we're seeing

play06:48

well to do this what we're going to be

play06:49

doing is coming back to the pope.l file

play06:52

and specifically there are a lot of

play06:54

settings that you can change to achieve

play06:56

a lot of different variations of your

play06:58

splash screen but the one we are

play06:59

concerned with is going to be the actual

play07:02

property that says image and this is

play07:05

going to be this property right here so

play07:07

I'm going to uncomment this line and

play07:08

then I'm going to be setting this equal

play07:10

to the actual relative path to the asset

play07:15

logo.png so that's going to be under

play07:17

assets images spash and then

play07:21

logo.png like do and do command save and

play07:24

then since for Android 12 the settings

play07:27

are different then I'm going to copy the

play07:29

same

play07:29

and I'm going to come down to the

play07:32

Android 12 section and here the actual

play07:35

property that we're going to be updating

play07:36

is going to be the image property so

play07:38

I'll uncommon this and paste this here

play07:41

like so and do command save Android 12

play07:43

also has a bunch of other settings that

play07:45

you can s such as the icons background

play07:47

color The Branding so you can take a

play07:49

look at all of these and try to

play07:51

understand there are a lot of parameters

play07:52

that you can tweak to achieve different

play07:54

functionality but this is what we are

play07:56

going to be doing for now so now that

play07:58

I've done this the then we're going to

play07:59

do the same thing which is to save our

play08:02

pope.l to run flutter native slon create

play08:07

it's going to go ahead do everything for

play08:08

us you're going to see that now the

play08:10

actual outputs are a bit different it's

play08:12

also giving us output for creating

play08:14

images and once this is done what I'm

play08:16

going to be doing now is actually start

play08:18

debugging my application so now what

play08:21

you're going to see that our splash

play08:22

screen is going to be updated and we're

play08:24

going to see a different type of splash

play08:25

screen that's going to use our defined

play08:27

image and our defined background color

play08:29

as you can see so now the last thing

play08:32

that I want to discuss is let's just say

play08:34

that for some reason your application

play08:35

has to do some initialization before the

play08:38

first screen is presented to the end

play08:41

user maybe you want to update your

play08:43

service locators by using gex and

play08:44

register some services or something else

play08:47

so how can you do that while showing the

play08:49

splash screen and once everything like

play08:50

that is done then move on to your actual

play08:52

application well to do this it's going

play08:54

to be pretty simple if you're using this

play08:56

specific package and the way we're going

play08:58

to be doing this is first I'm going to

play08:59

be coming to my main doell I'm going to

play09:02

be marking my main function as

play09:04

asynchronous and once this is done then

play09:06

what I'm going to be doing is actually

play09:08

making sure that the flutter widget

play09:09

bindings are initialized and that I have

play09:11

access to them so I'm going to be doing

play09:13

that by using the following code where

play09:15

I'm doing widget flutter bindings do

play09:17

insure initialized and then once it

play09:19

returns widget bindings to me I'm saving

play09:21

that within this actual variable once

play09:24

this is done then I'm going to use the

play09:26

actual flutter n Splash plugin and I'm

play09:28

going to do preserve and what preserve

play09:30

is going to do is that it's going to

play09:32

allow us to manually determine when we

play09:34

want to basically get rid of our splash

play09:37

screen so it's going to preserve the

play09:38

splash screen until we actually remove

play09:40

it ourselves so it requires widget

play09:43

bindings so we'll give it the widget

play09:44

bindings and there we go so now that

play09:46

this is done the next thing that I'm

play09:47

going to be doing is doing any kind of

play09:49

logic that I want to do in terms of

play09:52

either using a service locator dising

play09:54

services maybe setting up the

play09:55

application importing environment

play09:57

variables whatever I have to do to set

play09:59

my application up before it's ready for

play10:01

the user so to demonstrate this what I'm

play10:03

going to be doing is actually just doing

play10:05

an evade call here which I where I'm

play10:07

going to be doing future. delayed and

play10:09

here I'm going to say that we're going

play10:10

to wait for a duration and that is going

play10:13

to be in seconds 5 seconds so I'm going

play10:15

to wait for 5 seconds um and then I will

play10:18

proceed to the next line of code and

play10:20

here once we want to remove our splash

play10:22

screen then what I'm going to be doing

play10:24

is flutter native spash Dot and here you

play10:28

can do remove

play10:29

move and this is how the logic is going

play10:31

to work so basically when our

play10:33

application spins up we are going to

play10:35

show the splash screen then we are not

play10:37

going to be removing it we're going to

play10:38

preserve it till we decide when we want

play10:40

to remove it we'll do any kind of actual

play10:42

setup logic that we need to do in my

play10:44

case we're just going to wait for 5

play10:45

seconds and then we'll call for other

play10:47

native Splash to remove that splash

play10:48

screen and then start running our

play10:50

application to actually show it to the

play10:52

user and then let our user do whatever

play10:54

he wants to do so with this done to

play10:55

command save and I will start debugging

play10:58

my application and hopefully now you're

play10:59

going to see that when the actual splash

play11:01

screen is going to be launched it's

play11:03

going to stay for much longer than what

play11:05

we were seeing initially so as you can

play11:07

see the splash screen is being shown 1 2

play11:09

3 4 5 and after around 5 seconds it's

play11:13

going to show the application to us so

play11:15

that's pretty much it for today's

play11:17

tutorial I hope that you enjoyed this

play11:18

tutorial and learned how to create your

play11:20

own custom Splash screens using flutter

play11:22

as always leave a like on the video and

play11:24

subscribe to my channel so that you get

play11:25

notified every time I release a new

play11:26

video and if you have any question

play11:28

comments or concerns feel free to leave

play11:30

them down in the comments below and I'll

play11:31

try my best to answer them for you so

play11:33

stay happy stay healthy keep learning

play11:34

keep growing and I'll see you guys in

play11:35

the next video bye-bye

Rate This

5.0 / 5 (0 votes)

Etiquetas Relacionadas
Flutterスプラッシュスクリーンチュートリアルカスタマイズモバイルアプリプログラミング初心者デザインコード開発
¿Necesitas un resumen en inglés?