highlightedResultView function

dynamic highlightedResultView(
  1. dynamic key,
  2. dynamic value
)

Implementation

highlightedResultView(key, value) {
  return Material(
      elevation: radius_1,
      color: circleBgColors,
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(radius_8),
      ),
      child: Padding(
        padding: const EdgeInsets.all(16.0),
        child: Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: [
            Flexible(
                flex: 1,
                fit: FlexFit.tight,
                child: commonText(
                  key,
                  align: TextAlign.start,
                  style: GoogleFonts.inter(
                      textStyle: TextStyle(
                    fontSize: margin_16,
                    color: greyTextColor,
                    overflow: TextOverflow.ellipsis,
                  )),
                )),
            Expanded(
                child: commonText(value,
                    maxLines: 3,
                    align: TextAlign.end,
                    style: GoogleFonts.inter(
                        textStyle: TextStyle(
                      fontSize: margin_16,
                      color: sampleIDColor,
                      fontWeight: FontWeight.w500,
                      overflow: TextOverflow.ellipsis,
                    ))))
          ],
        ),
      ));
}