Guest User

Untitled

a guest
Oct 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. _buildIt() {
  2. return new ShowProduct('name', 12, "AFs", "ImagePath");
  3. }
  4.  
  5. @override
  6. Widget build(BuildContext context) {
  7. return new Stack(
  8. fit: StackFit.expand,
  9. children: [
  10. new Column(
  11. children: <Widget>[
  12. new AnswerButton(true, () => handleAnswer(true)),
  13. new QuestionText(questionText, questionNumber),
  14. new AnswerButton(false, () => handleAnswer(false))
  15. ],
  16. ),
  17. overlayShouldBeVisibile == true ? _buildIt() : new Container()
  18. ],
  19. );
  20. }
  21.  
  22. _buildIt() {
  23. return new ShowProduct('name', 12, "AFs", "ImagePath");
  24. }
  25.  
  26. _buildGridItem(BuildContext context, document) {
  27. return new Card(
  28. elevation: 4.0,
  29. shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15.0)),
  30. child: InkWell(
  31. child: new GridTile(
  32. footer: Padding(
  33. padding: const EdgeInsets.all(8.0),
  34. child: new Column(children: <Widget>[
  35. new Text(
  36. document['name'],
  37. ),
  38. new Text(
  39. document['price'].toString(),
  40. ),
  41. ]),
  42. ),
  43. child: new Icon(Icons.ac_unit,
  44. size: 100.0), //just for testing, will fill with image later
  45. ),
  46. onTap: () {
  47. _buildIt();
  48. },
  49. ),
  50. );
  51. }
Add Comment
Please, Sign In to add comment