项目作者: f2acode

项目描述 :
Awesome pricing cards for you Flutter project 😎
高级语言: Dart
项目地址: git://github.com/f2acode/pricing_cards.git
创建时间: 2021-04-30T00:10:13Z
项目社区:https://github.com/f2acode/pricing_cards

开源协议:MIT License

下载


Pricing cards

pub package GitHub license

Awesome pricing cards with custom style options for your flutter project.

You can give as much cards you want to this and personalize the style of each one.

Example

The example with all the parameters:

The code of this:

  1. Column(
  2. mainAxisAlignment: MainAxisAlignment.center,
  3. children: [
  4. PricingCards(
  5. pricingCards: [
  6. PricingCard(
  7. title: 'Monthly',
  8. price: '\$ 9.99',
  9. subPriceText: '\/mo',
  10. billedText: 'Billed monthly',
  11. onPress: () {
  12. // make your business
  13. },
  14. ),
  15. PricingCard(
  16. title: 'Monthly',
  17. price: '\$ 59.99',
  18. subPriceText: '\/mo',
  19. billedText: 'Billed anually',
  20. mainPricing: true,
  21. mainPricingHighlightText: 'Save money',
  22. onPress: () {
  23. // make your business
  24. },
  25. )
  26. ],
  27. ),
  28. SizedBox(height: 30),
  29. PricingCards(
  30. pricingCards: [
  31. PricingCard(
  32. title: 'Monthly',
  33. price: '\$ 9.99',
  34. subPriceText: '\/mo',
  35. billedText: 'Billed monthly',
  36. onPress: () {
  37. // make your business
  38. },
  39. cardColor: Colors.green,
  40. priceStyle: TextStyle(
  41. fontSize: 32,
  42. fontWeight: FontWeight.bold,
  43. color: Colors.white,
  44. ),
  45. titleStyle: TextStyle(
  46. fontSize: 16,
  47. color: Colors.white,
  48. ),
  49. billedTextStyle: TextStyle(
  50. fontSize: 12,
  51. color: Colors.white,
  52. ),
  53. subPriceStyle: TextStyle(
  54. fontSize: 12,
  55. color: Colors.white,
  56. ),
  57. cardBorder: RoundedRectangleBorder(
  58. side: BorderSide(color: Colors.red, width: 4.0),
  59. borderRadius: BorderRadius.circular(8.0),
  60. ),
  61. ),
  62. PricingCard(
  63. title: 'Monthly',
  64. price: '\$ 59.99',
  65. subPriceText: '\/mo',
  66. billedText: 'Billed anually',
  67. mainPricing: true,
  68. mainPricingHighlightText: 'Save money',
  69. onPress: () {
  70. // make your business
  71. },
  72. cardColor: Colors.blue,
  73. priceStyle: TextStyle(
  74. fontSize: 32,
  75. fontWeight: FontWeight.bold,
  76. color: Colors.white,
  77. ),
  78. titleStyle: TextStyle(
  79. fontSize: 16,
  80. color: Colors.white,
  81. ),
  82. billedTextStyle: TextStyle(
  83. fontSize: 12,
  84. color: Colors.white,
  85. ),
  86. subPriceStyle: TextStyle(
  87. fontSize: 12,
  88. color: Colors.white,
  89. ),
  90. cardBorder: RoundedRectangleBorder(
  91. side: BorderSide(color: Colors.red, width: 4.0),
  92. borderRadius: BorderRadius.circular(8.0),
  93. ),
  94. )
  95. ],
  96. ),
  97. ],
  98. )

Help this project

  • Give an 🌟 on Github;
  • Contributions are very welcome! ❤️