showSheet function

void showSheet(
  1. dynamic context
)

Implementation

void showSheet(context) {
  showModalBottomSheet(context: context, builder: (BuildContext bc) {
    return Container(
      color: Colors.white,
      padding: EdgeInsets.symmetric(vertical: 0, horizontal: 5),
      child: Wrap(
        children: <Widget>[
          ListTile(
            leading: Icon(Icons.visibility),
            title: Text("Preview"),
            onTap: (){},
          ),
          ListTile(
            leading: Icon(Icons.person_add),
            title: Text("Share"),
            onTap: (){},
          ),
          ListTile(
            leading: Icon(Icons.link),
            title: Text("Get link"),
            onTap: (){},
          ),
          ListTile(
            leading: Icon(Icons.content_copy),
            title: Text("Make a copy"),
            onTap: (){},
          ),
        ],
      ),
    );
  });
}