FLUTTER ECOSYSTEM

delwar36/splash_route

단순히 멋진 애니메이션을 가진 경로입니다. 다른 페이지로 이동할 때 스플래시 애니메이션을 보여주기 위해 사용됩니다.

스플래시 루트 프로젝트 이미지
Stars
1
Forks
0
최근 푸시(UTC)
2022. 2. 16.
프로젝트 상태
활성
Md Delwar Hossain GitHub avatar
GITHUB User

Md Delwar Hossain ↗

Entrepreneur | Building Autonomous Workforce

InnovexITBangladesh공식 웹사이트 ↗
언어C++DartCMakeHTMLCSwiftKotlinObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}
  • flutter_lints개발 의존성^1.0.0

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

Splash Route

It is just a route with fancy animation. It is used to show the splash animation while navigating to another page.



Demo

https://raw.githubusercontent.com/delwar36/splash_route/master/example/splashRoute.gif

Installation

Add splash_route: ^0.0.2 to your pubspec.yaml dependecies. And import it:

import 'package:splash_route/splash_route.dart';

How to use

Simply add a SplashRoute as route inside a Navigator with required params.

  void _goToNextPage(
    BuildContext context,
    FractionalOffset position,
    Color splashColor,
    Duration duration,
  ) {
    Navigator.of(context).push(
      SplashRoute(
        targetPage: TargetPage(
          appBarColor: splashColor,
        ),
        splashColor: splashColor,
        startFractionalOffset: position,
        transitionDuration: duration,
      ),
    );
  }