Widget nikoCheck2(WidgetRef ref,
{required value, required String label, fnc, double? width}) {
return TextButton(
onPressed: () {
fnc();
Future.delayed(const Duration(milliseconds: 100), () {
});
},
child: Row(mainAxisAlignment: MainAxisAlignment.start, children: [
SizedBox(
height: 26.0,
width: 26.0,
child: Checkbox(
key: UniqueKey(),
value: value,
onChanged: (value) async {
fnc();
Future.delayed(const Duration(milliseconds: 100), () {
});
}
)
),
const SizedBox(width: 10.0),
SizedBox(
width: (width ?? 20.0),
child: Text(label, style: const TextStyle(fontSize: 18))),
]),
);
}