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

introduction_slider 표지
패키지 상세v2.0.1

introduction_slider

여러 기능을 갖춘 Flutter 애플리케이션용 소개/온보딩 슬라이더 패키지입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
79
좋아요
101
Pub 점수
140

패키지 설치

flutter pub add introduction_slider

패키지 개요

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

Introduction Slider는 모바일 및 웹 애플리케이션용 인터랙티브한 소개 또는 온보딩 슬라이더를 만들기 위해 설계된 Flutter 패키지입니다. 여러 화면을 지원하고, 애니메이션 전환과 직관적인 탐색 기능을 갖춘 부드럽고 사용자 정의 가능한 카루셀 경험을 제공합니다. 새로운 사용자가 앱 기능, 튜토리얼 또는 환영 화면을 안내하는 데 이상적입니다. 내장된 제스처와 시각적 피드백을 통해 초기 앱 경험 동안 사용자 참여도를 향상시킵니다. Android, iOS, Web, macOS, Windows, Linux 등 모든 주요 플랫폼을 지원하여 다양한 장치에서 일관된 성능을 보장합니다.

사용 사례

  • 신규 사용자 온보딩
  • 앱 튜토리얼 화면
  • 환영 스플래시 시퀀스
  • 기능 강조
  • 사용자 온보딩 흐름

주요 기능

  • 사용자 정의 가능한 슬라이드 콘텐츠
  • 애니메이션 전환
  • 제스처 기반 탐색
  • 크로스 플랫폼 호환성
  • 내장형 진행률 표시기
  • Flutter와의 간편한 통합

적합한 대상

  • 새로운 앱 개발자
  • 온보딩에 중점을 둔 앱
  • 다중 화면 소개
  • 크로스 플랫폼 프로젝트
  • 사용자 경험 향상

고려 사항

  • 기본적인 플러터 지식이 필요합니다
  • 애니메이션 타이밍의 사용자 정의 제한
  • 복잡한 레이아웃을 위해 추가 스타일링이 필요할 수 있습니다
  • 고급 기능을 위해 외부 종속성에 의존합니다
  • 매우 큰 슬라이드 수에 최적화되지 않음

원본 README

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

introduction-slider

chouhan-rahul buymeacoffee ko-fi paypal

Become a sponsor

sponsor

Introduction Slider

An introduction slider has some screens that can use to describe your application. You can describe your application's title, description, logo, etc. It comes with several features.

Here is an example of how to implement IntroductionSlider in a Flutter application.

IntroductionSlider(
  items: [
    IntroductionSliderItem(
      logo: FlutterLogo(),
      title: Text("Title 1"),
      backgroundColor: Colors.red,
    ),
    IntroductionSliderItem(
      logo: FlutterLogo(),
      title: Text("Title 2"),
      backgroundColor: Colors.green,
    ),
    IntroductionSliderItem(
      logo: FlutterLogo(),
      title: Text("Title 3"),
      backgroundColor: Colors.blue,
    ),
  ],
  done: Done(
    child: Icon(Icons.done),
    home: HomePage(),
  ),
  next: Next(child: Icon(Icons.arrow_forward)),
  back: Back(child: Icon(Icons.arrow_back)),
  dotIndicator: DotIndicator(),
)

IntroductionSlider Properties

Property Type Description
items: List<IntroductionSliderItem> Defines the appearance of the introduction slider items that are arrayed within the introduction slider.
done: Done The Done that is used to navigate to the target page.
back: Back The Back that is used to navigate to the previous page.
next: Next The Next that is used to navigate to the next page.
initialPage: int The initial page index of the introduction slider.
doIndicator: DotIndicator The DotIndicator that is used to indicate dots.
physics: ScrollPhysics Determines the physics of a [Scrollable] widget.
scrollDirection: Axis The two cardinal directions in two dimensions.
showStatusBar: bool Show and hide app status/navigation bar on the introduction slider.

IntroductionSliderItem

It is used to describe the title, subtitle, logo, etc. of the introduction slider.

Here is an example of how to implement IntroductionSliderItem with background color.

introduction_slider

IntroductionSliderItem(
  logo: FlutterLogo(),
  title: Text("Introduction Slider Title"),
  subtitle: Text("Introduction Slider Subtitle"),
  backgroundColor: Colors.red
)

Here is an example of how to implement IntroductionSliderItem with gradient background.

introduction_slider

IntroductionSliderItem(
  logo: FlutterLogo(),
  title: Text("Introduction Slider Title"),
  subtitle: Text("Introduction Slider Subtitle"),
  gradient: LinearGradient(
    colors: [
      Colors.cyan,
      Colors.indigo,
    ],
  ),
)

Here is an example of how to implement IntroductionSliderItem with background image.

