123 lines
4.0 KiB
Dart
123 lines
4.0 KiB
Dart
import 'package:citycards_customer/common_packages/app_bar.dart';
|
|
import 'package:citycards_customer/common_packages/custom_filled_button.dart';
|
|
import 'package:citycards_customer/common_packages/custom_text.dart';
|
|
import 'package:citycards_customer/common_packages/custom_textfield.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
class CreateAccountView extends StatelessWidget {
|
|
CreateAccountView({super.key});
|
|
|
|
final TextEditingController firstNameController = TextEditingController();
|
|
final TextEditingController lastNameController = TextEditingController();
|
|
final TextEditingController emailController = TextEditingController();
|
|
final TextEditingController phoneController = TextEditingController();
|
|
final TextEditingController addressController = TextEditingController();
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
|
|
|
|
return Scaffold(
|
|
backgroundColor: Colors.white,
|
|
body: SafeArea(
|
|
child: Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: 20.w),
|
|
child: Column(
|
|
children: [
|
|
CommonAppBar(
|
|
isWhiteLogo: false,
|
|
isProfilePage: false,
|
|
showCart: false,
|
|
),
|
|
Row(
|
|
children: [
|
|
GestureDetector(
|
|
onTap: () {
|
|
Navigator.pop(context);
|
|
},
|
|
child: Icon(Icons.arrow_back),
|
|
),
|
|
SizedBox(width: 8.w),
|
|
CustomText(text: "Create your account", size: 12.sp),
|
|
],
|
|
),
|
|
SizedBox(height: 26.h,),
|
|
|
|
Align(
|
|
alignment: Alignment.centerLeft,
|
|
child: CustomText(
|
|
text: "Personal Information",
|
|
size: 18.sp,
|
|
weight: FontWeight.w500,
|
|
),
|
|
),
|
|
SizedBox(height: 12.h),
|
|
|
|
Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
|
child: CustomTextField(
|
|
label: "First Name",
|
|
hint: "Enter your first name",
|
|
controller: firstNameController,
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
|
child: CustomTextField(
|
|
label: "Last Name",
|
|
hint: "Enter your last name",
|
|
controller: lastNameController,
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
|
child: CustomTextField(
|
|
label: "Email",
|
|
hint: "Enter your email address",
|
|
controller: emailController,
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
|
child: CustomTextField(
|
|
label: "Phone Number",
|
|
hint: "Enter your phone number",
|
|
controller: phoneController,
|
|
),
|
|
),
|
|
|
|
SizedBox(height: 2.h),
|
|
|
|
// Location Details
|
|
Align(
|
|
alignment: Alignment.centerLeft,
|
|
child: CustomText(
|
|
text: "Location Details",
|
|
size: 18.sp,
|
|
weight: FontWeight.w500,
|
|
),
|
|
),
|
|
SizedBox(height: 16.h),
|
|
|
|
Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: 12.0.w),
|
|
child: CustomTextField(
|
|
label: "Address 1",
|
|
hint: "Enter address manually or tap to search",
|
|
controller: addressController,
|
|
),
|
|
),
|
|
|
|
SizedBox(height: 36.h),
|
|
CustomFilledButton(
|
|
width: double.infinity,
|
|
onTap: (){}, label: "Create Account")
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|