hidden_drawer_menu 0.0.5 copy "hidden_drawer_menu: ^0.0.5" to clipboard
hidden_drawer_menu: ^0.0.5 copied to clipboard

outdated

Hidden Drawer Menu is a library for adding a beautiful drawer mode menu feature with perspective animation

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:hidden_drawer_menu/menu/item_hidden_menu.dart';
import 'package:hidden_drawer_menu/hidden_drawer/screen_hidden_drawer.dart';
import 'package:hidden_drawer_menu/builder/hidden_drawer_builder.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key}) : super(key: key);

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  List<ScreenHiddenDrawer> itens = new List();

  @override
  void initState() {
    itens.add(new ScreenHiddenDrawer(
        new ItemHiddenMenu(
          name: "Screen 1",
          colorTextUnSelected: Colors.white.withOpacity(0.5),
          colorLineSelected: Colors.teal,
//        colorTextSelected: Colors.teal,
        ),
        Container(
          color: Colors.teal,
          child: Center(
            child: Text("Screen 1",
                style: TextStyle(color: Colors.white, fontSize: 30.0)),
          ),
        )));

    itens.add(new ScreenHiddenDrawer(
        new ItemHiddenMenu(
          name: "Screen 2",
          colorTextUnSelected: Colors.white.withOpacity(0.5),
          colorLineSelected: Colors.orange,
//         colorTextSelected: Colors.orange,
        ),
        Container(
          color: Colors.orange,
          child: Center(
            child: Text(
              "Screen 2",
              style: TextStyle(color: Colors.white, fontSize: 30.0),
            ),
          ),
        )));

    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return HiddenDrawerMenuBuilder(
      initPositionSelected: 0,
      screens: itens,
      backgroundColorMenu: Colors.blueGrey,
//    iconMenuAppBar: Icon(Icons.menu),
//    backgroundContent: DecorationImage((image: ExactAssetImage('assets/bg_news.jpg'),fit: BoxFit.cover),
//    whithAutoTittleName: true,
//    styleAutoTittleName: TextStyle(color: Colors.red),
//    actionsAppBar: <Widget>[],
//    backgroundColorContent: Colors.blue,
//    backgroundColorAppBar: Colors.blue,
//    elevationAppBar: 4.0,
//    tittleAppBar: Center(child: Icon(Icons.ac_unit),),
//    enableShadowItensMenu: true,
//    backgroundMenu: DecorationImage(image: ExactAssetImage('assets/bg_news.jpg'),fit: BoxFit.cover),
    ).build();
  }
}
226
likes
0
pub points
93%
popularity

Publisher

unverified uploader

Hidden Drawer Menu is a library for adding a beautiful drawer mode menu feature with perspective animation

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on hidden_drawer_menu