To make the checkmark inside the circle a little bit smaller, you can adjust the Icon widget's properties. Specifically, you can reduce the size of the icon or use a smaller icon variant. Here’s how you can modify your code to achieve this:
dart
_filledFormWidget(BuildContext context) {
return Row(
children: [
Spacer(),
Padding(
padding: const EdgeInsets.only(left: 16.0),
child: Text(buttonText, style: const TextStyle(color: Colors.black, fontSize: 16)),
),
Spacer(),
Padding(
padding: const EdgeInsets.only(right: 2.0),
child: Icon(
Icons.check_circle_outline, // Alternatively, use check_circle_outline for a thinner checkmark
size: 28, // Reduce the size of the icon
color: Colors.black,
),
),
],
);
}
Explanation:
Icon Size: Reduced the size from 32 to 28 to make the icon smaller.
Icon Variant: Changed the icon from Icons.check_circle to Icons.check_circle_outline. The outline version typically has a thinner checkmark, which might give the appearance of being smaller.
If you want to keep the filled check_circle but just make the checkmark itself smaller, you might need to use a custom icon or a package that allows more control over the icon's internal elements. However, the above solution should work for most cases where a slight reduction in size is needed.
User
no i need to set circle size and check inside circle differently by my own view
Assistant
If you need to set the circle size and the checkmark size independently, you can achieve this by using a custom widget or stacking two widgets together. Here's an example using Stack and Center to place a smaller checkmark inside a larger circle: