![]() |
VOOZH | about |
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.
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 getTo 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';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:
Make use of the StatefulWidget that extends to an appbar and a body.
Output: