mainContainer method

SingleChildScrollView mainContainer(
  1. BuildContext context
)

Implementation

SingleChildScrollView mainContainer(BuildContext context) {
  print(context.x);
  return SingleChildScrollView(
    child: Column(
      children: [
        Container(
          padding: EdgeInsets.only(top: context.x > 1100? 0.dp:context.x < 500? 20:35.dp),
          color: Colors.white,
          constraints: context.x > 1100?const BoxConstraints(
              maxWidth: 1100
          ): BoxConstraints(
              maxWidth: context.x
          ),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              _heroSection(context),
              40.dp.SpaceX,
              _flightSearch(context),
              SizedBox(
                height: context.x<768?20:70,
              ),
            ],
          ),
        ),
        _entertainYou(context),
        SizedBox(
          height: context.x <992? 40:80,
        ),

        /////////////////
        // _explore(),
        /////////////////

        /////////////////
        // _getAccess(),
        // const SizedBox(
        //   height: 80,
        // ),
        ///////////

        _charityCommunity(context),

        /////////////////
        // _communityTeamSection(),
        // const SizedBox(
        //   height: 83,
        // ),
        /////////////////
        _loyalty(context),
        SizedBox(
          height: context.x<1100?0:40,
        ),
        _paymentOptions(context),
        /////////////////////
        // _neoConcierge(),
        /////////////////////
        _message(context),
        SizedBox(
          height: context.x<530?30:60,
        ),
        theClub(context),
        const SizedBox(
          height: 60,
        ),
        const HomeMembershipWidget(),
      ],
    ),
  );
}