content: import 'package:flutter/material.dart';
  import 'package:land_registration/constant/constants.dart';
  import '../constant/utils.dart';
  
  Widget landWid(isverified, area, address, price, isForSell, makeforSellFun) =>
      Container(
        padding: const EdgeInsets.all(15),
        width: 400,
        height: 400,
        decoration: BoxDecoration(
            boxShadow: const [
              BoxShadow(
                color: Colors.white10,
                offset: Offset(0.0, 1.0), //(x,y)
                blurRadius: 1.0,
              ),
            ],
            color: Colors.white10,
            borderRadius: const BorderRadius.all(Radius.circular(10)),
            border: Border.all()),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.start,
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Container(
              height: 200,
              width: 400,
              color: Colors.lightGreenAccent,
              child: Image.asset(
                'assets/landimg.jpg',
                fit: BoxFit.fill,
              ),
            ),
            // Image(
            //
            //   image: NetworkImage(
            //       'http://www.kerloguenursinghome.com/wp-content/uploads/2019/12/19038526ce9f8be4a8dba148da99ff77.jpg'),
            // ),
            const SizedBox(
              height: 10,
            ),
            Text(
              isverified ? 'Verified' : 'Not Yet Verified',
              style: const TextStyle(
                  fontWeight: FontWeight.bold, color: Colors.blueAccent),
            ),
            const SizedBox(
              height: 10,
            ),
            Text(
              area + ' Sq.Ft',
              style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 30),
            ),
            const SizedBox(
              height: 10,
            ),
            Text(
              address,
              style: const TextStyle(fontSize: 20),
            ),
            const SizedBox(
              height: 10,
            ),
            Text(
              'Price:' + price,
              style: const TextStyle(fontSize: 20),
            ),
            const SizedBox(
              height: 10,
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceEvenly,
              children: [
                isForSell
                    ? MaterialButton(
                        color: Colors.redAccent,
                        onPressed: null,
                        child: const Text('On Sell'),
                      )
                    : MaterialButton(
                        color: Colors.redAccent,
                        onPressed: isverified ? makeforSellFun : null,
                        child: const Text('Make it for Sell'),
                      ),
                MaterialButton(
                  color: Colors.blueAccent,
                  onPressed: () {},
                  child: const Text('View Details'),
                )
              ],
            )
          ],
        ),
      );
  Widget landWid2(isverified, area, address, price, isMyLand, isForSell,
          sendRequestFun, viewDetailsFun) =>
      Container(
        padding: const EdgeInsets.all(15),
        width: 400,
        height: 400,
        decoration: BoxDecoration(
            boxShadow: const [
              BoxShadow(
                color: Colors.white10,
                offset: Offset(0.0, 1.0), //(x,y)
                blurRadius: 1.0,
              ),
            ],
            color: Colors.white10,
            borderRadius: const BorderRadius.all(Radius.circular(10)),
            border: Border.all()),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.start,
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Container(
              height: 200,
              width: 400,
              color: Colors.lightGreenAccent,
              child: Image.asset(
                'assets/landimg.jpg',
                fit: BoxFit.fill,
              ),
            ),
            // Image(
            //
            //   image: NetworkImage(
            //       'http://www.kerloguenursinghome.com/wp-content/uploads/2019/12/19038526ce9f8be4a8dba148da99ff77.jpg'),
            // ),
            const SizedBox(
              height: 10,
            ),
            Text(
              isverified ? 'Verified' : 'Not Yet Verified',
              style: const TextStyle(
                  fontWeight: FontWeight.bold, color: Colors.blueAccent),
            ),
            const SizedBox(
              height: 10,
            ),
            Text(
              area + ' Sq.Ft',
              style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 30),
            ),
            const SizedBox(
              height: 10,
            ),
            Text(
              address,
              maxLines: 2,
              overflow: TextOverflow.ellipsis,
              style: const TextStyle(fontSize: 20),
            ),
            const SizedBox(
              height: 10,
            ),
            Text(
              'Price:' + price,
              style: const TextStyle(fontSize: 20),
            ),
            const SizedBox(
              height: 10,
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceEvenly,
              children: [
                isMyLand
                    ? MaterialButton(
                        color: Colors.redAccent,
                        onPressed: null,
                        child: const Text('Send Request To Buy'),
                      )
                    : MaterialButton(
                        color: Colors.redAccent,
                        onPressed: isForSell ? sendRequestFun : null,
                        child: isForSell
                            ? Text('Send Request To Buy')
                            : Text('Not for sell yet'),
                      ),
                MaterialButton(
                  color: Colors.blueAccent,
                  onPressed: viewDetailsFun,
                  child: const Text('View Details'),
                )
              ],
            )
          ],
        ),
      );
  
  Widget landWid3(
          owneraddress, area, address, price, propertyPID, surveyNumber, docu) =>
      Container(
        padding: const EdgeInsets.all(10),
        margin: const EdgeInsets.all(10),
        width: width,
        height: 400,
        decoration: BoxDecoration(
            boxShadow: const [
              BoxShadow(
                color: Colors.white10,
                offset: Offset(0.0, 1.0), //(x,y)
                blurRadius: 1.0,
              ),
            ],
            color: Colors.white10,
            borderRadius: const BorderRadius.all(Radius.circular(10)),
            border: Border.all()),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.start,
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            const Text(
              "Land Info",
              style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20),
            ),
            const SizedBox(
              height: 13,
            ),
            const Text(
              'Verified',
              style: TextStyle(
                  fontWeight: FontWeight.bold, color: Colors.blueAccent),
            ),
            const SizedBox(
              height: 13,
            ),
            textCustom("Owner Address:", ""),
            textCustom("", owneraddress),
            const SizedBox(
              height: 13,
            ),
            textCustom("Area : ", area + 'Sqft'),
            const SizedBox(
              height: 13,
            ),
            textCustom("PID : ", propertyPID),
            const SizedBox(
              height: 13,
            ),
            textCustom("Survey No. : ", surveyNumber),
            const SizedBox(
              height: 13,
            ),
            textCustom("Address : ", address),
            const SizedBox(
              height: 13,
            ),
            textCustom("Price : ", price),
            const SizedBox(
              height: 13,
            ),
            TextButton(
              onPressed: () {
                launchUrl(docu.toString());
              },
              child: const Text(
                '  View Document',
                style: TextStyle(color: Colors.blue),
              ),
            ),
          ],
        ),
      );
  
  Widget textCustom(text1, text2) => Row(
        children: [
          Text(
            text1,
            style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
          ),
          Text(
            text2,
            maxLines: 1,
            overflow: TextOverflow.ellipsis,
            style: const TextStyle(fontSize: 20),
          )
        ],
      );
  