패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.0.2

custom_splash

로고 아이콘 변경, 로고 애니메이션, 스플래시 화면 배경 색상과 같은 스플래시 화면을 사용자 정의할 수 있는 플러터 패키지입니다.

30일 다운로드
81
좋아요
86
Pub 점수
30

패키지 설치

flutter pub add custom_splash

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

개발자가 로고 아이콘 변경, 로고 애니메이션 추가, 배경 색상 설정 등 다양한 옵션을 통해 매우 사용자 정의 가능한 스플래시 화면을 만들 수 있도록 해주는 플러터 패키지입니다. 복잡한 커스텀 코드 없이 시각적으로 매력적인 온보딩 화면을 쉽게 구현할 수 있습니다. 사용이 간편하며 플러터 애플리케이션에 원활하게 통합되도록 설계되었습니다. 동적 스타일링과 부드러운 전환을 지원하여 앱 실행 시 사용자 경험을 향상시킵니다.

사용 사례

  • 앱 온보딩 화면
  • 사용자 지정 로딩 경험
  • 브랜딩 중심의 스플래시 화면
  • 애니메이션 로고 표시
  • 간단하지만 우아한 시작 시각 효과

주요 기능

  • 사용자 정의 로고 아이콘 교체
  • 로고 애니메이션 지원
  • 배경 색상 사용자 정의
  • Flutter와의 간편한 통합
  • 가볍고 빠른 렌더링

적합한 대상

  • 초보자 플러터 개발자
  • 브랜드화된 온보딩이 필요한 앱
  • 애니메이션된 UI 요소를 가진 프로젝트
  • 미니멀리즘 디자인 선호
  • 빠른 스플래시 화면 구현

고려 사항

  • 제한된 플랫폼 고유의 사용자 지정
  • 시작 화면 지속 시간 제어에 내장된 지원 없음
  • 포스트 스플래시 탐색에 대한 수동 처리가 필요합니다
  • 복잡한 애니메이션에 최적화되지 않음
  • 고급 효과를 위해 외부 종속성에 의존합니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Custom Splash Screen

A Flutter package to custom splash screen: change logo icon, logo animation, and splash screen background color. (Custom from animated splash screen)

ProgressDialog Demo
Using the package

Get the library

Things to do
  1. Get a logo for your app
  2. Prepare what to execute while the splash screen is shown (initializing your db, shared preferences, firebase...etc)
  3. Screen to be shown after splash screen and background process
  4. Duration of Splash Screen

Import the package

import 'package:custom_splash/custom_splash.dart';

Show splash screen for some duration

  type: CustomSplashType.StaticDuration

Inside your main function, use home as SplashScreen(_), the parameters are as follows:

imagePath: Path to your app-logo/image

backGroundColor(not require - default: white): background's color (Colors.deepOrange or Color(0xfffc6042))

animationEffect(not require - default: 'fade-in'): change animation of logo. There are: 'fade-in', 'zoom-in', 'zoom-out', 'top-down'.

ProgressDialog Demo

logoSize(not require - default: 250): custom size of logo

home: Screen to be shown after splash

duration: duration of splash screen in milliseconds

type

runApp(MaterialApp(
    home: CustomSplash(
        imagePath: 'assets/flutter_icon.png',
        backGroundColor: Colors.deepOrange,
        animationEffect: 'zoom-in',
        logoSize: 200,
        home: MyApp(),
        customFunction: duringSplash,
        duration: 2500,
        type: CustomSplashType.StaticDuration,
        outputAndHome: op,
    ),
));

Execute a function in background and based on the value from that function navigate to different screen

  type: CustomSplashType.BackgroundProcess

Create an object of Function that gets executed while splash screen is shown

Function duringSplash = () {
  //Write your code here
  ...
  return value;
};

Create routes according to your function return value

  //setup the return value correctly for proper navigation
  Map<dynamic, Widget> returnValueAndHomeScreen = {1: Home(), 2: HomeSt()};

Inside your main function, use home as SplashScreen(_), the parameters are as follows:

imagePath: Path to your app-logo/image home: Screen to be shown after splash customFunction: the function you have written above duration: duration of splash screen in milliseconds type output value of customFunction and home screen to navigate(Map function)

runApp(MaterialApp(
    home: CustomSplash(
        imagePath: 'assets/flutter_icon.png',
        backGroundColor: Colors.deepOrange,
        animationEffect: 'zoom-in',
        logoSize: 200,
        home: MyApp(),
        customFunction: duringSplash,
        duration: 2500,
        type: CustomSplashType.BackgroundProcess,
        outputAndHome: op,
    ),
));

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.