inspectionSummary function

dynamic inspectionSummary(
  1. dynamic context, {
  2. dynamic imageList1,
  3. dynamic imageList2,
  4. dynamic imageList3,
  5. dynamic imageList4,
  6. dynamic imageList5,
  7. dynamic imageList6,
  8. dynamic imageList7,
  9. dynamic onClose,
  10. dynamic onConfirm,
})

Implementation

inspectionSummary(context,
    {imageList1,
    imageList2,
    imageList3,
    imageList4,
    imageList5,
    imageList6,
    imageList7,
    onClose,
    onConfirm}) {
  return Padding(
    padding: const EdgeInsets.all(20.0),
    child: Column(
      children: [
        SizedBox(height: height(context) * 0.03),
        Center(
          child: Image.asset(
            'assets/images/checkout.png',
            width: width(context) * 0.2,
            package: 'mca_inspection_sdk',
          ),
        ),
        const Center(
          child: Padding(
            padding: EdgeInsets.all(10.0),
            child: Text(
              'Completed !',
              style: TextStyle(
                  fontSize: 22.0, fontWeight: FontWeight.w600, color: PRIMARY),
            ),
          ),
        ),
        const Padding(
          padding: EdgeInsets.fromLTRB(50, 10, 50, 10),
          child: Text(
              'Great! You have Completed \nInspection, would you like \nto submit?',
              style: TextStyle(height: 1.5, fontSize: 16),
              textAlign: TextAlign.center),
        ),
        const Text('Preview',
            style: TextStyle(
                height: 1.5, fontSize: 20, fontWeight: FontWeight.w700),
            textAlign: TextAlign.center),
        SizedBox(height: height(context) * 0.02),
        Column(children: [
          Row(
            children: [
              Expanded(child: imageList1),
              const SizedBox(width: 15),
              Expanded(child: imageList2),
            ],
          ),
          const SizedBox(height: 15),
          Row(
            children: [
              Expanded(child: imageList3),
              const SizedBox(width: 15),
              Expanded(child: imageList4),
            ],
          ),
          const SizedBox(height: 15),
          Row(
            children: [
              Expanded(child: imageList5),
              const SizedBox(width: 15),
              Expanded(child: imageList6),
            ],
          ),
          const SizedBox(height: 15),
          Row(
            children: [
              Expanded(child: imageList7),
              const SizedBox(width: 15),
              const Expanded(
                  child: SizedBox(
                width: 1,
                height: 3,
              )),
            ],
          ),
        ]),
        const SizedBox(height: 35),
        Row(
          children: [
            Expanded(
                child: closeButton(
                    text: 'Restart',
                    onTap: onClose,
                    color: WHITE,
                    textColor: PRIMARY)),
            const SizedBox(width: 20),
            Expanded(
                child: successButton(
                    text: 'Continue', onTap: onConfirm, color: PRIMARY)),
          ],
        ),
        const SizedBox(height: 35),
      ],
    ),
  );
}