Paywall constructor
Paywall(
- String name,
- String image,
- String title,
- List<
String> features, - List<
String> items, { - Color btnColor = Colors.blue,
- Color selectedColor = const Color.fromARGB(255, 95, 171, 247),
- Color checkColor = Colors.green,
- Color closeColor = Colors.grey,
- Color restoreColor = Colors.grey,
- int selectedIndex = 0,
- bool showInfoLink = false,
- String infoText = "",
- bool darkMode = false,
Implementation
Paywall(
this.name,
this.image,
this.title,
this.features,
this.items, {
this.btnColor = Colors.blue,
this.selectedColor = const Color.fromARGB(255, 95, 171, 247),
this.checkColor = Colors.green,
this.closeColor = Colors.grey,
this.restoreColor = Colors.grey,
this.selectedIndex = 0,
this.showInfoLink = false,
this.infoText = "",
this.darkMode = false,
}) {
bgColor = darkMode ? CupertinoColors.black : CupertinoColors.white;
textColor = darkMode ? CupertinoColors.white : CupertinoColors.black;
}