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

simple_sidebar のカバー
パッケージ詳細v0.0.8

simple_sidebar

アイコン、テキスト、ヘッダー、スムージングを備えた非常にシンプルなサイドバー。実装が簡単で使いやすい

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
20
いいね数
5
Pub ポイント
150

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

flutter pub add simple_sidebar

パッケージ概要

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

Flutterアプリケーション向けの軽量で使いやすいサイドバー コンポーネントで、アイコン、テキストラベル、ヘッダー、スムーズなアニメーションを備えています。最小限のセットアップでナビゲーションが必要なアプリへの迅速な統合を目的としています。ダッシュボード、管理パネル、またはクリーンで応答性のあるサイドバーが必要な任意のインターフェースに最適です。このパッケージは、モバイル、Web、デスクトップを含むすべての主要プラットフォームをサポートしており、デバイス間で一貫した動作を保証します。

用途

  • ダッシュボードナビゲーション
  • 管理パネルインターフェース
  • モバイルおよびデスクトップアプリのナビゲーション
  • レスポンシブUIレイアウト
  • クイックサイドバーの実装

主な機能

  • スムーズなアニメーション
  • アイコンとテキストのサポート
  • ヘッダー部分
  • 最小構成
  • クロスプラットフォーム互換性

適している対象

  • 初心者向けFlutter開発者
  • シンプルなナビゲーションの必要性
  • 迅速なプロトタイピング
  • クリーンなUIデザイン
  • マルチプラットフォームアプリ

注意事項

  • カスタマイズオプションが限定的
  • 組み込みのダークモードなし
  • 複雑なナビゲーション構造には適していません
  • 高度なデザインには手動のスタイリングが必要です
  • 更新のために外部リポジトリに依存しています

元の README

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

Simple and quick to set up sidebar. Soft animations

Image from the Package

Features

Getting started

Just add the package to pubspec.yaml and start using it.

Usage

Create Theme & Controller and List of the Item you want to have in the Sidebar

final SimpleSidebarTheme theme = SimpleSidebarTheme()
    ..expandedShape = const BorderRadius.all(Radius.circular(8))
    ..collapsedShape = const BorderRadius.all(Radius.circular(8));
  final List<SimpleSidebarItem> sidebarItems = [
    SimpleSidebarItem(onTap: () {}, title: "Home", leading: Icons.home_outlined),
    SimpleSidebarItem(onTap: () {}, title: "Gallery", leading: Icons.image_outlined),
    SimpleSidebarItem(onTap: () {}, title: "Users", leading: Icons.group_outlined),
    SimpleSidebarItem(onTap: () {}, title: "Extra long name for a menu item", leading: Icons.list),
  ];
  final List<SimpleSidebarItem> footerItems = [
    SimpleSidebarItem(onTap: () {}, title: "Settings", leading: Icons.settings),
    SimpleSidebarItem(onTap: () {}, title: "Logout", leading: Icons.close),
  ];

After this create the Scaffold with the lists

Scaffold(
  backgroundColor: kcBackground,
  body: Row(
    children: [
      SimpleSidebar(
        theme: widget.theme,
        initialExpanded: true,
        initialIndex: 1,
        childrens: widget.sidebarItems,
        footerItems: widget.footerItems,
        onTap: (value) {
          setState(() {
            selected = value;
          });
          log("selected value $value");
        },
      ),
      Expanded(
        child: AnimatedOpacity(
          opacity: isVisible ? 1 : 0,
          duration: const Duration(milliseconds: 300),
          child: Container(
              margin: const EdgeInsets.all(8),
              child: const <Widget>[
                Text("hallo"),
                Text("hallo2"),
                Text("hallo3"),
                Text("hallo4"),
                Text("hallo5"),
                Text("hallo6"),
              ][selected]),
        ),
      ),
    ],
  ),
);

Additional information

Should there be any questions, wishes mail me: [Contact](mailto:support@glocknerstudios.at)

create an issue on GitHub for bugs. And now have fun with the sidebar

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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

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