FLUTTER ECOSYSTEM

delwar36/splash_route

É apenas uma rota com animação elegante. É usada para mostrar a animação de splash ao navegar para outra página.

Capa do projeto rota de splash
Stars
1
Forks
0
Último push (UTC)
16 de fev. de 2022
Status do projeto
Ativo
Md Delwar Hossain GitHub avatar
GITHUB User

Md Delwar Hossain ↗

Entrepreneur | Building Autonomous Workforce

InnovexITBangladeshSite oficial ↗
LinguagensC++DartCMakeHTMLCSwiftKotlinObjective-C

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 3 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}
  • flutter_lintsDesenvolvimento^1.0.0

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher 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,
      ),
    );
  }