This commit is contained in:
Felipe
2024-02-27 17:32:16 -05:00
parent 906ebb4330
commit a71fc9efb6
17 changed files with 1189 additions and 526 deletions
+28
View File
@@ -0,0 +1,28 @@
import 'package:flutter/material.dart';
class GeneralCheckbox extends StatelessWidget {
final String text;
final bool initialValue;
final Function(bool) onChanged;
const GeneralCheckbox({
super.key,
required this.text,
required this.initialValue,
required this.onChanged,
});
@override
Widget build(BuildContext context) {
return CheckboxListTile(
title: Text(
text,
style: const TextStyle(fontSize: 15),
),
value: initialValue,
onChanged: (value) {
onChanged(value!);
},
);
}
}