封装组件可以对点击做高亮交互
参数说明
- onTap 点击事件(必选)
- color 背景颜色(可选)
- hignLightColor 点击高亮背景颜色(可选)
- padding 内边距(可选)
- margin 外边距(可选)
- radius 圆角(可选)
- child 子组件 (必选) ```dart class ClickView extends StatefulWidget { final Function onTap; final Widget child; final Color color; final Color highLightColor; final EdgeInsetsGeometry padding; final EdgeInsetsGeometry margin; final double radius; ClickView({Key key, @require this.onTap, @require this.child, this.color=Colors.transparent, this.highLightColor=const Color(0x22000000), this.padding=const EdgeInsets.all(0), this.margin=const EdgeInsets.all(0), this.radius=0}) : super(key: key); @override ClickViewState createState() => ClickViewState(); }
class ClickViewState extends State
}
}
```