footer method

Widget footer()

Implementation

Widget footer() {
  return Container(
    height: 160,
    width: double.maxFinite,
    padding: const EdgeInsets.all(24),
    decoration: const BoxDecoration(
      color: Colors.white,
      borderRadius: BorderRadius.only(
        topLeft: Radius.circular(12),
        topRight: Radius.circular(12),
      ),
    ),
    clipBehavior: Clip.hardEdge,
    child: Column(
      children: [
        Padding(
          padding: const EdgeInsets.only(bottom: 16),
          child: Text(
            widget.type,
            // style: textBody2(color: Colors.grey),
            textAlign: TextAlign.center,
          ),
        ),
        Padding(
          padding: const EdgeInsets.only(bottom: 12),
          child: Row(
            mainAxisSize: MainAxisSize.min,
            children: [
              InkWell(
                onTap: () async {
                  try {
                    // Ensure that the camera is initialized.
                    await _initializeControllerFuture;

                    // Attempt to take a picture and then get the location
                    // where the image file is saved.
                    final image = await _controller.takePicture();
                    // var cropped = await cropImage(image.path);
                    // if (cropped != '') {
                    // Get.back(result: {
                    //   'result': true,
                    //   // 'file': cropped,
                    //   'file': image.path,
                    // });
                    // }
                  } catch (e) {
                    // If an error occurs, log the error to the console.
                    // print(e);
                  }
                },
                borderRadius: BorderRadius.circular(20),
                child: Container(
                  padding: const EdgeInsets.all(8),
                  decoration: BoxDecoration(
                    // color: AppTheme.primaryButtonBgColor,
                    borderRadius: BorderRadius.circular(20),
                  ),
                  child: const Center(
                    child: Icon(
                      Icons.camera_alt_outlined,
                      color: Colors.white,
                    ),
                  ),
                ),
              ),
            ],
          ),
        )
      ],
    ),
  );
}