I need to create UI for a query builder. I want to do something like this

The problem is that I have no idea how to create the And/Or operator "brackets".
@override
Widget build(BuildContext context) {
return Column(
children: [
Row(
children: [
Operator(),
Column(
children: childFiltersAndGroups,
),
],
),
Actions(...),
],
);
}
Could someone guide me on how to implement the Operator widget please? I don't need help with the rest of the stuff.
