VOOZH about

URL: https://www.geeksforgeeks.org/flutter/flutter-animated-splash-screen/

⇱ Flutter - Animated Splash Screen - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Flutter - Animated Splash Screen

Last Updated : 5 Mar, 2025

The Animated Splash screen is used for a startup screen in a Flutter application. More or less all applications use them generally to show the logo of the institution and its creators awareness.  This although holds no functionality but it can be great to increase product awareness and promotion.

Let's look deep into the implementation of the Animated Splash screen with the help of a simple application.

Steps to Implement Animated Splash Screen in Flutter

Step 1 : Adding the Dependency

The flutter_animated_splash dependency can be added to the pubspec.yaml file as shown below:

dependencies:
flutter_animated_splash: ^1.3.0

Now run the below command in terminal.

flutter pub get

Step 2 : Importing the Dependency

To import the flutter_animated_splash dependency to the main.dart file, use the following line of code:

import 'package:flutter_animated_splash/flutter_animated_splash.dart';


Step 3 : Designing the App Structure

The StatelessWidget can be used to give a simple structure to the application that contains an appbar and a body for the content as shown below:


Step 4 : Creating the Homepage

Make use of the StatefulWidget that extends to an appbar and a body.


Complete Source Code (main.dart)


Output:


Comment
Article Tags:

Explore