flutter_side_menu 0.0.1 flutter_side_menu: ^0.0.1 copied to clipboard
side menu for flutter
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: [
const SideMenu(
mode: SideMenuMode.auto,
priority: SideMenuPriority.sizer,
),
Expanded(
child: Container(
color: Colors.white,
child: Center(
child: Text(
'body',
style: Theme.of(context).textTheme.displaySmall,
),
),
),
),
const SideMenu(
mode: SideMenuMode.compact,
leftSide: false,
),
],
),
),
);
}
}