Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _buildIt() {
- return new ShowProduct('name', 12, "AFs", "ImagePath");
- }
- @override
- Widget build(BuildContext context) {
- return new Stack(
- fit: StackFit.expand,
- children: [
- new Column(
- children: <Widget>[
- new AnswerButton(true, () => handleAnswer(true)),
- new QuestionText(questionText, questionNumber),
- new AnswerButton(false, () => handleAnswer(false))
- ],
- ),
- overlayShouldBeVisibile == true ? _buildIt() : new Container()
- ],
- );
- }
- _buildIt() {
- return new ShowProduct('name', 12, "AFs", "ImagePath");
- }
- _buildGridItem(BuildContext context, document) {
- return new Card(
- elevation: 4.0,
- shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15.0)),
- child: InkWell(
- child: new GridTile(
- footer: Padding(
- padding: const EdgeInsets.all(8.0),
- child: new Column(children: <Widget>[
- new Text(
- document['name'],
- ),
- new Text(
- document['price'].toString(),
- ),
- ]),
- ),
- child: new Icon(Icons.ac_unit,
- size: 100.0), //just for testing, will fill with image later
- ),
- onTap: () {
- _buildIt();
- },
- ),
- );
- }
Add Comment
Please, Sign In to add comment