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

パッケージ詳細v0.1.5

sliverbar_with_card

SliverAppBar を作成するための Flutter パッケージで、アクションボタンと戻るボタンを備えたカードを含み、カタログアイテムを表示するのに最適です。

30日間ダウンロード
32
いいね数
60
Pub ポイント
40

パッケージをインストール

flutter pub add sliverbar_with_card

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

スライバーAppBarの作成を簡素化するFlutterパッケージで、埋め込まれたアクションボタンと戻るボタン付きのカードを備え、スクロール可能なリストでカタログアイテムを表示するのに最適です。可縮小可能なアプリバーと視覚的に際立ったカードコンテナを組み合わせることで、ユーザー体験を向上させ、製品やアイテムのリストに最適です。このパッケージは軽量で、既存のスクロール可能なUIへのシームレスな統合を目的としています。

用途

  • 製品カタログの表示
  • アイテム詳細画面の作成
  • スクロール可能なリストインターフェースの構築
  • リスト内のナビゲーションの向上
  • レスポンシブなカードベースのレイアウトの設計
  • アクション付きの折りたたみ可能なヘッダーの実装

主な機能

  • 統合カード付きの SliverAppBar
  • 内蔵された戻るボタンとアクションボタン
  • スクロール可能なコンテンツ向けに最適化
  • 最小限のセットアップが必要
  • 洗練された、モダンなデザイン
  • カスタマイズ可能なカードの外観

適している対象

  • eコマースアプリを開発する開発者
  • スクロール可能なインターフェースに焦点を当てるUIデザイナー
  • 折りたたみ可能なアプリバーを必要とするプロジェクト
  • カタログスタイルのデータ表示を持つアプリ
  • 再利用可能なヘッダー コンポーネントを希望するチーム

注意事項

  • 垂直スクロールレイアウトに限定
  • CustomScrollView との統合が必要です
  • 複雑なデザインには追加のスタイリングが必要になる場合があります
  • スクロールできないコンテキストには適していません
  • Flutter の Sliver システムに依存しています
  • リストビューと併用するのが最適です

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Card Sliver App Bar

Pub Pull Requests are welcome Pull Requests are welcome Codemagic build status

A Flutter package to create a SliverAppBar with a Card.

Inspired by FaoB's Twitter Post design.

Showcase

Getting started

Wrap your content with CardSliverAppBar and set your desired options:

Basic

MaterialApp(
  home: Material(
    child: CardSliverAppBar(
        height: 300,
        background: Image.asset("assets/logo.png"),
        title: Text("The Walking Dead"),
        body: Container()
    )
  )
)

With options

MaterialApp(
  home: Material(
    child: CardSliverAppBar(
        height: 300,
        background: Image.asset("assets/logo.png", fit: BoxFit.cover),
        title: Text("The Walking Dead",
            style: TextStyle(color: Colors.black, fontSize: 20, fontWeight: FontWeight.bold)
        ),
        titleDescription: Text("Drama, Action, Adventure, Fantasy, \nScience Fiction, Horror, Thriller",
            style: TextStyle(color: Colors.black, fontSize: 11)
        ),
        card: AssetImage("assets/card.jpg"),
        backButton: true,
        backBottonColors: [Colors.white, Colors.black],
        action: IconButton(
          icon: Icon(Icons.favorite),
          iconSize: 30.0,
          color: Colors.red,
          onPressed: (){},
        ),
        body: Container()
    )
  )
)
Options
Property Type Description Default
required height Double The height of background image -
required background Image The image of background -
required title Text The text of title -
required body Widget The body of this widget -
titleDescription Text The short description of title null
backButton Boolean If has backButton false
backButtonColors List The colors of backButton when open and closed Colors.white
action Widget The action between appBar and background null
card ImageProvider The image of card null

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。