Guest User

Untitled

a guest
Dec 16th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. Future<List<Food>> fetchFood() async {
  2. List<Food> _goFoodFeaturedList = [];
  3. _goFoodFeaturedList.add(
  4. new Food(title: "Steak Andakar", image: "assets/images/food_1.jpg"));
  5. _goFoodFeaturedList.add(
  6. new Food(title: "Mie Ayam Tumini", image: "assets/images/food_2.jpg"));
  7. _goFoodFeaturedList.add(
  8. new Food(title: "Tengkleng Hohah", image: "assets/images/food_3.jpg"));
  9. _goFoodFeaturedList.add(
  10. new Food(title: "Warung Steak", image: "assets/images/food_4.jpg"));
  11. _goFoodFeaturedList.add(new Food(
  12. title: "Kindai Warung Banjar", image: "assets/images/food_5.jpg"));
  13.  
  14. return new Future.delayed(new Duration(seconds: 1), () {
  15. return _goFoodFeaturedList;
  16. });
  17. }
Add Comment
Please, Sign In to add comment