パッケージ、リポジトリ、アプリカテゴリを検索

GitHub リポジトリcb-cloud/flutter_infinite_scroll_tab_view

flutter_infinite_scroll_tab_view

無限にスクロールできるタブビュー コンポーネント用のFlutterパッケージ。

flutter_infinite_scroll_tab_view のプロジェクト画像
スター
10
フォーク
5
最終プッシュ(UTC)
2023/05/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 ↗