detail pemesanan
unknown
dart
a year ago
3.5 kB
6
Indexable
const SizedBox( height: 10, ), Card( elevation: 10, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), ), child: IntrinsicHeight( child: Column( children: [ Container( padding: const EdgeInsets.all(10), child: Container( height: 100, child: ListView.builder( itemCount: widget.cart.length, itemBuilder: (context, index) { var item = widget.cart[index]; return Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Text( '${item.product.name} x ${item.quantity}', style: GoogleFonts.poppins( textStyle: const TextStyle( fontSize: 16, fontWeight: FontWeight.w500, )), ), Text( 'Rp. ${item.quantity * int.parse(item.product.price)}', style: GoogleFonts.poppins( textStyle: const TextStyle( fontSize: 16, fontWeight: FontWeight.w500, )), ), ], ); }, ), ), ), const SizedBox(height: 10), Container( padding: const EdgeInsets.all(10), child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ const Text( 'Total Harga', style: TextStyle( fontSize: 16, fontWeight: FontWeight.w600, ), ), Text( 'Rp. $totalPrice', style: TextStyle( fontSize: 16, fontWeight: FontWeight.w600, ), ), ], ), ), ], ), ), ),
Editor is loading...
Leave a Comment