search method

Widget search()

Implementation

Widget search() {
  return Padding(
    padding: EdgeInsets.only(
      top: 12 + AppBar().preferredSize.height,
      bottom: 20,
    ),
    child: SizedBox(
      height: 48,
      child: Row(
        children: [
          Expanded(
            child: TextField(
              onTap: () {
                showSheetMenuAll(autoFocus: true);
              },
              readOnly: true,
              decoration: InputDecoration(
                border: OutlineInputBorder(
                  borderRadius: BorderRadius.circular(16),
                  borderSide: BorderSide.none,
                ),
                filled: true,
                fillColor: Colors.grey.shade100,
                prefixIcon: Icon(
                  Icons.search,
                  color: Strings.primaryColor,
                  size: 20,
                ),
                hintText: 'Cari Pembayaran',
                hintStyle: textCaption(color: Colors.grey.shade400),
              ),
            ),
          ),
          Padding(
            padding: const EdgeInsets.symmetric(horizontal: 8),
            child: GestureDetector(
              onTap: () {},
              child: Container(
                color: Colors.white,
                child: Icon(
                  Icons.headphones_rounded,
                  color: Strings.primaryColor,
                ),
              ),
            ),
          ),
          GestureDetector(
            onTap: () {
              // Get.to(() => const NotificationScreen());
            },
            child: Container(
              color: Colors.white,
              child: Icon(
                Icons.notifications_outlined,
                color: Strings.primaryColor,
              ),
            ),
          ),
        ],
      ),
    ),
  );
}