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

intro_views_flutter 표지
패키지 상세v3.2.0

intro_views_flutter

간단한 매터리얼 디자인 앱 소개 화면과 멋진 애니메이션을 제공하는 플러터 패키지입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
637
좋아요
550
Pub 점수
150

패키지 설치

flutter pub add intro_views_flutter

패키지 개요

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

IntroViewsFlutter는 매트리얼 디자인 미학을 갖춘 세련되고 애니메이션 효과가 있는 온보딩 화면을 만들기 위해 설계된 Flutter 패키지입니다. 앱용 소개 슬라이드의 구현을 간소화하며, 각 슬라이드에 맞춤형 콘텐츠와 부드러운 전환 효과를 제공합니다. 새로운 사용자가 앱 기능이나 튜토리얼을 안내받는 데 이상적이며, Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼을 지원합니다. 패키지에는 내장된 애니메이션과 Flutter 프로젝트에 쉽게 통합할 수 있는 위젯이 포함되어 있습니다.

사용 사례

  • 모바일 앱을 위한 온보딩 화면
  • 사용자 튜토리얼 인터페이스
  • 앱 기능 안내
  • 스플래시 화면 대안
  • 다중 슬라이드 환영 경험

주요 기능

  • 매터리얼 디자인 준수
  • 내장 슬라이드 애니메이션
  • 사용자 정의 가능한 슬라이드 콘텐츠
  • 여러 플랫폼을 지원합니다
  • 빠른 설정을 위한 간단한 API
  • 반응형 레이아웃 처리

적합한 대상

  • 새로운 앱 개발자
  • 제품 온보딩 흐름
  • 미니멀리스트 UI 디자인
  • 크로스 플랫폼 애플리케이션
  • 빠른 프로토타이핑

고려 사항

  • 기본 스타일링을 넘어서는 사용자 정의가 제한적
  • 복잡한 애니메이션을 위해 추가적인 노력이 필요할 수 있습니다
  • Flutter의 애니메이션 프레임워크에 의존합니다
  • 높은 상호작용을 필요로 하는 온보딩에는 적합하지 않음
  • 간단하고 선형적인 인트로 시퀀스에 가장 적합

원본 README

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



IntroViews is inspired by Paper Onboarding and developed with love from scratch. Checkout our fully responsive live example app.

Table of contents

Features

  • Easy addition of pages.

  • Circular page reveal.

  • Cool Animations.

  • Animation control, if the user stops sliding in the midway.

  • Skip button, for skipping the app intro.

  • Custom font selection.

  • Material Design.

Getting Started

You should ensure that you add the intro_views_flutter as a dependency in your flutter project.

dependencies:
  intro_views_flutter: '^3.2.0'

You can also reference the git repository directly if you want:

dependencies:
  intro_views_flutter:
    git: git://github.com/aagarwal1012/IntroViews-Flutter

You should then run flutter packages get in your terminal so as to get the package.

Usage

  • IntroViewsFlutter widget require a list of PageViewModel , and some other parameters. Refer the code below to create a PageViewModel page.

    import 'package:intro_views_flutter/intro_views_flutter.dart';
    
    ...
    
    final page = PageViewModel(
        pageColor: const Color(0xFF607D8B),
          iconImageAssetPath: 'assets/taxi-driver.png',
          body: Text(
            'Easy  cab  booking  at  your  doorstep  with  cashless  payment  system',
          ),
          title: Text('Cabs'),
          mainImage: Image.asset(
            'assets/taxi.png',
            height: 285.0,
            width: 285.0,
            alignment: Alignment.center,
          ),
          titleTextStyle: TextStyle(fontFamily: 'MyFont', color: Colors.white),
          bodyTextStyle: TextStyle(fontFamily: 'MyFont', color: Colors.white),
        );
    
  • Now refer the code below to get the IntroViewsFlutter widget.

    final Widget introViews = IntroViewsFlutter(
          page,
          onTapDoneButton: () {
            // Void Callback
          },
          showSkipButton: true,
          pageButtonTextStyles: TextStyle(
              color: Colors.white,
              fontSize: 18.0,
              fontFamily: 'Regular',
            ),
        );
    

    For further usage refer the example available.

    For Landscape preview click the link.

    Note : If you added more than four pages in the list then there might be overlapping between page icons and skip button, so my suggestion is just make the showSkipButton: false.

