Skip to content
pubscout

flutter_admin_scaffold

1.4.0, released 2 years ago by keyber.jp

A scaffold widget providing a sidebar and an app bar for admin panels.

WASM-ready
$ flutter pub add flutter_admin_scaffold
Source repository

What it does

It provides an AdminScaffold class that integrates an adjustable sidebar with an app bar and body area. It supports hierarchical menu items, headers, footers, and routing handlers out of the box.

AI-written summary of version 1.4.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building an admin dashboard or a desktop/web app requiring a collapsible sidebar navigation.
  • You want a pre-built layout structure combining an AppBar and a SideBar.

Skip it when

  • You need complex navigation with advanced deep linking handled directly by a routing package.
  • You are building a mobile-first app that does not require a persistent sidebar layout.

Strengths

  • Quickly sets up standard admin panel layouts.
  • Supports nested menu items inside the sidebar.
  • Cross-platform support including web and desktop.

Weaknesses

  • Limited to specific admin layout paradigms.
  • Lacks integrated routing features, requiring manual navigation handling.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:flutter/material.dart';
import 'package:flutter_admin_scaffold/admin_scaffold.dart';

class SamplePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return AdminScaffold(
      appBar: AppBar(
        title: const Text('Sample'),
      ),
      sideBar: SideBar(
        items: const [
          AdminMenuItem(
            title: 'Dashboard',
            route: '/',
            icon: Icons.dashboard,
          ),
        ],
        selectedRoute: '/',
        onSelected: (item) {
          if (item.route != null) {
            Navigator.of(context).pushNamed(item.route!);
          }
        },
      ),
      body: Container(),
    );
  }
}