daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ProductListBuilder extends StatelessWidget {
  2.   final List<Product> product;
  3.   ProductListBuilder({Key key, this.product}) : super(key: key);
  4.  
  5.   @override
  6.   Widget build(BuildContext context) {
  7.     return ListView.builder(
  8.         itemCount: product.length,
  9.         itemBuilder: (context, index) {
  10.           return Column(
  11.             children: <Widget>[
  12.               ListTile(
  13.                 title: Text("${product[index].namaProduk}"),
  14.                 subtitle: Text(
  15.                     "Kategori: ${product[index].kategori}\n" +
  16.                     "Nomor Rak: ${product[index].nomorRak}\n" +
  17.                     "Expired Date: ${product[index].expiredDate}\n" +
  18.                     "Scan code: ${product[index].scanCode}\n" +
  19.                     "Discount: ${product[index].discount}"
  20.                 ),
  21.               ),
  22.               Divider(),
  23.             ],
  24.           );
  25.         }
  26.     );
  27.   }
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top