introduction_slider

IntroductionSliderItem(
  logo: FlutterLogo(),
  title: Text("Introduction Slider Title"),
  subtitle: Text("Introduction Slider Subtitle"),
  backgroundImageDecoration: BackgroundImageDecoration(
    image: AssetImage("assets/images/larry_page.jpg"),
    colorFilter: ColorFilter.mode(
      Colors.black.withOpacity(0.6),
      BlendMode.darken,
    ),
    fit: BoxFit.cover,
    opacity: 1.0,
  ),
)

IntroductionSliderItem Properties

Property Type Description
logo: Widget Logo of the introduction slider.
title: Widget Title of the introduction slider.
subtitle: Widget Subtitle of the introduction slider.
backgroundColor: Color Background color of the introduction slider.
backgroundImageDecoration: BackgroundImageDecoration Background image of the introduction slider.
gradient: Gradient Gradient background of the introduction slider.

Properties of BackgroundImageDecoration

Property Type Description
image: ImageProvider Typically this will be an AssetImage or a NetworkImage
fit: BoxFit Fill the target box by distorting the source's aspect ratio.
colorFilter: ColorFilter A color filter is a function that takes two colors, and outputs one color.
opacity: double Used to set the filterQuality of the image.

Scroll / Gesture control

A page can be scrolled horizontally or vertically. The default scroll direction is horizontal. You can change the scroll direction by setting the scrollDirection property.

introdution slider

IntroductionSlider(
  scrollDirection: Axis.vertical,
)

You can also control the introduction slider by gestures. You can set the physics property to NeverScrollableScrollPhysics() to disable the gesture slide.

IntroductionSlider(
  physics: NeverScrollableScrollPhysics(),
)

DotIndicator

The dot indicator is used to indicate the current page. You can change the color of the dot indicator and the size of the dot indicator.

DotIndicator(
  selectedColor: Colors.blue,
  unselectedColor: Colors.blue.withOpacity(0.5),
  size: 8.0
)

DotIndicator Properties

Property Type Description
selectedColor: Color The selected color of the dot.
unselectedColor: Color The unselected color of the dot.
size: double The size of the dot.

Done

Done has some more properties which are used to redirect to the target page with an animation effect. animationDuration is used to set the duration of the animation and curve is used to set the animation curve.

Done(
  child: Icon(Icons.done),
  curve: Curves.easeInOut,
  animationDuration: Duration(milliseconds: 350),
  home: HomePage(),
)

Done Properties

Property Type Description
child: Widget Done button's child widget.
home: Widget Redirects to the target page.
style: ButtonStyle Many of the ButtonStyle properties are [MaterialStateProperty] objects which resolve to different values depending on the button's state.
curve: Curve A collection of common animation easing curves.
animationDuration: Duration The animation lasts for the given duration and follows the given curve. The returned [Future] resolves when the animation completes.

Next

Next has some more properties which are used to redirect to the next slide page with an animation effect. animationDuration is used to set the duration of the animation and curve is used to set the animation curve.

Next(
  child: Icon(Icons.done),
  curve: Curves.easeInOut,
  animationDuration: Duration(milliseconds: 350),
)

Next Properties

Property Type Description
child: Widget Next button's child widget.
style: ButtonStyle Many of the ButtonStyle properties are [MaterialStateProperty] objects which resolve to different values depending on the button's state.
curve: Curve A collection of common animation easing curves.
animationDuration: Duration The animation lasts for the given duration and follows the given curve. The returned [Future] resolves when the animation completes.

Back

Back has some more properties which are used to redirect to the previous slide page with an animation effect. animationDuration is used to set the duration of the animation and curve is used to set the animation curve.

Back(
  child: Icon(Icons.done),
  curve: Curves.easeInOut,
  animationDuration: Duration(milliseconds: 350),
)

Back Properties

Property Type Description
child: Widget Next button's child widget.
style: ButtonStyle Many of the ButtonStyle properties are [MaterialStateProperty] objects which resolve to different values depending on the button's state.
curve: Curve A collection of common animation easing curves.
animationDuration: Duration The animation lasts for the given duration and follows the given curve. The returned [Future] resolves when the animation completes.

Hide/Show status bar and navigation bar

By default showStatusBar is false. You can show status bar and navigation bar by setting showStatusBar to true.

IntroductionSlider(
  showStatusBar: true,
)

Report bugs or issues

You are welcome to open a ticket on github if any problems arise. New ideas are always welcome.

Copyright and License

Copyright © 2022 Rahul Chouhan. Licensed under the MIT LICENSE.

3d Illustration by Icons 8 from Ouch!

카테고리

소스 저장소

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

아직 데이터가 없습니다.