FLUTTER ECOSYSTEM

TeaTalkInternal/rounded_tabbar_widget

사용자 정의 탭바를 사용하여 TabBarView 레이아웃을 만드는 간단한 플러터 패키지입니다.

rounded_tabbar_widget 프로젝트 이미지
Stars
10
Forks
3
최근 푸시(UTC)
2021. 3. 31.
프로젝트 상태
활성
Tea Talk GitHub avatar
GITHUB Organization

Tea Talk ↗

언어DartHTMLSwiftKotlinObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

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

원본 README

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

README 펼치기 / 접기

rounded_tabbar_widget

Language: English

A simple flutter package for creating a TabBarView layout with custom Tabbar.

Technical Notes: The layout for pages is built using TabbarView and layout of Tab buttons is customised. This package supports pages to be scrolled too.

https://github.com/TeaTalkInternal/github_assets/blob/master/gifs/rounded_tabbar_2.gif

How to use it.

the usage is very simple, just use the following

 RoundedTabbarWidget(
      tabIcons: [
        Icons.home,
        Icons.favorite,
        Icons.chat,
        Icons.person,
      ],
      pages: [
        HomePageWidget(),
        FavoritePageWidget(),
        MessagesPageWidget(),
        ProfilePageWidget(),
      ],
      selectedIndex: 0,
      onTabItemIndexChanged: (int index) {
        print('Index: $index');
      },
    ),

parameters

parameter description default
onTabItemIndexChanged Completion Handler which returns index of current tab page (int index) {}
tabIcons List of Tab Icons Pass List of IconData parameter
pages List of Tab Pages Pass List of Tab widgets parameter
selectedIndex Index of tab page to be shown selected initially This is a optional parameter
itemNormalColor Color of Tabbar item for normal state This is a optional parameter
itemSelectedColor Color of Tabbar item for selected state This is a optional parameter
tabBarBackgroundColor Background color of Tabbar This is a optional parameter

Please note the number of pages and tabIcons should be equal.

more detail