Documentation

PageViewModel Class
Dart attribute Datatype Description Default Value
pageColor Color? Set color of the page. Null
pageBackground Widget Set a widget as a background of the whole page (pageColor has priority) Null
mainImage Image / Widget Set the main image of the page. If null, then the widget is omitted. -
title Text / Widget Set the title text of the page. If null, then the widget is omitted. -
body Text / Widget Set the body text of the page. If null, then the widget is omitted. -
iconImageAssetPath String? Set the icon image asset path that would be displayed in page bubble. Null
iconColor Color? Set the page bubble icon color. Null
bubbleBackgroundColor Color Set the page bubble background color. Colors.white / Color(0x88FFFFFF)
textStyle TextStyle? Set TextStyle for both title and body title: color: Colors.white , fontSize: 50.0
body: color: Colors.white , fontSize: 24.0
titleTextStyle TextStyle Set TextStyle for title color: Colors.white , fontSize: 50.0
bodyTextStyle TextStyle Set TextStyle for body color: Colors.white , fontSize: 24.0
bubble Widget? Set a custom widget for the inner bubble Null
IntroViewFlutter Class
Dart attribute Datatype Description Default Value
pages List<PageViewModel> Set the pages of the intro screen. (required)
onTapDoneButton VoidCallback? Method executes on tapping done button. Null
onTapBackButton VoidCallback? Method executes on tapping back button. Null
onTapNextButton VoidCallback? Method executes on tapping next button. Null
showSkipButton bool Show the skip button at the bottom of page. true
showBackButton bool Show the Back button at the bottom of page. Overrides showSkipButton starting from the second page false
showNextButton bool Show the Next button at the bottom of page. Overrides doneButtonPersist. false
pageButtonTextSize double Set the button text size. 18.0
pageButtonFontFamily String? Set the font of button text. Null
onTapSkipButton VoidCallback? Method executes on tapping skip button. Null
pageButtonTextStyles TextStyle? Configure TextStyle for skip, done buttons, overrides pageButtonFontFamily, pageButtonsColor, pageButtonTextSize. fontSize: 18.0, color: Colors.white
skipText Text / Widget Override Skip Button Text and styles. Text('SKIP')
doneText Text / Widget Override Done Button Text and styles. Text('DONE')
backText Text / Widget Override Back Button Text and styles. Text('BACK')
nextText Text / Widget Override Next Button Text and styles. Text('NEXT')
doneButtonPersist bool Show done Button throughout pages false
columnMainAxisAlignment MainAxisAlignment Control [MainAxisAlignment] for column MainAxisAlignment.spaceAround
fullTransition double Adjust scroll distance for full transition 300.0
background Color? Set the background color to Colors.transparent if you have your own background image below Null

For help on editing package code, view the flutter documentation.

Bugs or Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on GitHub and I'll look into it. Pull request are also welcome.

See Contributing.md.

Donate

If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of :coffee:

Contributors

Thanks goes to these wonderful people (emoji key):


Tal Jacobson

🚧 📖 📆

marloncepeda

🐛

Kravchenko Igor

🐛

SiDevesh

🤔

Slawa Pidgorny

🤔

Haider Al-Tahan

🤔

Newerton

🐛

Kenneth Gulbrandsøy

🐛 ⚠️

Sahil Kumar

⚠️

Rodrigo Boratto

🐛

RKKgithub

💻

Sudipta Dutta

🐛

Matěj Žídek

🐛 💻 📦 🚧 🤔 📖

ride4sun

💻

zognotadog

💻

Jayson

🐛

This project follows the all-contributors specification. Contributions of any kind welcome! See Contributing.md.

License

IntroViews-Flutter is licensed under MIT license.

카테고리

소스 저장소

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