Update server settings page

This commit is contained in:
2024-01-19 19:15:19 +08:00
parent cd0c49b86e
commit a448a171a3
4 changed files with 232 additions and 12 deletions

View File

@@ -0,0 +1,30 @@
import 'package:flutter/material.dart';
class LabeledCheckbox extends StatelessWidget {
const LabeledCheckbox({
Key? key,
required this.label,
required this.value,
required this.onChanged,
}) : super(key: key);
final Text label;
final bool value;
final ValueChanged<bool?>? onChanged;
@override
Widget build(BuildContext context) {
return InkWell(
onTap: () => onChanged?.call(!value),
child: Row(
children: [
Checkbox(
value: value,
onChanged: onChanged,
),
Expanded(child: label),
],
),
);
}
}