flutter_side_menu 0.0.2 copy "flutter_side_menu: ^0.0.2" to clipboard
flutter_side_menu: ^0.0.2 copied to clipboard

outdated

Full customizable side menu for flutter

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_side_menu/flutter_side_menu.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> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Row(
          children: [
             SideMenu(
              mode: SideMenuMode.auto,
              priority: SideMenuPriority.sizer,
              body:SideMenuBodyData(
                header: Text('Header'),
                items: [
                  SideMenuItemData(
                    isSelected: true,
                    onTap: (){},
                    title: 'Item 1',
                    icon: Icons.home,
                  ),
                  SideMenuItemData(
                    isSelected: false,
                    onTap: (){},
                    title: 'Item 2',
                    icon: Icons.home,
                  ),
                  SideMenuItemData(
                    isSelected: false,
                    onTap: (){},
                    title: 'Item 3',
                    icon: Icons.home,
                  ),
                ],
                footer: Text('Footer'),

            ),
            ),
            Expanded(
              child: Container(
                color: Colors.white,
                child: Center(
                  child: Text(
                    'body',
                    style: Theme.of(context).textTheme.displaySmall,
                  ),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
127
likes
0
pub points
93%
popularity

Publisher

unverified uploader

Full customizable side menu for flutter

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

auto_size_text, flutter, simple_animations

More

Packages that depend on flutter_side_menu