1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-10 14:58:34 +00:00

Adds trivia to Veggie details screen (#61)

This commit is contained in:
Andrew Brogdon
2019-03-22 08:32:44 -07:00
committed by GitHub
parent dcca6e44b2
commit 526ee0602a
5 changed files with 306 additions and 15 deletions

View File

@@ -10,6 +10,7 @@ import 'package:veggieseasons/data/preferences.dart';
import 'package:veggieseasons/data/veggie.dart';
import 'package:veggieseasons/styles.dart';
import 'package:veggieseasons/widgets/close_button.dart';
import 'package:veggieseasons/widgets/trivia.dart';
class ServingInfoChart extends StatelessWidget {
const ServingInfoChart(this.veggie, this.prefs);
@@ -211,20 +212,6 @@ class InfoView extends StatelessWidget {
}
}
class TriviaView extends StatelessWidget {
final int id;
const TriviaView(this.id);
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(32.0),
child: Text('Trivia goes here.'),
);
}
}
class DetailsScreen extends StatefulWidget {
final int id;