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

flutter_admin_scaffold のカバー
パッケージ詳細v1.4.0

flutter_admin_scaffold

appBar と連携して動作するサイドバーを備えた scaffold クラス。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
861
いいね数
208
Pub ポイント
140

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

flutter pub add flutter_admin_scaffold

パッケージ概要

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

Flutterパッケージで、レスポンシブなサイドバーとアプリバーを備えたカスタマイズ可能なスケルトンを提供し、管理者ダッシュボードや複雑なナビゲーションレイアウトに最適です。Drawerパターンとナビゲーションレールパターンの両方をサポートしており、モバイル、Web、デスクトップなど、さまざまなプラットフォームにスムーズに対応します。UI構造の一貫性を保ちつつ、スムーズなナビゲーションとレイアウト管理を実現します。構造的で階層的なナビゲーションを必要とするアプリケーションに最適です。

用途

  • 管理者ダッシュボード
  • ダッシュボードインターフェース
  • マルチプラットフォームアプリ
  • 複雑なナビゲーションレイアウト
  • レスポンシブUIデザイン

主な機能

  • サイドバー統合
  • AppBar の互換性
  • レスポンシブレイアウト
  • ドロワーとナビゲーションレールのサポート
  • クロスプラットフォームの一貫性

適している対象

  • 管理者パネルを構築している開発者
  • 一貫したナビゲーションを必要とするチーム
  • 複数のプラットフォームをターゲットにするプロジェクト
  • UI重視のアプリケーション
  • 階層的なコンテンツを持つアプリ

注意事項

  • ネストされたルートの取り扱いには注意が必要です
  • ユニークなデザインにはカスタムスタイルが必要になる場合があります
  • 大規模なアプリケーションに最適
  • ナビゲーションに特化した利用シーンに限定
  • 適切なルート管理に依存する

元の README

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

flutter_admin_scaffold

A scaffold class with a sideBar that works with a appBar.

example.gif

Usage

import 'package:flutter_admin_scaffold/admin_scaffold.dart';

You can add a sideBar as shown below. See example for details.

import 'package:flutter/material.dart';
import 'package:flutter_admin_scaffold/admin_scaffold.dart';

class SamplePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return AdminScaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        title: const Text('Sample'),
      ),
      sideBar: SideBar(
        items: const [
          AdminMenuItem(
            title: 'Dashboard',
            route: '/',
            icon: Icons.dashboard,
          ),
          AdminMenuItem(
            title: 'Top Level',
            icon: Icons.file_copy,
            children: [
              AdminMenuItem(
                title: 'Second Level Item 1',
                route: '/secondLevelItem1',
              ),
              AdminMenuItem(
                title: 'Second Level Item 2',
                route: '/secondLevelItem2',
              ),
              AdminMenuItem(
                title: 'Third Level',
                children: [
                  AdminMenuItem(
                    title: 'Third Level Item 1',
                    route: '/thirdLevelItem1',
                  ),
                  AdminMenuItem(
                    title: 'Third Level Item 2',
                    route: '/thirdLevelItem2',
                  ),
                ],
              ),
            ],
          ),
        ],
        selectedRoute: '/',
        onSelected: (item) {
          if (item.route != null) {
            Navigator.of(context).pushNamed(item.route!);
          }
        },
        header: Container(
          height: 50,
          width: double.infinity,
          color: const Color(0xff444444),
          child: const Center(
            child: Text(
              'header',
              style: TextStyle(
                color: Colors.white,
              ),
            ),
          ),
        ),
        footer: Container(
          height: 50,
          width: double.infinity,
          color: const Color(0xff444444),
          child: const Center(
            child: Text(
              'footer',
              style: TextStyle(
                color: Colors.white,
              ),
            ),
          ),
        ),
      ),
      body: SingleChildScrollView(
        child: Container(
          alignment: Alignment.topLeft,
          padding: const EdgeInsets.all(10),
          child: const Text(
            'Dashboard',
            style: TextStyle(
              fontWeight: FontWeight.w700,
              fontSize: 36,
            ),
          ),
        ),
      ),
    );
  }
}

カテゴリー

ソースリポジトリ

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

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