Footer constructor

Footer({
  1. Key? key,
  2. bool fromLandingPage = false,
})

Implementation

Footer({super.key, this.fromLandingPage = false})
    : footerLinks = fromLandingPage
          ? [
              (title: 'The Club', path: null, onTap: () {
                final context = clubLandingKey.currentContext;
                if (context != null) {
                  Scrollable.ensureVisible(
                    context,
                    duration: const Duration(milliseconds: 500),
                    curve: Curves.easeInOut,
                  );
                }
              }),
              // (title: 'Pre-Registration', path: null),
              (title: 'Privacy Policy', path: 'WORD-PRIVACY-POLICY-.html', onTap: null,),
              (title: 'Benefits', path: null, onTap: () {
                final context = benefitsLandingKey.currentContext;
                if (context != null) {
                  Scrollable.ensureVisible(
                    context,
                    duration: const Duration(milliseconds: 500),
                    curve: Curves.easeInOut,
                  );
                }
              }),
              // (title: 'Imprint', path: null),
              (title: 'Cookie Policy', path: 'WORD-PRIVACY-POLICY-.html', onTap: null,),
              // (title: 'Soft-Launch', path: null),
              // (title: 'Disclaimer', path: 'word-disclaimer.html'),
              // (title: 'Contact Us', path: null),
              // (title: 'Pricing', path: Routes.HOME),
              // (title: 'Flights', path: Routes.TOP_FLIGHTS),
              // (title: 'Neo Miles', path: Routes.NEOMILES),
              // (title: 'FAQ', path: Routes.FAQ),
              // (title: 'Resources', path: Routes.HOME),
              // (title: 'Terms of Use', path: 'word-acceptable-use-policy.html'),
              (title: 'Terms & Conditions', path: 'WORD-TERMS-OF-SERVICE-.html', onTap: null,),
            ]
          : [
              (title: 'Welcome', path: Routes.HOME, onTap: null,),
              (title: 'About The Club', path: Routes.THE_CLUB, onTap: null,),
              (title: 'Disclaimer', path: 'word-disclaimer.html', onTap: null,),
              (title: 'Travel', path: Routes.TOP_FLIGHTS, onTap: null,),
              (title: 'Wallet & Booking Bonuses', path: null, onTap: null,),
              (title: 'Privacy Policy', path: 'WORD-PRIVACY-POLICY-.html', onTap: null,),
              (title: 'Search-Credits', path: Routes.SEARCH_CREDIT, onTap: null,),
              (title: 'Share your Benefits', path: Routes.GLOBAL_IMPACT, onTap: null,),
              (title: 'Cookie Policy', path: 'WORD-PRIVACY-POLICY-.html', onTap: null,),
              (title: 'Memberships', path: Routes.SUBSCRIPTION, onTap: null,),
              (title: 'Terms & Conditions', path: 'WORD-TERMS-OF-SERVICE-.html', onTap: null,),
              (title: 'Contact Us', path: Routes.FAQ, onTap: null,),
              (title: 'Deep-Search', path: Routes.DEEP_SEARCH, onTap: null,),
              (title: 'Your Feedback', path: Routes.FEEDBACK_FORM, onTap: null,),
              (title: 'FAQ', path: Routes.FAQ, onTap: null,),
              (title: 'Navigator', path: Routes.AI_NAVIGATOR, onTap: null,),
            ];