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

splash_view 표지
패키지 상세v2.0.1

splash_view

스플래시 뷰는 애플리케이션이 시작될 때 사용자가 처음으로 보는 화면입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
908
좋아요
79
Pub 점수
150

패키지 설치

flutter pub add splash_view

패키지 개요

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

SplashView는 앱이 시작될 때 나타나는 사용자 정의 가능한 스플래시 화면을 만들기 위해 설계된 Flutter 패키지입니다. 로고, 애니메이션 또는 브랜딩과 같은 소개 콘텐츠를 메인 애플리케이션 인터페이스로 전환하기 전에 간단하게 표시할 수 있습니다. 이 패키지는 Android, iOS, 웹, macOS, Windows, Linux 등 여러 플랫폼을 지원하여 다양한 기기에서 일관된 사용자 경험을 보장합니다. pub add 명령을 통해 최소한의 설정으로 개발자는 프로페셔널한 외관의 스플래시 화면을 쉽게 앱에 통합할 수 있습니다.

사용 사례

  • 앱 온보딩 화면
  • 브랜딩 소개
  • 초기 로딩 상태
  • 자산 미리 로드
  • 메인 앱으로 전환
  • 크로스 플랫폼 스플래시 화면

주요 기능

  • 크로스 플랫폼 지원
  • pub와의 간편한 통합
  • 사용자 정의 가능한 외관
  • 자산 사전 로딩 지원
  • 사용자 지정 기간
  • 간단한 API

적합한 대상

  • 새로운 Flutter 프로젝트
  • 브랜드 일관성 필요 앱
  • 빠른 스플래시 구현을 원하는 개발자
  • 다중 플랫폼 애플리케이션
  • 초기 데이터 로딩이 있는 앱
  • 미니멀리스트 UI 디자인

고려 사항

  • 스플래시 지속 시간이 너무 길지 않도록 하세요
  • 핵심 앱 로직 차단을 피하십시오
  • 모든 대상 플랫폼에서 테스트
  • 애니메이션을 지나치게 사용하지 마십시오
  • 접근성 요구사항을 고려하십시오
  • 자산 로드 완료 확인

원본 README

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

splash-view

chouhan-rahul buymeacoffee ko-fi paypal

Become a sponsor

sponsor

Splash View

A splash view is a short introduction to an application shown when it is launched. In the splash view, basic introductory information, such as the company logo, content, etc. is displayed at the moment the application load.

google apple

Here is an example of how to implement SplashView in a Flutter application. Recommended: Use splash view inside MaterialApp().

void main() {
  runApp(
    MaterialApp(
      home: SplashView(
        logo: FlutterLogo(),
        loading: CircularProgressIndicator(),
        done: Done(HomePage()),
      ),
    ),
  );
}

Properties of SplashView

Property Type Description
logo: Widget Logo of the splash view.
title: Widget Title of the splash view.
subtitle: Widget Subtitle of the splash view.
loadingIndicator: Widget Loading indicator of the splash view.
done: Done Redirect to the next page.
duration: Duration Duration of redirecting to the next page.
backgroundColor: Color Background color of the splash view.
backgroundImageDecoration: BackgroundImageDecoration Background image of the splash view.
gradient: Gradient Gradient background of the splash view.
bottomLoading: bool Show loading indicator on the bottom of the splash view.
showStatusBar: bool Show and hide app status/navigation bar on the splash view.

Redirecting to the next page

SplashView has a property called done, here you can use Done() widget to redirect to the next page.

SplashView(
  done: Done(HomePage()),
)

Redirecting to the next page with an animation effect

Done has two more properties which are used to redirect to the next page with an animation effect. animationDuration is used to set the duration of the animation and curve is used to set the animation curve.

SplashView(
  done: Done(
    HomePage(),
    animationDuration: Duration(seconds: 2),
    curve: Curves.easeInOut,
  ),
)

Properties of Done

Property Type Description
animationDuration: Duration The duration the transition going forwards.
curve: Curve A collection of common animation easing curves.

Background

There are three ways to set the background of the splash view.

Background Color

Background color can be set by backgroundColor property.

microsoft

SplashView(
  backgroundColor: Colors.red,
)

Gradient Color

Gradient color can be set by gradient property.

amazon

SplashView(
  gradient: LinearGradient(
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
    colors: <Color>[Colors.green, Colors.blue]),
  ),
)

Background Image

Background image can be set by backgroundImageDecoration property.

gdev

SplashView(
  backgroundImageDecoration: BackgroundImageDecoration(
    image: AssetImage('images/larry-page.jpg'),
  ),
)

Properties of BackgroundImageDecoration

Property Type Description
image: ImageProvider Typically this will be an AssetImage or a NetworkImage
fit: BoxFit Fill the target box by distorting the source's aspect ratio.
colorFilter: ColorFilter A color filter is a function that takes two colors, and outputs one color.
opacity: double Used to set the filterQuality of the image.

Change the position of loading indicator

By default bottomLoading is false. You can change the position of loading indicator to the bottom by setting bottomLoading to true.

SplashView(
  bottomLoading: true,
)

Hide/Show status bar and navigation bar

By default showStatusBar is false. You can show status bar and navigation bar by setting showStatusBar to true.

SplashView(
  showStatusBar: true,
)

Report bugs or issues

You are welcome to open a ticket on github if any problems arise. New ideas are always welcome.

Copyright and License

Copyright © 2022 Rahul Chouhan. Licensed under the MIT LICENSE.

카테고리

소스 저장소

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

아직 데이터가 없습니다.