FLUTTER ECOSYSTEM

champ96k/flutter_walkthrough_screen

개발자가 앱의 사용자 맞춤형 온보딩 화면을 만들 수 있도록 도와주는 플러터 패키지입니다.

flutter_walkthrough_screen 프로젝트 이미지
Stars
5
Forks
2
최근 푸시(UTC)
2021. 8. 14.
프로젝트 상태
활성
Tushar Nikam GitHub avatar
GITHUB User

Tushar Nikam ↗

Focus, Build, and Balance.

언어Dart

기술 주제

사용 중인 의존성

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

원본 README

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

README 펼치기 / 접기

Flutter Walkthrough Screen

A flutter package which help developer in creating a customize onboarding screens of their app.

Bitbucket open issues

Screenshots

https://i.ibb.co/L05Kg47/Walkthrough.png

Usage

Example

To use this package :

  dependencies:
    flutter:
      sdk: flutter
    flutter_walkthrough_screen:
How to use
class TestScreen extends StatelessWidget {
    /*here we have a list of OnbordingScreen which we want to have, each OnbordingScreen have a imagePath,title and an desc.
      */
  final List<OnbordingData> list = [
      OnbordingData(
        image: AssetImage("images/pic1.png"),
        titleText:Text("This is Title1"),
        descText: Text("This is desc1"),
      ),
       OnbordingData(
        image: AssetImage("images/pic2.png"),
        titleText:Text("This is Title2"),
        descText: Text("This is desc2"),
      ),
       OnbordingData(
        image: AssetImage("images/pic3.png"),
        titleText:Text("This is Title3"),
        descText: Text("This is desc4"),
      ),
       OnbordingData(
        image: AssetImage("images/pic4.png"),
        titleText:Text("This is Title4"),
        descText: Text("This is desc4"),
      ),
    ];

  @override
  Widget build(BuildContext context) {
    /* remove the back button in the AppBar is to set automaticallyImplyLeading to false
  here we need to pass the list and the route for the next page to be opened after this. */
    return IntroScreen(
                 onbordingDataList: list,
                 colors: [
                   //list of colors for per pages
                   Colors.white,
                   Colors.red,
                 ],
                 pageRoute: MaterialPageRoute(
                   builder: (context) => NextPage(),
                 ),
                 nextButton: Text(
                   "NEXT",
                   style: TextStyle(
                     color: Colors.purple,
                   ),
                 ),
                 lastButton: Text(
                   "GOT IT",
                   style: TextStyle(
                     color: Colors.purple,
                   ),
                 ),
                 skipButton: Text(
                   "SKIP",
                   style: TextStyle(
                     color: Colors.purple,
                   ),
                 ),
                 selectedDotColor: Colors.orange,
                 unSelectdDotColor: Colors.grey,
               );
  }
}

Customize your onboarding screen design

Background color Background gradient color
https://i.ibb.co/87Yd36V/background-color.png https://i.ibb.co/F8GYJSR/background-gradient-color.png
Last page button Next page button
https://i.ibb.co/5vLg0pG/last-page-button.png https://i.ibb.co/qmVRSvV/next-page-button.png
Skip button Define next page route
https://i.ibb.co/f0qRn4C/skip-button.png https://i.ibb.co/MM9f6Xx/page-route.png
Selected dot Color Unselected dot Color
https://i.ibb.co/6w344S3/selected-dot-Color.png https://i.ibb.co/dtpjTD1/unselect-dot-Color.png
Created & Maintained By

Tushar Nikam

https://img.shields.io/badge/twitter-%231DA1F2.svg?&style=for-the-badge&logo=twitter&logoColor=white https://img.shields.io/badge/linkedin-%230077B5.svg?&style=for-the-badge&logo=linkedin&logoColor=white https://img.shields.io/badge/medium-%2312100E.svg?&style=for-the-badge&logo=medium&logoColor=white https://img.shields.io/badge/tusharnikam.ml-portfolio-orange Stackoverflow Buy Me A Coffee