Guest User

Untitled

a guest
Dec 16th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. Widget _buildMenuBottomSheet() {
  2. return new StatefulBuilder(builder: (c, s) {
  3. return new SafeArea(
  4. child: new Container(
  5. padding: EdgeInsets.only(left: 16.0, right: 16.0),
  6. width: double.infinity,
  7. decoration: new BoxDecoration(
  8. borderRadius: BorderRadius.circular(4.0), color: Colors.white),
  9. child: new Column(children: <Widget>[
  10. new Icon(
  11. Icons.drag_handle,
  12. color: GojekPalette.grey,
  13. ),
  14. new Row(
  15. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  16. children: <Widget>[
  17. new Text(
  18. "GO-JEK Services",
  19. style: new TextStyle(fontFamily: "NeoSansBold", fontSize: 18.0),
  20. ),
  21. new OutlineButton(
  22. color: GojekPalette.green,
  23. onPressed: () {},
  24. child: new Text(
  25. "EDIT FAVORITES",
  26. style:
  27. new TextStyle(fontSize: 12.0, color: GojekPalette.green),
  28. ),
  29. ),
  30. ],
  31. ),
  32. new Container(
  33. height: 300.0,
  34. child: new GridView.builder(
  35. physics: new NeverScrollableScrollPhysics(),
  36. itemCount: _gojekServiceList.length,
  37. gridDelegate: new SliverGridDelegateWithFixedCrossAxisCount(
  38. crossAxisCount: 4),
  39. itemBuilder: (context, position) {
  40. return _rowGojekService(_gojekServiceList[position]);
  41. }),
  42. ),
  43. ]),
  44. ));
  45. });
  46. }
Add Comment
Please, Sign In to add comment