Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
14 kB
1
Indexable
Never
import 'package:example/ui/widgets/common_app_button.dart';
import 'package:example/ui/widgets/common_app_image.dart';
import 'package:example/ui/widgets/common_text.dart';
import 'package:example/utils/app_colors.dart';
import 'package:example/utils/app_images.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class EventInfoScreen extends StatefulWidget {
  const EventInfoScreen({super.key});

  @override
  State<EventInfoScreen> createState() => _EventInfoScreenState();
}

class _EventInfoScreenState extends State<EventInfoScreen> {
  PageController controller = PageController();
  @override
  Widget build(BuildContext context) {
    return SafeArea(
        child: Scaffold(
      body: SingleChildScrollView(
          child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              IconButton(
                  onPressed: () {},
                  icon: Icon(
                    Icons.arrow_back,
                    size: 25.w,
                  )),
              Row(
                children: [
                  Icon(
                    Icons.favorite_border,
                    size: 25.w,
                  ),
                  SizedBox(
                    width: 20.w,
                  ),
                  Icon(
                    Icons.send,
                    size: 25.w,
                  ),
                  SizedBox(
                    width: 15.w,
                  )
                ],
              ),
            ],
          ),
          SizedBox(height: 16.h),
          Padding(
            padding: EdgeInsets.symmetric(horizontal: 15.w),
            child: SizedBox(
              height: 271.h,
              child: PageView.builder(
                  controller: controller,
                  itemCount: 5,
                  itemBuilder: (context, index) {
                    return Container(
                      decoration: BoxDecoration(
                          color: Colors.red,
                          borderRadius: BorderRadius.circular(8.r),
                          image: const DecorationImage(
                              image: AssetImage(AppImages.icEventImage),
                              fit: BoxFit.fill)),
                      child: Padding(
                        padding: EdgeInsets.symmetric(horizontal: 16.w),
                        child: Row(
                          mainAxisAlignment: MainAxisAlignment.spaceBetween,
                          children: [
                            GestureDetector(
                                onTap: () {
                                  controller.previousPage(
                                      duration: Duration(seconds: 1),
                                      curve: Curves.ease);
                                },
                                child: Container(
                                  height: 30.h,
                                  width: 30.h,
                                  decoration: BoxDecoration(
                                      color: AppColors.colorWhite,
                                      borderRadius:
                                          BorderRadius.circular(30.r)),
                                  child: Center(
                                    child: Icon(
                                      Icons.arrow_back_ios_new,
                                      size: 15.w,
                                    ),
                                  ),
                                )),
                            GestureDetector(
                                onTap: () {
                                  controller.nextPage(
                                      duration: Duration(seconds: 1),
                                      curve: Curves.ease);
                                },
                                child: Container(
                                  height: 30.h,
                                  width: 30.h,
                                  decoration: BoxDecoration(
                                      color: AppColors.colorWhite,
                                      borderRadius:
                                          BorderRadius.circular(30.r)),
                                  child: Center(
                                    child: Icon(
                                      Icons.arrow_forward_ios_rounded,
                                      size: 15.w,
                                    ),
                                  ),
                                ))
                          ],
                        ),
                      ),
                    );
                  }),
            ),
          ),
          SizedBox(
            height: 20.h,
          ),
          Padding(
            padding: EdgeInsets.symmetric(horizontal: 15.w),
            child: Row(
              children: [
                Expanded(
                    child: Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    CommonLaToText(
                      text: "Event info",
                      textSize: 16.sp,
                      fontWeight: FontWeight.w700,
                    ),
                    SizedBox(
                      height: 8.h,
                    ),
                    Container(
                      height: 2.h,
                      color: AppColors.color4B4B4B,
                    )
                  ],
                )),
                Expanded(
                    child: Column(
                  children: [
                    CommonLaToText(
                      text: "Agenda",
                      textSize: 16.sp,
                      fontWeight: FontWeight.w500,
                    ),
                    SizedBox(
                      height: 8.h,
                    ),
                    Container(
                      height: 2.h,
                      color: AppColors.colorDACFCF,
                    )
                  ],
                )),
                Expanded(
                    child: Column(
                  children: [
                    CommonLaToText(
                      text: "Sponsors",
                      textSize: 16.sp,
                      fontWeight: FontWeight.w500,
                    ),
                    SizedBox(
                      height: 8.h,
                    ),
                    Container(
                      height: 2.h,
                      color: AppColors.colorDACFCF,
                    )
                  ],
                )),
                Expanded(
                    child: Column(
                  crossAxisAlignment: CrossAxisAlignment.end,
                  children: [
                    CommonLaToText(
                      text: "Speakers",
                      textSize: 16.sp,
                      fontWeight: FontWeight.w500,
                    ),
                    SizedBox(
                      height: 8.h,
                    ),
                    Container(
                      height: 2.h,
                      color: AppColors.colorDACFCF,
                    )
                  ],
                ))
              ],
            ),
          ),
          Padding(
            padding: EdgeInsets.symmetric(horizontal: 16.w),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                SizedBox(height: 24.h,),
                CommonLaToText(
                  text: "Startups growth by Devan Patil",
                  textSize: 20.sp,
                  fontWeight: FontWeight.w700,
                ),SizedBox(height: 22.h,),
                Row(          crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    Container(
                      height: 30.h,
                      width: 30.h,
                      decoration: BoxDecoration(
                          color: AppColors.colorEDEDED,
                          borderRadius: BorderRadius.circular(30.r)),
                      child: Center(child: Icon(Icons.location_pin,color: AppColors.primaryColor,size: 20.w,),),
                    ),SizedBox(width: 12.w,),Expanded(child: Column(
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: [
                      CommonLaToText(text: "RadarSoft office", textSize: 16.sp,fontWeight: FontWeight.w700,),SizedBox(height: 3.h,),
                      CommonLaToText(text: "Creaticity Mall, Shahstri Nagar", textSize: 14.sp,fontWeight: FontWeight.w400,)
                    ],)),
                    CommonLaToText(text: "View on map", textSize: 14.sp,color: AppColors.color0062CC,decoration: TextDecoration.underline,)
                  ],
                ),SizedBox(height: 20.h,),

                Row(          crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    Container(
                      height: 30.h,
                      width: 30.h,
                      decoration: BoxDecoration(
                          color: AppColors.colorEDEDED,
                          borderRadius: BorderRadius.circular(30.r)),
                      child: Center(child: Icon(Icons.calendar_month,color: AppColors.primaryColor,size: 20.w,),),
                    ),SizedBox(width: 12.w,),Expanded(child: Column(
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: [
                        CommonLaToText(text: "Saturday, 09 April, 2023", textSize: 16.sp,fontWeight: FontWeight.w700,),SizedBox(height: 3.h,),
                        CommonLaToText(text: "6:00 PM - 8:00 PM", textSize: 14.sp,fontWeight: FontWeight.w400,)
                      ],)),

                  ],
                ),SizedBox(height: 20.h,),
                Row(          crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    Container(
                      height: 30.h,
                      width: 30.h,
                      decoration: BoxDecoration(
                          color: AppColors.colorEDEDED,
                          borderRadius: BorderRadius.circular(30.r)),
                      child: Center(child: Icon(Icons.calendar_month,color: AppColors.primaryColor,size: 20.w,),),
                    ),SizedBox(width: 12.w,),Expanded(child: Row(children: [
                      CommonAppImage(imagePath: AppImages.icAttendees,height: 28.h,),SizedBox(width: 16.w,),
                      CommonLaToText(text: "+45 going", textSize: 14.sp,fontWeight: FontWeight.w700,)
                    ],),),
                    CommonLaToText(text: "Attendees", textSize: 14.sp,color: AppColors.color0062CC,decoration: TextDecoration.underline,)

                  ],
                ),
                SizedBox(height: 24.h,),
                CommonLaToText(text: "About", textSize: 20.sp,fontWeight: FontWeight.w700,),SizedBox(height: 16.h,),
                CommonLaToText(text: "Startup growth is a dynamic journey that encompasses innovation, adaptability, and strategic planning. In the fast-paced world of entrepreneurship, startups strive to expand their customer base, increase revenue, and establish a solid market presence.",
                    textSize: 14.sp),
                SizedBox(height: 24.h,),
                CommonLaToText(text: "Hosted by", textSize: 20.sp,fontWeight: FontWeight.w700,),SizedBox(height: 16.h,),

                Row(children: [
                  Container(height: 48.h,width: 48.h,decoration: BoxDecoration(borderRadius: BorderRadius.circular(30.w),color: Colors.grey.withOpacity(0.4)),),SizedBox(width: 16.w,),
                  Expanded(child: Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: [
                    CommonLaToText(text: "Jeet Vithlani", textSize: 16.sp,fontWeight: FontWeight.w700,),
                    CommonLaToText(text: "Cofounder & CEO of Radarsoft technologies", textSize: 14.sp)
                  ],))
                ],),
                SizedBox(height: 24.h,),
                CommonLaToText(text: "Need Help?", textSize: 20.sp,fontWeight: FontWeight.w700  ,),
                SizedBox(height: 16.h,),
                Row(children: [
                  Container(
                    height: 30.h,
                    width: 30.h,
                    decoration: BoxDecoration(
                        color: AppColors.colorEDEDED,
                        borderRadius: BorderRadius.circular(30.r)),
                    child: Center(child: Icon(Icons.headset_mic,color: AppColors.primaryColor,size: 20.w,),),
                  ),SizedBox(width: 10.w,),
                  CommonLaToText(text: "Call us", textSize: 16.sp),
                  SizedBox(width: 24.w,),
                  Container(
                    height: 30.h,
                    width: 30.h,
                    decoration: BoxDecoration(
                        color: AppColors.colorEDEDED,
                        borderRadius: BorderRadius.circular(30.r)),
                    child: Center(child: Icon(Icons.wechat,color: AppColors.primaryColor,size: 20.w,),),
                  ),SizedBox(width: 10.w,),
                  CommonLaToText(text: "Chat with us", textSize: 16.sp),

                ],),
                SizedBox(height: 34.h,),
              ],
            ),
          )
        ],
      )),
          bottomNavigationBar: Container(height: 68.h,
            child: Column( children: [
              Container(height: 2.h,color: AppColors.colorCBCBCB.withOpacity(0.5),),SizedBox(height: 10.h,),
              Row(mainAxisAlignment: MainAxisAlignment.start, children: [SizedBox(width: 16.w,),
         Expanded(child:        Column(crossAxisAlignment: CrossAxisAlignment.start,mainAxisAlignment: MainAxisAlignment.start, children: [
           CommonLaToText(text: "Free", textSize: 20.sp,fontWeight: FontWeight.w600,),SizedBox(height: 3.h,),
           CommonLaToText(text: "(No taxes needed) ", textSize: 14.sp)
         ],),),
              SizedBox(width: 184.w,child:     CommonAppButton(text: "Register now", onClick: () {},),),SizedBox(width: 16.w
                  ,),
              ],),
            ],),
          ),
    ));
  }
}