From aff5a3b2ae8b64b960907b565b88a32b2526d087 Mon Sep 17 00:00:00 2001 From: Matthew Patrick <Matthew.535200018@stu.untar.ac.id> Date: Mon, 9 May 2022 08:55:46 +0700 Subject: [PATCH] checkout_form - Added icons --- lib/components/checkout_form.dart | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/lib/components/checkout_form.dart b/lib/components/checkout_form.dart index 45d72a9..dab2aed 100644 --- a/lib/components/checkout_form.dart +++ b/lib/components/checkout_form.dart @@ -65,9 +65,10 @@ class _CheckoutFormState extends State<CheckoutForm> { const SizedBox( height: 10, ), - makeInput(label: "First Name"), - makeInput(label: "Last Name"), - makeInput(label: "Phone Number"), + makeInput(label: "First Name", icon: Icons.person), + makeInput(label: "Last Name", icon: Icons.person), + makeInput( + label: "Phone Number", icon: Icons.phone_rounded), const SizedBox( height: 20, ), @@ -85,14 +86,19 @@ class _CheckoutFormState extends State<CheckoutForm> { const SizedBox( height: 10, ), - makeInput(label: "Street Address"), - makeInput(label: "Street Address 2"), - makeInput(label: "Region"), - makeInput(label: "Province"), - makeInput(label: "City"), - makeInput(label: "District"), - makeInput(label: "Subdistrict"), - makeInput(label: "Postal Code"), + makeInput(label: "Street Address", icon: Icons.home), + makeInput( + label: "Street Address 2", icon: Icons.home), + makeInput(label: "Region", icon: Icons.location_city), + makeInput( + label: "Province", icon: Icons.location_city), + makeInput(label: "City", icon: Icons.location_city), + makeInput( + label: "District", icon: Icons.location_city), + makeInput( + label: "Subdistrict", icon: Icons.location_city), + makeInput( + label: "Postal Code", icon: Icons.location_city), const SizedBox( height: 20, ),