datvu7/flutter_colorful_tab
각 탭마다 색상이 있는 컬러 애니메이션 인디케이터를 갖춘 다채로운 TabBar Flutter 라이브러리입니다. (SmartNews 앱에서 영감을 받음)
- Stars
- 18
- Forks
- 9
- 최근 푸시(UTC)
- 2024. 4. 16.
- 프로젝트 상태
- 활성
언어DartC++CMakeHTMLSwiftCKotlinObjective-C
기술 주제
사용 중인 의존성
의존성 목록 2 개
- flutter
{"sdk":"flutter"} - flutter_test개발 의존성
{"sdk":"flutter"}
원본 README
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
README 펼치기 / 접기
Flutter Colorful TabBar
A colorful TabBar for Flutter where each tab has a color (inspired by SmartNews app).
demo
Getting Started
Add this to your package's pubspec.yaml file:
dependencies:
flutter_colorful_tab: {current_version}
Import the library in your file:
import 'package:flutter_colorful_tab/flutter_colorful_tab.dart';
Use the flutter_colorful_tab like this:
ColorfulTabBar(
tabs: [
TabItem(color: Colors.red, title: Text('Home')),
TabItem(color: Colors.green, title: Text('Favorite')),
TabItem(color: Colors.orange, title: Text('Search')),
TabItem(color: Colors.green, title: Text('Settings')),
],
controller: _tabController,
)
// all available parameters of TabItem
TabItem(
color: Colors.orange,
unselectedColor: Colors.orange.shade600,
title: const Text('Search'),
labelColor: Colors.black,
unselectedLabelColor: Colors.yellow,
labelStyle: const TextStyle(fontWeight: FontWeight.bold),
unselectedLabelStyle: const TextStyle(fontWeight: FontWeight.normal),
),