v0.0.2flutter_animated_reaction
Flutter 動畫反應是一個動畫反應覆蓋層(例如,Facebook、LinkedIn),可使用您自己的反應圖示(圖片/GIF)進行自訂。
34喜歡 25近 30 天下載130Pub 分數
AndroidiOSWebmacOSWindowsLinux
Ajoy-1704001/flutter_animated_reaction open-source repository details.
{"sdk":"flutter"}^4.1.0{"sdk":"flutter"}^2.0.0以下為英文專案原文快照,最新內容請造訪 GitHub。
Flutter Animated Reaction is an animated reaction overlay(Example: Facebook, LinkedIn) which can be customized using your own reaction icons(images/gifs). Wherever your reaction button is on the screen, this package helps you to pop up an animated reaction overlay at the right location on the screen with your preferred reactions icon.
https://visitcount.itsvg.in/api?id=Ajoy-1704001&label=Views%20Count&color=4&icon=5&pretty=true
animated
import 'package:flutter_animated_reaction/flutter_animated_reaction.dart';
For better understanding, you can see example application.
AnimatedFlutterReaction().showOverlay(context: context,
key: key,
onReaction: (val){
print(val);
});
| Parameter | Description |
|---|---|
| Key | Global Key used in the reaction button . It is used to find the renderBox and measure it's position. |
| reactions | List of all reaction icons which you want to show in the overlay.(Image/Gifs path) |
| onReaction(int) | It is triggered when any of the reaction is tapped |
| backgroundColor | It describes overlay background color |
| overlaySize | It specifies overlay width |
| iconSize | It can set the size of reaction icons. Default size is (45,45) |