Dn-a / flutter_inner_drawer

Inner Drawer is an easy way to create an internal side section (left/right) where you can insert a list-menu or other.
https://pub.dartlang.org/packages/flutter_inner_drawer
MIT License
516 stars 130 forks source link

I want to hide the back arrow in app bar #52

Closed lalitjarwal closed 4 years ago

lalitjarwal commented 4 years ago

This is the code


 Widget build(BuildContext context) {
    return InnerDrawer(
        colorTransitionChild: Colors.transparent,
        onTapClose: true,
        // tapScaffoldEnabled: true,
        boxShadow: [BoxShadow(color: Colors.grey)],
        //proportionalChildArea: false,
        //borderRadius: 12,
        innerDrawerCallback: (isOpened) {
          _isOpen = isOpened;
          print(_isOpen);
        },
        swipe: true,
        scale: IDOffset.horizontal(1),
        colorTransitionScaffold: Colors.transparent,
        offset: IDOffset.horizontal(0.15),
        key: key,
        rightChild: Container(
          color: Colors.white,
        ),
        scaffold: Scaffold(
          appBar: AppBar(
            leading: null,
            elevation: 1,
            title: Text('flutter.dart.lang'),
            actions: [
              IconButton(
                  icon: Icon(Icons.menu),
                  onPressed: () {
                    key.currentState.toggle();
                  })
            ],
          ),
        ));
  }```
Dn-a commented 4 years ago

@lalitjarwal do this

scaffold: Scaffold(
                appBar: AppBar(
                    automaticallyImplyLeading: false
                ),
            ) 
lalitjarwal commented 4 years ago

Yeah it worked for me. Thanks