1 Star 0 Fork 0

SILENCE / flutter_scale_tabbar

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Flutter Scale TabBar

特性

  • 缓解tab切换文字抖动问题
  • 添加双击事件(不推荐使用)
  • 默认去除点击水波纹
  • 可自定义水波纹颜色和圆角
  • 与官方TabBar使用方法相同

效果预览

- - -
s1 s1 s1

代码示例

ScaleTabBar(
    tabs: _tabs,

    ///添加双击事件会导致[onTap]响应延时,不推荐使用
    // onDoubleTap: (index) {
    //   print('double tap:$index');
    // },

    labelColor: Colors.black,
    labelStyle: const TextStyle(fontSize: 40),
    unselectedLabelStyle: const TextStyle(fontSize: 20),

    //波纹属性
    splashColor: Colors.blue,
    highlightColor: Colors.redAccent,
    borderRadius: BorderRadius.circular(10),
),

完整示例代码 : main.dart

Comments ( 0 )

Sign in for post a comment

About

Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
Dart
1
https://gitee.com/xSILENCEx/flutter_scale_tabbar.git
git@gitee.com:xSILENCEx/flutter_scale_tabbar.git
xSILENCEx
flutter_scale_tabbar
flutter_scale_tabbar
master

Search

103611 48b8ff67 1899542 103622 4d02230c 1899542