A Decoration that generates an arrow shape
import 'package:arrow_decoration/arrow_decoration.dart';
Here is a minimalist example.
Container(
width: 200,
height: 200,
decoration: ArrowDecoration(
bgColor: Colors.pink,
lineColor: Colors.green,
lineWidth: 10,
borderRadius: BorderRadius.circular(10),
arrowSize: const Size(50, 50),
),
)
The library also provides ArrowClipper
and arrowPath()
for flexible use.
Check example for more.