import 'package:flutter/material.dart'; class ContentControl extends StatelessWidget { final bool showSpaceRequirements; final ValueChanged onValueChanged; ContentControl({super.key, required this.showSpaceRequirements, required this.onValueChanged, }); @override Widget build(BuildContext context) { return Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ Text('a'), Column( children: [ Text('Platzbedarf ausblenden'), Checkbox( value: showSpaceRequirements, onChanged: (value) => onValueChanged(value!), ), ]), Text('c'), ]); } }