Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (52 sloc) 1.52 KB
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:slider_side_menu/slider_side_menu.dart';
void main() async {
await SystemChrome.setPreferredOrientations(
[DeviceOrientation.portraitDown, DeviceOrientation.portraitUp]);
await SystemChrome.setEnabledSystemUIOverlays(
[, SystemUiOverlay.bottom]);
class ExampleSliderSideMenu extends StatefulWidget {
State<StatefulWidget> createState() {
return _ExampleSliderSideMenuState();
class _ExampleSliderSideMenuState extends State<ExampleSliderSideMenu> {
Widget build(BuildContext context) {
return MaterialApp(
title: "Slider Side Menu Demo" ,
home: Scaffold(
appBar: AppBar(
title: Text("Slider Side Menu Demo"),
body: Stack(
children: <Widget>[
child: Text("Demostration of Slider Side Menu Demo"),
SliderSideMenu(childrenData: [
icon: Icon(Icons.thumb_up),
label: Text("Thumb up"),
onPressed: _thumbUp
icon: Icon(Icons.thumb_down),
label: Text("Thumb down"),
onPressed: _thumbDown
], description: "Sample tooltip message")
void _thumbUp() {
void _thumbDown() {
You can’t perform that action at this time.