108 lines
3.7 KiB
Dart
108 lines
3.7 KiB
Dart
import 'package:citycards_customer/checkout/widget/verify_otp_bottomsheet.dart';
|
|
import 'package:citycards_customer/common_packages/custom_filled_button.dart';
|
|
import 'package:citycards_customer/common_packages/custom_text.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
class LoginEmailBottomsheet extends StatelessWidget {
|
|
const LoginEmailBottomsheet({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return AnimatedPadding(
|
|
|
|
duration: const Duration(milliseconds: 250),
|
|
curve: Curves.easeOut,
|
|
padding: EdgeInsets.only(
|
|
top: 24.h,
|
|
left: 20.h,
|
|
right: 20.h,
|
|
bottom: MediaQuery.of(context).viewInsets.bottom,
|
|
),
|
|
child: SingleChildScrollView(
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.min, // shrink to fit content
|
|
children: [
|
|
Image.asset("assets/logo/logo_city_cards_orange.png", scale: 4),
|
|
SizedBox(height: 8.h),
|
|
CustomText(text: "Get Started", size: 18.sp, weight: FontWeight.w500),
|
|
SizedBox(height: 42.h),
|
|
CustomText(
|
|
text: "Enter your email to begin your CityCards journey",
|
|
size: 14.sp,
|
|
color: const Color(0xFF000000).withOpacity(.6),
|
|
),
|
|
SizedBox(height: 12.h),
|
|
|
|
TextField(
|
|
decoration: InputDecoration(
|
|
filled: true,
|
|
contentPadding: EdgeInsets.symmetric(vertical: 6.h),
|
|
fillColor: const Color(0xFFFFF5F5),
|
|
enabledBorder: OutlineInputBorder(
|
|
borderSide: BorderSide(color: const Color(0xFFBB474A), width: 0.4.w),
|
|
borderRadius: BorderRadius.circular(8.sp),
|
|
),
|
|
focusedBorder: OutlineInputBorder(
|
|
borderSide: BorderSide(color: const Color(0xFFBB474A), width: 0.4.w),
|
|
borderRadius: BorderRadius.circular(8.sp),
|
|
),
|
|
prefixIcon: const Icon(Icons.email_outlined, color: Color(0xFFF95F62)),
|
|
hintText: "john.doe@gmail.com",
|
|
hintStyle: TextStyle(
|
|
color: const Color(0xFF000000).withOpacity(0.6),
|
|
fontSize: 12.sp,
|
|
),
|
|
),
|
|
),
|
|
|
|
SizedBox(height: 38.h),
|
|
CustomFilledButton(
|
|
onTap: () {
|
|
Navigator.pop(context);
|
|
showModalBottomSheet(
|
|
context: context,
|
|
isScrollControlled: true,
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.vertical(
|
|
top: Radius.circular(12.r),
|
|
),
|
|
),
|
|
builder: (_) => VerifyOtpBottomsheet(),
|
|
);
|
|
},
|
|
label: "Continue",
|
|
width: double.infinity,
|
|
),
|
|
|
|
SizedBox(height: 20.h),
|
|
Text.rich(
|
|
TextSpan(
|
|
children: [
|
|
TextSpan(
|
|
text: "Already have an account?",
|
|
style: TextStyle(
|
|
color: Colors.black.withOpacity(0.6),
|
|
fontSize: 12.sp,
|
|
fontWeight: FontWeight.w400,
|
|
),
|
|
),
|
|
TextSpan(
|
|
text: " Sign in",
|
|
style: TextStyle(
|
|
color: const Color(0xFFF95F62),
|
|
fontSize: 12.sp,
|
|
fontWeight: FontWeight.w600,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
SizedBox(height: 15.h),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|