30 lines
751 B
Dart
30 lines
751 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class ContentControl extends StatelessWidget {
|
|
final bool showSpaceRequirements;
|
|
final ValueChanged<bool> 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'),
|
|
]);
|
|
}
|
|
}
|