Hi there,
First of all - thanks for this excellent flutter package. I have a possible issue / question:
I want to have an Arc
, on top of the widget and this is basically the code I use to make it:
@override
Widget build(BuildContext context) {
final double width = MediaQuery.of(context).size.width;
return Padding(
padding: const EdgeInsets.only(top: 8.0),
child: Arc(
height: 50,
clipShadows: [ClipShadow(color: Colors.black)],
edge: Edge.TOP,
arcType: ArcType.CONVEX,
child: Container(
width: width * 0.62,
child: Card(
child: Column(
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
SizedBox(width: width * 0.6, child: WeightScaleWidget()),
],
),
],
),
),
),
),
);
}
and the result is:
as you can see the arc peak has one unnecessary shadow (between two red lines), which actually makes the arc to look not exactly as an arc.
If however, arcType: ArcType.CONVEY
, the arc looks as it should. See below: