Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purple Splash App

A simple Flutter application that displays a purple-themed splash screen with a fade-in animation before transitioning to the main app page.

Features

  • Smooth fade-in animation using AnimationController and FadeTransition
  • Customizable splash duration
  • Minimal and elegant purple UI
  • Automatic navigation to the main page after the splash screen

Project Structure

main.dart

  • Entry point of the application
  • Launches the app with PurpleSplashScreen as the home screen

SplashScreen.dart

  • Implements the animated splash screen
  • Displays an icon and text that fade in smoothly
  • Navigates to a placeholder main screen (PlaceholderNextScreen) after 3 seconds

UI Overview

  • Background Color: Deep Purple (Colors.deepPurple)
  • Icon: Icons.sunny (white)
  • Text: "Helloooo" in bold white font
  • Next Screen: Displays “welcome” text with a purple AppBar

How It Works

  • When the app starts, the splash screen fades in an icon and text.
  • A Timer waits for 3 seconds.
  • After that, it automatically navigates to the main page using Navigator.pushReplacement().
  • Concepts Used
  • StatefulWidget for managing animation and navigation
  • AnimationController and Tween for fade-in effect
  • CurvedAnimation for smooth transitions
  • Timer from dart:async for controlling splash duration
  • Navigator for screen navigation

Requirements

  • Flutter SDK (>=3.0.0)
  • Dart (>=2.17.0)
  • Compatible with Android, iOS, and Web

How to Run

  • Clone or download the project.
  • Open it in VS Code or Android Studio.
  • Run the following command in the terminal: flutter run
  • The splash screen will appear, fade in, and navigate to the main screen.

Customization

  • You can modify the following values inside PurpleSplashScreen:
  • Splash duration → _splashDuration
  • Background color → _brandPurpleColor
  • Text content → _displayText
  • Icon and color → inside the Icon() widget

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages