getIntroductionLandXTemplate function

String getIntroductionLandXTemplate({
  1. required String className,
  2. required String isLoading,
  3. required String projectName,
})

Implementation

String getIntroductionLandXTemplate(
    {required String className,
    required String isLoading,
    required String projectName}) {
  return '''
      Scaffold(
        backgroundColor: AppColors.white,
        body: SafeArea(
          child: Column(
            children: [
              SizedBox(height: 40.sp),
              TextWidget(
                text: "Welcome to",
                textSize: 18.sp,
                color: AppColors.grey,
              ),
              TextWidget(
                text: "$projectName",
                textSize: 32.sp,
                fontWeight: FontWeight.bold,
                color: AppColors.primary,
              ),
              Expanded(
                child: PageView.builder(
                  controller: PageController(),
                  itemCount: 3,
                  itemBuilder: (context, index) {
                    return Column(
                      mainAxisAlignment: MainAxisAlignment.center,
                      children: [
                        Container(
                          height: 250.sp,
                          width: 100.sw,
                          margin: EdgeInsets.symmetric(horizontal: 20.sp),
                          decoration: BoxDecoration(
                            color: AppColors.indigoLight,
                            borderRadius: BorderRadius.circular(20.sp),
                          ),
                          child: Center(
                            child: Icon(
                              Icons.image,
                              size: 100.sp,
                              color: AppColors.primary,
                            ),
                          ),
                        ),
                        SizedBox(height: 40.sp),
                        Padding(
                          padding: EdgeInsets.symmetric(horizontal: 40.sp),
                          child: TextWidget(
                            text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
                            textAlign: TextAlign.center,
                            textSize: 16.sp,
                            color: AppColors.textPrimary,
                          ),
                        ),
                      ],
                    );
                  },
                ),
              ),
              Padding(
                padding: EdgeInsets.only(bottom: 40.sp),
                child: Column(
                  children: [
                    Row(
                      mainAxisAlignment: MainAxisAlignment.center,
                      children: List.generate(3, (index) => Container(
                        margin: EdgeInsets.symmetric(horizontal: 4.sp),
                        height: 8.sp,
                        width: 8.sp,
                        decoration: BoxDecoration(
                          shape: BoxShape.circle,
                          color: index == 0 ? AppColors.primary : AppColors.borderColor,
                        ),
                      )),
                    ),
                    SizedBox(height: 40.sp),
                    TextButton(
                      onPressed: () {},
                      child: TextWidget(
                        text: "SKIP",
                        textSize: 16.sp,
                        color: AppColors.grey,
                        fontWeight: FontWeight.bold,
                      ),
                    ),
                  ],
                ),
              ),
            ],
          ),
        ),
      )
''';
}