Skip to content

Instantly share code, notes, and snippets.

@TechieBlossom
Created November 15, 2019 14:29
Show Gist options
  • Save TechieBlossom/53d2694b50fd4e6833ba9f382767e280 to your computer and use it in GitHub Desktop.
Save TechieBlossom/53d2694b50fd4e6833ba9f382767e280 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
class Product {
final String imagePath, name, description, buttonText, price, productInfo;
final Color backgroundColor;
Product({this.imagePath, this.name, this.description, this.buttonText, this.backgroundColor, this.price = "", this.productInfo = ""});
}
final Product pixelStand = Product(
imagePath: "assets/images/pixelstand.webp",
name: "Pixel stand",
description: "New Release",
buttonText: "",
backgroundColor: Color(0xFFF9F9F9),
);
final Product dayDreamView = Product(
imagePath: "assets/images/daydream.png",
name: "DayDream View",
description: "Premium",
buttonText: "",
backgroundColor: Color(0xFFE0DDFF),
);
final Product pixel = Product(
imagePath: "assets/images/pixel.png",
name: "Pixel 3a",
description: "Meet the Google Pixel 3a.",
buttonText: "Learn more",
backgroundColor: Color(0xFFF5F5F5),
);
final Product stadia = Product(
imagePath: "assets/images/stadia.png",
name: "Google\nStadia",
description: "New Release",
buttonText: "CHECK OUT",
backgroundColor: Color(0xFFFBE9EB),
price: "69",
productInfo: "Stadia is Google's new cloud based "
"gaming platform that allows you to play your favorite git video games across screens instantly.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment