footer method

Widget footer(
  1. BuildContext context
)

Implementation

Widget footer(BuildContext context) {
  return Positioned(
    bottom: 0,
    child: Container(
      width: MediaQuery.of(context).size.width,
      height: 80,
      decoration: BoxDecoration(
        color: Colors.white,
        boxShadow: [
          BoxShadow(
            color: Colors.grey.withOpacity(0.5),
            spreadRadius: 5,
            blurRadius: 7,
            offset: const Offset(0, 3),
          ),
        ],
      ),
      padding: const EdgeInsets.only(
        left: 16,
        top: 12,
        right: 16,
        bottom: 24,
      ),
      child: Obx(
        () => controller.loading.value
            ? LoadingWidget()
            : GestureDetector(
                onTap: () {
                  Get.focusScope?.unfocus();
                  controller.getTransactionTrack();
                },
                child: Container(
                  decoration: BoxDecoration(
                    borderRadius: BorderRadius.circular(8),
                    color: Strings.primaryColor,
                  ),
                  child: Center(
                    child: Text(
                      'Cari Transaksi',
                      style: textSub2(color: Colors.white),
                    ),
                  ),
                ),
                // ),
              ),
      ),
    ),
  );
}