chow_touchables 0.0.2 chow_touchables: ^0.0.2 copied to clipboard
This package gives you access to the Touchableopacity widget. This Package uses the Inkwell to allow interaction and animated to opacity of the widget on touch events.
Chow Design Touchables #
Chow Design System Touchables
Usage #
import 'package:chow_touchables/chow_touchables.dart';
class ChowApp extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title:const Text('Chow Touchables'),),
TouchableOpacity(
onTap: () {},
onDoubleTap: () {},
onForcePressEnd: (details) {},
onLongPress: () {},
onScaleEnd: (details) {},
onPanDown: (details) {},
onHorizontalDragDown: (details) {},
onTapCancel: () {},
//you can access other methods
child: Container(
height: 50,
width: double.infinity,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: Theme.of(context).colorScheme.primary),
),
));
}
}
FAQs #
What is this? #
This package gives you access to the Touchableopacity widget. This Package uses the Inkwell to allow interaction and animated to opacity of the widget on touch events.