side_bar_custom 1.0.3 copy "side_bar_custom: ^1.0.3" to clipboard
side_bar_custom: ^1.0.3 copied to clipboard

This package allows you to have a simple, fast and practical custom SideBar, in fact you will be able to customize almost everything. Seeing is believing.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:side_bar_custom/side_bar_custom.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final pages = const [
    Center(
      child: Text("Dashboard"),
    ),
    Center(
      child: Text("Add User"),
    ),
  ];

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('SideBar Custom'),
          backgroundColor: const Color(0xff303F9F),
          elevation: 0,
        ),
        body: SideBar(
          children: pages,
          items: [
            SideBarItem(
              text: "Dashboard",
              icon: Icons.home,
              tooltipText: "Dashboard page",
            ),
            SideBarItem(
              text: "Add User",
              icon: Icons.add,
            ),
          ],
          config: SideBarConfig(
            enablePageView: true,
          ),
        ),
      ),
    );
  }
}
14
likes
150
points
11
downloads

Publisher

unverified uploader

Weekly Downloads

This package allows you to have a simple, fast and practical custom SideBar, in fact you will be able to customize almost everything. Seeing is believing.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on side_bar_custom