패키지, 저장소 및 앱 카테고리 검색

flutter_admin_scaffold 표지
패키지 상세v1.4.0

flutter_admin_scaffold

appBar와 함께 작동하는 사이드바를 갖춘 스캐폴드 클래스입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
861
좋아요
208
Pub 점수
140

패키지 설치

flutter pub add flutter_admin_scaffold

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

관리 대시보드 및 복잡한 탐색 레이아웃을 위한 Flutter 패키지로, 반응형 사이드바와 앱 바를 갖춘 사용자 정의 가능한 스케일홀드를 제공합니다. 드로어와 네비게이션 레일 패턴을 모두 지원하며, 모바일, 웹, 데스크톱 등 다양한 플랫폼에서 원활하게 적응됩니다. 일관된 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,
            ),
          ),
        ),
      ),
    );
  }
}

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.