proButton static method

Widget proButton({
  1. Color color = Colors.purple,
})

Implementation

static Widget proButton({Color color = Colors.purple}) {
  return !PurchaseHelper.isPremium
      ? GestureDetector(
          onTap: () {
            PurchaseHelper.showPaywall(analyticKey: "PRO");
            logEvent("pro_button_clicked");
          },
          child: Padding(
            padding: const EdgeInsets.all(8.0),
            child: Container(
              padding: EdgeInsets.symmetric(horizontal: 8),
              decoration: BoxDecoration(
                border: Border.all(
                  color: color, // Set the border color to yellow
                  width: 4.0, // Set the border width
                ),
                borderRadius:
                    BorderRadius.circular(20.0), // Set the border radius
              ),
              child: Row(
                children: [
                  Icon(
                    Icons.diamond_rounded,
                    size: 20,
                    color: color,
                  ),
                  Text(
                    'PRO',
                    style: TextStyle(
                        fontSize: 14,
                        fontWeight: FontWeight.w900,
                        color: color),
                  ),
                ],
              ),
            ),
          ),
        )
      : SizedBox();
}