title: How can i print checkbox value on Text() Widget using Flutter
body: <p>Is there a way to print checkbox value in a Text widget Eg. I make two checkbox which have a value of POD and Prepaid i would like to print out the selected checkbox value on Text() Widget.</p>
  <p>Code:-</p>
  <pre><code>Padding(
    padding: const EdgeInsets.all(8.0),
    child: Row(
      children: [
        Checkbox(
          value: prepaidCheckBoxValue,
          shape: const CircleBorder(),
          checkColor: Colors.white,
          onChanged: (value) {
            prepaidCheckBoxValue = !prepaidCheckBoxValue;
            //print(prepaidCheckBoxValue);
            setState(() {});
          },
        ),
        const Text(
          'Prepaid',
          style: TextStyle(
            fontSize: 20.0,
          ),
        ),
        const SizedBox(
          width: 30.0,
        ),
        Checkbox(
          value: podCheckBoxValue,
          shape: const CircleBorder(),
          checkColor: Colors.white,
          onChanged: (value) {
            podCheckBoxValue = !podCheckBoxValue;
            setState(() {});
            //print(value);
          },
        ),
        const Text(
          'Pay on Delivery',
          style: TextStyle(
            fontSize: 20.0,
          ),
        ),
      ],
    ),
  ),
  </code></pre>
  <p><a href="https://i.stack.imgur.com/qZiX2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qZiX2.png" alt="Image" /></a></p>