launchCarousel function

Widget launchCarousel()

Implementation

Widget launchCarousel() => InputDetailsCarousel(
      firstPage: (
        title: "Let's set you up",
        hint: "Tap > for the next step"
      ),
      submissionCallback: () {
        setIsNewUser(false);
        firstTimeValidateTelemetry();
      },
      otherPages: [
        makeTextInputDetails(
            title: "What should we call you?",
            hintText: "John",
            callback: setUserName),
        makeCustomInputDetails(
            title: "What is your age range?",
            child: Center(
              child: ActionableSlider(
                consumer: setUserAgeGroup,
                min: 10,
                max: 90,
                divisions: 8,
                labelConsumer: (val) =>
                    "Age Range: ${val.toInt()}-${(val + 10).toInt()}",
              ),
            )),
        makeCustomInputDetails(
            title: "Note",
            child: const Text(
              "The following forms are just to build your profile. They are not required.",
              style: TextStyle(fontSize: 16),
              textAlign: TextAlign.center,
            )),
        makeCustomInputDetails(
            title: "Your sex", child: const _UserSexSelection()),
        makeCustomInputDetails(
            title: "Select an avatar",
            child: const _UserSelectAvatar())
      ],
    );