Skip to content

Reekoooo/expandable_dialogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

expandable_dialogs

A new Flutter package for expandable dialogs

Overview

This package helps to transform any flutter widget into a floating draggable window.

Usage

First, we need to do add expanded_dialogs to the dependencies of the pubspec.yaml

expandable_dialogs: ^ 0.0.3

Then you can use it to show your draggable dialog

onPressed: () {
          ExpandableDialog.show(
            context: context,
            child: Builder(
              builder: (context) => Scaffold(
                appBar: AppBar(
                  title: ExpandableStatus.of(context).isExpanded
                      ? Text("Not Expanded")
                      : Text("Expanded"),
                  actions: <Widget>[
                    IconButton(icon: Icon(Icons.open_in_new), onPressed: () {})
                  ],
                ),
                body: Container(),
              ),
            ),
           
          );
        },
       

Notes

The expand status of the dialog can be accesses by

ExpandableStatus.of(context).isExpanded

Better wrap your widget with a builder so it can provide the proper context to be able to access the isExpanded flag.

About

flutter draggable dialog that full screen when dragged up

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors