Files
CityCards_Customer_Flutter/lib/postcard/views/postcard_initial_page_view.dart

101 lines
3.2 KiB
Dart

import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class PostcardPage extends StatelessWidget {
const PostcardPage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: SafeArea(
child: SingleChildScrollView(
padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 24.h),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
// 🖼️ Postcard image
ClipRRect(
borderRadius: BorderRadius.circular(12),
child: Image.asset(
"assets/images/postcard_bg.png", // <-- your image
width: double.infinity,
height: 200.h,
fit: BoxFit.cover,
),
),
SizedBox(height: 32.h),
// 🌴📮💌 emojis
const Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text("🌴", style: TextStyle(fontSize: 24)),
SizedBox(width: 8),
Text("📮", style: TextStyle(fontSize: 24)),
SizedBox(width: 8),
Text("💌", style: TextStyle(fontSize: 24)),
],
),
SizedBox(height: 24.h),
// 📝 Title and subtitle
Text(
"Make the most of your trip",
style: GoogleFonts.poppins(
fontSize: 20.sp,
fontWeight: FontWeight.w600,
color: const Color(0xffF95F62),
),
textAlign: TextAlign.center,
),
SizedBox(height: 8.h),
Text(
"Design your own unique postcards to\ncherish your unforgettable moments.",
style: GoogleFonts.poppins(
fontSize: 13.sp,
fontWeight: FontWeight.w400,
color: const Color(0xff464646),
height: 1.5,
),
textAlign: TextAlign.center,
),
SizedBox(height: 36.h),
// 🟥 CTA button
SizedBox(
width: double.infinity,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xffF95F62),
padding: EdgeInsets.symmetric(vertical: 16.h),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(40),
),
),
onPressed: () {
// Add navigation or bloc event here
},
child: Text(
"Lets Create",
style: GoogleFonts.poppins(
color: Colors.white,
fontSize: 14.sp,
fontWeight: FontWeight.w600,
),
),
),
),
],
),
),
),
);
}
}