searchItem function

Widget searchItem(
  1. dynamic fontSize,
  2. String propName,
  3. String propAddress
)

Implementation

Widget searchItem(fontSize, String propName, String propAddress) {
  return Row(
    mainAxisAlignment: MainAxisAlignment.start,
    children: [
      Image.asset(
        "assets/images/restro2.png",
        height: 30,
        width: 30,
      ),
      const SizedBox(width: 10),
      Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Text(
            propName,
            style: TextStyle(fontSize: fontSize),
          ),
          Text(
            propAddress,
            style: const TextStyle(fontSize: 10),
          )
        ],
      ),
      const SizedBox(
        height: 20,
      )
    ],
  );
}