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

animated_page_reveal 표지
패키지 상세v1.0.0

animated_page_reveal

애니메이션 페이지 리벨 웨젯을 구현하기 위한 플러터 패키지입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
88
좋아요
47
Pub 점수
150

패키지 설치

flutter pub add animated_page_reveal

패키지 개요

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

플러터 패키지로, 온보딩 흐름이나 캐러셀에서 페이지 간의 부드럽고 매력적인 전환을 만들기에 적합한 애니메이션 페이지 리벨 웨젯을 제공합니다. 사용자 정의 가능한 애니메이션으로 시각적으로 매력적인 진입 효과를 가능하게 하며, 동적 리벨을 통해 사용자 경험을 향상시킵니다. 안드로이드, iOS, 웹, macOS, Windows, 리눅스 등 여러 플랫폼을 지원하여 기기 간 일관된 동작을 보장합니다. 단순성과 통합성을 고려해 설계되어 기존 플러터 프로젝트에 자연스럽게 통합됩니다.

사용 사례

  • 온보딩 화면
  • 인터랙티브 캐러셀
  • 스플래시 화면 전환
  • 사용자 온보딩 흐름
  • 애니메이션 콘텐츠 슬라이더

주요 기능

  • 부드러운 페이지 노출 애니메이션
  • 사용자 정의 가능한 전환 효과
  • 크로스 플랫폼 지원
  • Flutter와의 간편한 통합
  • 사용자 정의 가능한 애니메이션 지속 시간 및 곡선
  • 재사용 가능한 위젯 컴포넌트

적합한 대상

  • 앱 온보딩 디자이너
  • UI/UX 개발자
  • 인터랙티브 앱 제작자
  • Flutter 초보자
  • 애니메이션 중심 프로젝트

고려 사항

  • 저사양 기기에서 성능에 영향을 줄 수 있습니다
  • 애니메이션 곡선의 정밀 조정이 필요합니다
  • 페이지 기반의 노출 패턴으로 제한
  • 복잡한 탐색에 적합하지 않습니다
  • 페이지당 최소한의 콘텐츠와 함께 사용하는 것이 가장 좋습니다
  • Flutter의 렌더링 파이프라인에 의존합니다

원본 README

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

Animated Page Reveal

Animated Page Reveal package lets you add an animated page reveal to your Flutter app that dispaly a set of pages with your desired content.

Features

The AnimatedPageReveal widget is built to be a tool you can use to showcase a content in your Flutter app (ex: onBoarding screen). By default the position of content is set to Center and by using the ViewPageModel, you can add as many pages as you like with your desired content.

  • Animated Pages

By making a drag on the screen (leftToRight or rightToLeft) one page fades out and another comes in with a cool animation. The bottom icons indicate the position of the active page as well as both the seen & unseen pages remaining for the user to interact with.

The package will handle the animation by itself.

animatedPageReveal


Getting started

  1. Add the latest version of package to your pubspec.yaml (and run dart pub get):
dependencies:
  animated_page_reveal: ^1.0.0
  1. Import the package and use it in your Flutter App.
import 'package:animated_page_reveal/animated_page_reveal.dart';

Usage

There are a number of properties that you can modify:

  • title (Title text of the page)
  • description (Body text of the page)
  • color (Color of the page)
  • imageAssetPath (Image of the page)
  • iconAssetPath (Page bottom icon indicator)
  • titleStyle (Title text Style)
  • descriptionStyle (Body text style)

Example Usage (Complete with all params):

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return SizedBox(
      width: MediaQuery.of(context).size.width,
      height: MediaQuery.of(context).size.height,
      child: AnimatedPageReveal(children: [
        PageViewModel(
          title: 'Choose your place',
          description:
              'Pick the right destination according to the season because it is a key factor for a successful trip',
          color: const Color(0xff195932),
          imageAssetPath: 'assets/images/trip.png',
          iconAssetPath: 'assets/images/placeicon.png',
          titleStyle: const TextStyle(
            fontFamily: 'Montserrat',
            fontSize: 18,
            fontWeight: FontWeight.bold,
            color: Colors.white,
          ),
          descriptionStyle: const TextStyle(
            fontFamily: 'Montserrat',
            fontSize: 14,
            fontWeight: FontWeight.normal,
            color: Colors.white,
          ),
        ),
        PageViewModel(
          title: 'Book your flight',
          description:
              'Found a flight that matches your destination and schedule? \nBook it just a few taps',
          color: const Color(0xff19594E),
          imageAssetPath: 'assets/images/flight.png',
          iconAssetPath: 'assets/images/planicon.png',
          titleStyle: const TextStyle(
            fontFamily: 'Montserrat',
            fontSize: 18,
            fontWeight: FontWeight.bold,
            color: Colors.white,
          ),
          descriptionStyle: const TextStyle(
            fontFamily: 'Montserrat',
            fontSize: 14,
            fontWeight: FontWeight.normal,
            color: Colors.white,
          ),
        ),
        PageViewModel(
          title: 'Explore the world',
          description:
              'Easily discover new places and share them with your friends. \nMaybe you will plan together your next trip?',
          color: const Color(0xff193A59),
          imageAssetPath: 'assets/images/explore.png',
          iconAssetPath: 'assets/images/searchicon.png',
          titleStyle: const TextStyle(
            fontFamily: 'Montserrat',
            fontSize: 18,
            fontWeight: FontWeight.bold,
            color: Colors.white,
          ),
          descriptionStyle: const TextStyle(
            fontFamily: 'Montserrat',
            fontSize: 14,
            fontWeight: FontWeight.normal,
            color: Colors.white,
          ),
        ),
      ]),
    );
  }
}

 Here's what it looks like:

https://user-images.githubusercontent.com/68671238/135723767-a464d5e3-2a88-4e10-b64d-af652be273ff.mp4

Next Goals

We are working on some improvements including:

  • [ ] Change color of the bottom circle icon indicator.
  • [ ] Add a button to exit to another screen.

Issues & Feedback

Please file an issue! to send feedback or report a bug. Thank you!

카테고리

소스 저장소

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

아직 데이터가 없습니다.