105 lines
3.3 KiB
Dart
105 lines
3.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import '../../common_packages/app_bar.dart';
|
|
import '../../core/route_constants.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.all(16),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
|
|
CommonAppBar(isWhiteLogo: false, isProfilePage: false, showDivider: true,),
|
|
SizedBox(height: 50.h),
|
|
|
|
ClipRRect(
|
|
borderRadius: BorderRadius.circular(8),
|
|
child: Image.asset(
|
|
"assets/images/post_card_intro.png",
|
|
width: double.infinity,
|
|
fit: BoxFit.cover,
|
|
),
|
|
),
|
|
|
|
SizedBox(height: 50.h),
|
|
|
|
const Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Text("🌴", style: TextStyle(fontSize: 16)),
|
|
SizedBox(width: 4),
|
|
Text("📮", style: TextStyle(fontSize: 16)),
|
|
SizedBox(width: 4),
|
|
Text("💌", style: TextStyle(fontSize: 16)),
|
|
],
|
|
),
|
|
|
|
SizedBox(height: 24.h),
|
|
|
|
Text(
|
|
"Make the most of your trip",
|
|
style: TextStyle(
|
|
fontSize: 20.sp,
|
|
fontWeight: FontWeight.w500,
|
|
color: const Color(0xffF95F62),
|
|
),
|
|
textAlign: TextAlign.center,
|
|
),
|
|
SizedBox(height: 8.h),
|
|
Text(
|
|
"Design your own unique postcards to\ncherish your unforgettable moments.",
|
|
style: TextStyle(
|
|
fontSize: 14.sp,
|
|
fontWeight: FontWeight.w400,
|
|
color: const Color(0xff707070),
|
|
height: 1.5,
|
|
),
|
|
textAlign: TextAlign.center,
|
|
),
|
|
|
|
SizedBox(height: 36.h),
|
|
|
|
|
|
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: () {
|
|
Navigator.of(context).pushNamed(RouteConstants.postCardCreationPage);
|
|
},
|
|
child: Text(
|
|
"Lets Create",
|
|
style: GoogleFonts.poppins(
|
|
color: Colors.white,
|
|
fontSize: 14.sp,
|
|
fontWeight: FontWeight.w600,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|