bodyContent method

List<Widget> bodyContent(
  1. String documentType,
  2. double width,
  3. double height,
  4. bool isLandscape,
  5. BuildContext context,
  6. String selectedLanguage,
)

Implementation

List<Widget> bodyContent(String documentType, double width, double height,
    bool isLandscape, BuildContext context, String selectedLanguage) {
  return [
    Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        Padding(
          padding: const EdgeInsets.only(left: 4),
          child: Text(
            titleText[selectedLanguage]!,
            style: const TextStyle(
              color: textBlue,
              fontWeight: FontWeight.w600,
              letterSpacing: 0.2,
              fontSize: 20,
            ),
          ),
        ),
        const SizedBox(height: 23),
        Row(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Container(
              width: 28,
              height: 28,
              decoration: BoxDecoration(
                border: Border.all(
                  color: progressBarColor,
                  width: 2.0,
                ),
                shape: BoxShape.circle,
                color: progressBarColor,
              ),
              child: const Center(
                child: Text(
                  '1',
                  style: TextStyle(
                    color: white,
                    fontSize: 19,
                    fontWeight: FontWeight.w400,
                  ),
                ),
              ),
            ),
            Container(
              decoration: const BoxDecoration(
                color: progressBarColor,
              ),
              width: 103,
              height: 2,
            ),
            Container(
              width: 28,
              height: 28,
              decoration: BoxDecoration(
                border: Border.all(
                  color: const Color(0xFFD3D3D3),
                  width: 2.0,
                ),
                shape: BoxShape.circle,
                color: const Color(0xFFD3D3D3),
              ),
              child: const Center(
                child: Text(
                  '2',
                  style: TextStyle(
                    color: Color(0xFF888989),
                    fontSize: 19,
                    fontWeight: FontWeight.w400,
                  ),
                ),
              ),
            ),
            Container(
              color: const Color(0xFF888989),
              width: 103,
              height: 2,
            ),
            Container(
                width: 28,
                height: 28,
                decoration: BoxDecoration(
                  border: Border.all(
                    color: const Color(0xFFD3D3D3),
                    width: 2.0,
                  ),
                  shape: BoxShape.circle,
                  color: const Color(0xFFD3D3D3),
                ),
                child: const Center(
                  child: Text(
                    '3',
                    style: TextStyle(
                      color: Color(0xFF888989),
                      fontSize: 19,
                      fontWeight: FontWeight.w400,
                    ),
                  ),
                )),
          ],
        ),
        Row(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Container(
                margin: const EdgeInsets.only(top: 5),
                width: 86,
                child: Center(
                  child: Text(
                    stepOneText[selectedLanguage]!,
                    textAlign: TextAlign.center,
                    style: const TextStyle(
                      color: Color(0xFF232323),
                      fontSize: 16,
                      fontWeight: FontWeight.w400,
                    ),
                  ),
                )),
            Container(
                margin: const EdgeInsets.only(left: 58),
                child: Center(
                  child: Text(
                    stepTwoText[selectedLanguage]!,
                    style: const TextStyle(
                      color: Color(0xFF888989),
                      fontSize: 16,
                    ),
                  ),
                )),
            Container(
                margin: const EdgeInsets.only(
                  left: 80,
                ),
                child: Center(
                  child: Text(
                    stepThreeText[selectedLanguage]!,
                    textAlign: TextAlign.center,
                    overflow: TextOverflow.visible,
                    style: const TextStyle(
                      color: Color(0xFF888989),
                      fontSize: 16,
                    ),
                  ),
                )),
          ],
        ),
      ],
    ),
    SizedBox(height: isLandscape ? height / 5 : 0),
    Image.network(
      documentTypeValues[changeDocumentLanguage(documentType)]!['frontFramed']
          .toString(),
      width: 227,
      height: 165,
    ),
    SizedBox(height: isLandscape ? height / 5 : 0),
    Padding(
      padding: const EdgeInsets.symmetric(horizontal: 13),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Text(
            subTitleText[selectedLanguage]!,
            style: const TextStyle(
              color: textGreyLight,
              fontWeight: FontWeight.w600,
              fontSize: 25,
              letterSpacing: 0.5,
            ),
          ),
          const SizedBox(height: 26),
          Row(
            crossAxisAlignment: CrossAxisAlignment.baseline,
            textBaseline: TextBaseline.alphabetic,
            children: [
              Image.network(
                checkListIcon,
                width: 24,
                height: 24,
              ),
              const SizedBox(width: 5),
              Expanded(
                child: Text(
                  requirementsOneText[selectedLanguage]!,
                  style: const TextStyle(
                    color: textGreyLight,
                    fontWeight: FontWeight.w400,
                    fontSize: 18,
                    letterSpacing: 0.36,
                  ),
                ),
              ),
            ],
          ),
          const SizedBox(height: 19),
          Row(
            crossAxisAlignment: CrossAxisAlignment.baseline,
            textBaseline: TextBaseline.alphabetic,
            children: [
              Image.network(
                checkListIcon,
                width: 24,
                height: 24,
              ),
              const SizedBox(width: 5),
              Expanded(
                child: Text(
                  requirementsTwoText[selectedLanguage]!,
                  style: const TextStyle(
                    color: textGreyLight,
                    fontWeight: FontWeight.w400,
                    fontSize: 18,
                    letterSpacing: 0.36,
                  ),
                ),
              ),
            ],
          ),
          const SizedBox(height: 19),
          Row(
            crossAxisAlignment: CrossAxisAlignment.baseline,
            textBaseline: TextBaseline.alphabetic,
            children: [
              Image.network(
                checkListIcon,
                width: 24,
                height: 24,
              ),
              const SizedBox(width: 5),
              Expanded(
                child: Text(
                  requirementsThreeText[selectedLanguage]!,
                  style: const TextStyle(
                    color: textGreyLight,
                    fontWeight: FontWeight.w400,
                    fontSize: 18,
                    letterSpacing: 0.36,
                  ),
                ),
              ),
            ],
          ),
        ],
      ),
    ),
    SizedBox(height: isLandscape ? height / 5 : 0),
    Column(
      children: [
        Container(
          width: double.infinity,
          height: 62,
          margin: const EdgeInsets.only(bottom: 40),
          decoration: BoxDecoration(
            borderRadius: BorderRadius.circular(5),
            gradient: const LinearGradient(colors: buttonGradient),
          ),
          child: ElevatedButton(
            style: ElevatedButton.styleFrom(
              backgroundColor: Colors.transparent,
              shadowColor: Colors.transparent,
              shape: RoundedRectangleBorder(
                borderRadius: BorderRadius.circular(5),
              ),
            ),
            onPressed: () {
              Navigator.of(context).push(MaterialPageRoute(
                builder: (routeContext) => PreparePage(
                  documentType: documentType,
                ),
              ));
            },
            child: Text(
              buttonContent[selectedLanguage]!,
              style: const TextStyle(
                color: white,
                fontWeight: FontWeight.w500,
                fontSize: 16,
              ),
            ),
          ),
        ),
        sloganWidget,
        const SizedBox(
          height: 20,
        ),
      ],
    ),
  ];
}