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(horizontal: 20, vertical: 15),
      child: Wrap(
        spacing: 60,
        children: <Widget>[
          Container(height: 10),
          Text("Roberts", style: TextStyle(fontSize: 22, fontWeight: FontWeight.w500),),
          Container(height: 10),
          Container(
            child: Text(
              MyStrings.middle_lorem_ipsum,
              style: TextStyle(
                  color: Colors.grey[600],
                  fontSize: 18
              ),
            ),
          ),
          Container(height: 10),
          Row(
            mainAxisAlignment: MainAxisAlignment.end,
            children: <Widget>[
              new TextButton(
                style: TextButton.styleFrom(primary: Colors.transparent,),
                onPressed: (){
                  Navigator.pop(context);
                },
                child: new Text("CLOSE", style: TextStyle(color: Colors.pink[500])),
              ),
              new ElevatedButton(
                style: ElevatedButton.styleFrom(primary: Colors.blue[700],),
                onPressed: (){},
                child: new Text("DETAILS", style: TextStyle(color: Colors.white)),
              )
            ],
          )
        ],
      ),
    );
  });
}