shareButton method

Widget shareButton(
  1. String btnName,
  2. String lottieAsset,
  3. double width,
  4. double height,
)

Implementation

Widget shareButton(
    String btnName, String lottieAsset, double width, double height) {
  return Container(
      height: 40,
      width: 110,
      padding: const EdgeInsets.all(4),
      decoration: BoxDecoration(
        color: Colors.white,
        borderRadius: BorderRadius.all(Radius.circular(10)),
      ),
      child: Row(
        mainAxisSize: MainAxisSize.min,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Lottie.asset(
              fit: BoxFit.fitWidth,
              animate: true,
              height: height,
              width: width,
              lottieAsset,
              package: 'petro_sdk_package'),
          WidgetUtil().horizontalSpace(4),
          Text(
            btnName,
            style: const TextStyle(color: Colors.black, fontSize: 10),
          )
        ],
      ));
}