import 'package:flutter/material.dart'; class PrimaryCheckbox extends StatelessWidget { final String text; final bool initialValue; final Function(bool) onChanged; const PrimaryCheckbox({ Key? key, required this.text, required this.initialValue, required this.onChanged, }) : super(key: key); @override Widget build(BuildContext context) { return CheckboxListTile( title: Text( text, style: const TextStyle(fontSize: 15), ), value: initialValue, onChanged: (value) { onChanged(value!); }, ); } }