bodyContent method

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

Implementation

List<Widget> bodyContent(String documentType, double height, bool isLandscape,
    BuildContext context, String selectedLanguage) {
  return [
    Padding(
      padding: const EdgeInsets.symmetric(horizontal: 5),
      child: Text(
        titleText[selectedLanguage]!,
        style: const TextStyle(
          color: textBlue,
          fontWeight: FontWeight.w600,
          letterSpacing: 0.25,
          fontSize: 25,
        ),
      ),
    ),
    SizedBox(height: isLandscape ? height / 3 : 0),
    Padding(
      padding: const EdgeInsets.symmetric(horizontal: 6),
      child: Container(
        height: 80,
        padding: const EdgeInsets.symmetric(vertical: 14),
        decoration: BoxDecoration(
          color: white,
          borderRadius: BorderRadius.circular(5),
        ),
        child: Row(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Image.network(
              documentTypeValues[changeDocumentLanguage(documentType)]![
                      'front']
                  .toString(),
              width: 77,
              height: 50,
            ),
            const SizedBox(width: 5),
            Text(
              documentType,
              style: const TextStyle(
                color: textGreyLight,
                fontWeight: FontWeight.w500,
                letterSpacing: 0.18,
                fontSize: 18,
              ),
            )
          ],
        ),
      ),
    ),
    SizedBox(height: isLandscape ? height / 3 : 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) => const IdVerificationPage(),
              ));
            },
            child: Text(
              buttonContent[selectedLanguage]!,
              style: const TextStyle(
                color: white,
                fontWeight: FontWeight.w500,
                fontSize: 16,
              ),
            ),
          ),
        ),
        const SizedBox(height: 30),
        sloganWidget,
        const SizedBox(height: 30)
      ],
    ),
  ];
}