FLUTTER ECOSYSTEM

nekocode/drag-down-to-pop-flutter

드래그 다운하여 뒤로 가기 기능을 지원하는 페이지 전환.

아래로 끌어다 뒤로 가기-flutter 프로젝트 이미지
Stars
18
Forks
5
최근 푸시(UTC)
2021. 10. 1.
프로젝트 상태
활성
nekocode GitHub avatar
GITHUB User

nekocode ↗

Hack the world!

AI & CryptoGuangdong, China공식 웹사이트 ↗
언어DartKotlinSwiftObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

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

README 펼치기 / 접기

drag_down_to_pop

build status pub package

A page transition which supports drag-down-to-pop gesture. The main source code is copied from the cupertino/route.dart in Flutter SDK with some modifications.

https://github.com/nekocode/drag-down-to-pop-flutter/blob/master/image/preview.gif?raw=true

Simplest Usage

Create a new PageRoute to use this page transiaction.

import 'package:drag_down_to_pop/drag_down_to_pop.dart';

class ImageViewerPageRoute extends MaterialPageRoute {
  ImageViewerPageRoute({@required WidgetBuilder builder})
      : super(builder: builder);

  @override
  Widget buildTransitions(BuildContext context, Animation<double> animation,
      Animation<double> secondaryAnimation, Widget child) {
    return const DragDownToPopPageTransitionsBuilder()
        .buildTransitions(this, context, animation, secondaryAnimation, child);
  }
}

// Push to a new page using ImageViewerPageRoute
Navigator.push(
  context,
  ImageViewerPageRoute(builder: (context) => ImageViewerPage()),
);