90 | Attribute Name |
91 | Default Value |
92 | Description |
93 |
94 | defaultIcon/defaultImage |
95 | Icons.favorite_border/"images/clap.png" |
96 | The default icon/image of the ClapFab button |
97 |
98 |
99 | filledIcon/filledImage |
100 | Icons.favorite/"images.clap.png" |
101 | The filled icon/image after clapping of the ClapFab button |
102 |
103 |
104 | defaultIconColor/defaultImageColor |
105 | Colors.blue |
106 | The color of default icon/image of the ClapFab button |
107 |
108 |
109 | filledIconColor/defaultImageColor |
110 | Colors.blue |
111 | The filled color of icon/image after clapping of the ClapFab button |
112 |
113 |
114 | hasShadow |
115 | true |
116 | Whether to have shadow or not around ClapFab button |
117 |
118 |
119 | countCircleColor |
120 | Colors.blue |
121 | The color of count's circle background |
122 |
123 |
124 | countTextColor |
125 | Colors.white |
126 | The color of count's circle text |
127 |
128 |
129 | sparkleColor |
130 | Colors.blue |
131 | The color of sparkels around the count |
132 |
133 |
134 | shadowColor |
135 | Colors.blue |
136 | The color of the shadow |
137 |
138 |
139 | floatingOutlineColor |
140 | Colors.white |
141 | The outline color/ border color of the ClabFab button |
142 |
143 |
144 | floatingBgColor |
145 | Colors.white |
146 | The Background color of the ClabFab button |
147 |
148 |
149 | initCounter |
150 | 0 |
151 | Initial counter value |
152 |
153 |
154 | maxCounter |
155 | NOT_LIMIT_INCREMENT (-1) |
156 | Maximum counter value |
157 |
158 |
159 |
160 |
161 |
162 | ## Clap Count
163 | Use one of this properties `clapFabCallback` or `clapUpCallback` to get the clap count
164 | ```dart
165 | ClapFAB.image(
166 | clapFabCallback: (int counter)=>print(counter),
167 | );
168 |
169 | ```
170 | OR
171 | ```dart
172 | ClapFAB.icon(
173 | clapFabCallback: (int counter)=>print(counter),
174 | );
175 | ```
176 | OR
177 | ```dart
178 | ClapFAB.icon(
179 | clapUpCallback: (int counter)=>print(counter),
180 | );
181 | ```
182 |
183 | ## 📃 Inspired from
184 | * Medium Clap By Kartik Sharma [https://github.com/Kartik1607/FlutterUI/tree/master/MediumClapAnimation/medium_clap](https://github.com/Kartik1607/FlutterUI/tree/master/MediumClapAnimation/medium_clap)
185 | * MediumClap-Android By Wajahat Karim [https://github.com/wajahatkarim3/MediumClap-Android](https://github.com/wajahatkarim3/MediumClap-Android)
186 |
187 | ## 💰 Donations
188 |
189 | This project needs you! If you would like to support this project's further development, the creator of this project or the continuous maintenance of this project, feel free to donate. Your donation is highly appreciated (and I love food, coffee and beer). Thank you!
190 |
191 | **PayPal**
192 |
193 | * **[Donate $5](https://www.paypal.me/imthepk/5)**: Thank's for creating this project, here's a tea (or some juice) for you!
194 | * **[Donate $10](https://www.paypal.me/imthepk/10)**: Wow, I am stunned. Let me take you to the movies!
195 | * **[Donate $15](https://www.paypal.me/imthepk/15)**: I really appreciate your work, let's grab some lunch!
196 | * **[Donate $25](https://www.paypal.me/imthepk/25)**: That's some awesome stuff you did right there, dinner is on me!
197 | * **[Donate $50](https://www.paypal.me/imthepk/50)**: I really really want to support this project, great job!
198 | * **[Donate $100](https://www.paypal.me/imthepk/100)**: You are the man! This project saved me hours (if not days) of struggle and hard work, simply awesome!
199 | * **[Donate $2799](https://www.paypal.me/imthepk/2799)**: Go buddy, buy Macbook Pro for yourself!
200 |
201 | Of course, you can also choose what you want to donate, all donations are awesome!
202 |
203 | ## 👨 Developed By
204 |
205 | ```
206 | Pawan Kumar
207 | ```
208 | GDE (Google Developer Expert) for Flutter. Passionate #Flutter, #Android Developer. #Entrepreneur #YouTuber
209 |
210 |