travel method

Widget travel(
  1. BuildContext context
)

Implementation

Widget travel(BuildContext context) {
  return Row(
    mainAxisAlignment: MainAxisAlignment.center,
    children: [
      Container(
        constraints: context.x > 1100
            ? BoxConstraints(maxWidth: 1100)
            : BoxConstraints(maxWidth: context.x),
        padding: EdgeInsets.fromLTRB(context.x<768?12.dp:80.dp, 0, context.x<768?12.dp:80.dp, 0),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          mainAxisAlignment: MainAxisAlignment.start,
          children: [
            RichText(
              text: TextSpan(
                text: 'Beyond luxury ',
                style: TextStyle(
                  fontSize: context.x < 768 ? 25.dp : 38.dp,
                  fontWeight: FontWeight.w600,
                  fontFamily: "PlayFairDisplay",
                  height: 1.0,
                  color: ColorHelper.textDark,
                ),
                children: [
                  WidgetSpan(
                    alignment: PlaceholderAlignment.baseline,
                    baseline: TextBaseline.alphabetic,
                    child: Baseline(
                      baseline: (context.x < 768 ? 25.dp : 38.dp) * 0.8,
                      baselineType: TextBaseline.alphabetic,
                      child: GradientText(
                        'travel',
                        style: TextStyle(
                          fontSize: context.x < 768 ? 25.dp : 38.dp,
                          fontWeight: FontWeight.w600,
                          fontFamily: "PlayFairDisplay",
                          height: 1.0,
                        ),
                        gradientDirection: GradientDirection.ltr,
                        colors: ColorHelper.gradientTextColors,
                      ),
                    ),
                  ),
                ],
              ),
            ),
            0.dp.SpaceX,
            Text(
              'About Us - The Club',
              style: TextStyle(
                fontSize: context.x<768?18.dp: 25.dp,
                fontWeight: FontWeight.w600,
                color: ColorHelper.textDark,
                fontFamily: "PlayFairDisplay",
              ),
              textAlign: TextAlign.center,
            ),
            10.dp.SpaceX,
            Text(
              context.x > 1100
                  ? 'At NEOPASS, we’re more than a travel platform; we are a movement. We bring together a community of\nexplorers who crave not only extraordinary destinations but also meaningful, affordable, and impactful journeys.\nOur club is a sanctuary for those who value premium experiences, sustainable practices, and seamless\nconvenience. Here, quality isn’t a privilege—it’s a promise.'
                  : 'At NEOPASS, we’re more than a travel platform; we are a movement. We bring together a community of explorers who crave not only extraordinary destinations but also meaningful, affordable, and impactful journeys. Our club is a sanctuary for those who value premium experiences, sustainable practices, and seamless convenience. Here, quality isn’t a privilege—it’s a promise.',
              style: TextStyle(
                fontSize: 16.dp,
                fontWeight: FontWeight.w400,
                color: ColorHelper.textDarkMed,
                fontFamily: "SFProDisplay",
              ),
              textAlign: TextAlign.center,
            ),
            const SizedBox(
              height: 15,
            ),
            InkWell(
              onTap: () async {
                await controller.launchPDf(context, 'Invitation');
              },
              child: Row(
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
                  Text(
                    'View Exclusive Invitation',
                    style: TextStyle(
                      fontSize: 16.dp,
                      fontWeight: FontWeight.w500,
                      color: ColorHelper.primaryColor2,
                      fontFamily: "SFProDisplay",
                    ),
                  ),
                  SvgPicture.asset(
                    'assets/home/arrowup.svg',
                    colorFilter: const ColorFilter.mode(ColorHelper.primaryColor2, BlendMode.srcIn),
                  ),
                ],
              ),
            ),
            30.dp.SpaceX,
            InkWell(
              onTap: () {
                showYouTubeDialog(context);
              },
              child: Image.asset(context.x<768?'assets/theClub/travel_img_mobile.webp':'assets/theClub/travel_img.webp'),
            ),
            50.dp.SpaceX,
            ResponsiveGridRow(
              children: [
                ResponsiveGridCol(
                  lg: 6,
                  md: 6,
                  sm: 12,
                  xs: 12,
                  child: Padding(
                    padding: EdgeInsets.only(right: 20.dp),
                    child: Column(
                      mainAxisAlignment: MainAxisAlignment.start,
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: [
                        Text(
                          'Our Vision',
                          style: TextStyle(
                            fontSize: context.x<768? 22:25.dp,
                            fontWeight: FontWeight.w600,
                            color: ColorHelper.textDark,
                            fontFamily: "PlayFairDisplay",
                          ),
                        ),
                        context.x<768?
                        12.dp.SpaceX:
                        20.dp.SpaceX,
                        RichText(
                          text: const TextSpan(
                            text: '',
                            style: TextStyle(
                              fontSize: 16,
                              fontWeight: FontWeight.w400,
                              color: ColorHelper.textDarkMed,
                              fontFamily: "SFProDisplay",
                            ),
                            children: [
                              TextSpan(
                                text:
                                    'To redefine luxury travel, making it accessible, effortless, and impactful for ',
                                style: TextStyle(
                                  color: ColorHelper.textDarkMed,
                                  fontFamily: "SFProDisplay",
                                ),
                              ),
                              TextSpan(
                                text: 'all members.',
                                style: TextStyle(
                                  color: ColorHelper.primaryColor2,
                                  fontFamily: "SFProDisplay",
                                ),
                              ),
                            ],
                          ),
                        ),
                        context.x<768?
                        12.SpaceX:
                        20.dp.SpaceX,
                        const Text(
                          'To redefine travel by bridging the gap between exclusivity and accessibility. NEOPASS connects you to business & first-class flights, all-star hotels, and unforgettable moments—all at prices that empower more people to indulge in the wonders of the world. We aim to leave a positive mark on our planet, ensuring your adventures contribute to its preservation',
                          style: TextStyle(
                            fontSize: 16,
                            fontWeight: FontWeight.w400,
                            color: ColorHelper.neutralText02,
                            fontFamily: "SFProDisplay",
                          ),
                        ),
                      ],
                    ),
                  ),
                ),
                ResponsiveGridCol(
                  lg: 6,
                  md: 6,
                  sm: 12,
                  xs: 12,
                  child: Padding(
                    padding: EdgeInsets.only(left: context.x<768? 0:20.dp, top: context.x<768?28:0),
                    child: Column(
                      mainAxisAlignment: MainAxisAlignment.start,
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: [
                        Text(
                          'Our Mission',
                          style: TextStyle(
                            fontSize: context.x<768? 22: 25,
                            fontWeight: FontWeight.w600,
                            color: ColorHelper.textDark,
                            fontFamily: "PlayFairDisplay",
                          ),
                        ),
                        context.x<768?
                        12.SpaceX:
                        20.dp.SpaceX,
                        const Text(
                          'To connect travelers to premium services through affordable pricing, seamless experiences, and purposeful journeys that leave a positive global impact.',
                          style: TextStyle(
                            fontSize: 18,
                            fontWeight: FontWeight.w400,
                            color: ColorHelper.neutralMediumText,
                            fontFamily: "SFProDisplay",
                          ),
                        ),
                      ],
                    ),
                  ),
                )
              ],
            )
          ],
        ),
      ),
    ],
  );
}