搜索插件、代码仓与 APP 分类

GitHub 代码仓cb-cloud/flutter_infinite_scroll_tab_view

flutter_infinite_scroll_tab_view

一个用于可无限滚动标签视图组件的 Flutter 包。

flutter_infinite_scroll_tab_view 项目封面
星标
10
复刻
5
最近推送(UTC)
2023年5月12日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

📜 infinite_scroll_tab_view

pub package

A Flutter package for tab view component that can scroll infinitely.

✍️ Usage

  1. Import it.

    dependencies:
        infinite_scroll_tab_view: <latest-version>
    
    import 'package:infinite_scroll_tab_view/infinite_scroll_tab_view.dart';
    
  2. Place InfiniteScrollTabView Widget into your app.

     return InfiniteScrollTabView(
       contentLength: contents.length,
       onTabTap: (index) {
         print('tapped $index');
       },
       tabBuilder: (index, isSelected) => Text(
         _convertContent(contents[index]),
         style: TextStyle(
           color: isSelected ? Colors.pink : Colors.black54,
           fontWeight: FontWeight.bold,
           fontSize: 18,
         ),
       ),
       separator: BorderSide(color: Colors.black12, width: 1.0),
       onPageChanged: (index) => print('page changed to $index.'),
       indicatorColor: Colors.pink,
       pageBuilder: (context, index, _) {
         return SizedBox.expand(
           child: DecoratedBox(
             decoration: BoxDecoration(
               color: Colors.green.withOpacity(contents[index] / 10),
             ),
             child: Center(
               child: Text(
                 _convertContent(contents[index]),
                 style: Theme.of(context).textTheme.headline3!.copyWith(
                       color: contents[index] / 10 > 0.6
                           ? Colors.white
                           : Colors.black87,
                     ),
               ),
             ),
           ),
         );
       },
     );
    

💭 Have a question?

If you have a question or found issue, feel free to create an issue.

CBcloud GitHub avatar
GitHub 作者

CBcloud ↗

语言DartHTMLSwiftKotlinObjective-C

此仓库发布的插件

使用的依赖

依赖清单 3 项

  • flutter{"sdk":"flutter"}
  • flutter_lints开发依赖^1.0.4
  • flutter_test开发依赖{"sdk":"flutter"}

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