3.4 - Flutter Checkbox and CheckboxListTile Widget - Flutter Crash Course

Поділитися
Вставка
  • Опубліковано 15 жов 2024

КОМЕНТАРІ • 19

  • @ithaershihabaion1634
    @ithaershihabaion1634 4 місяці тому

    Best Lectures i have ever seen.🥰

  • @mostafaemon5467
    @mostafaemon5467 11 місяців тому

    Your videos are extremely helpful. You are a good teacher. ❤

  • @akowechristian9520
    @akowechristian9520 Рік тому +1

    Great tutorials, thanks for taking your time to teach us.

  • @gigamgamboa828
    @gigamgamboa828 10 місяців тому

    got it. love you :P

  • @amcheachamroeun2716
    @amcheachamroeun2716 2 роки тому +2

    Can you provide source code to this part I cannot catch it. I am new to it and really like the way you are teaching.

    • @CodingwithT
      @CodingwithT  2 роки тому

      I'll try to share the code ASAP please mail me at support@codingwithT.com ☺️. Thank you for your kind words 😎🤠.

  • @sofsof2009
    @sofsof2009 Рік тому

    How to pass the data from the checkboxlistetile ?thanks for the tuto

    • @CodingwithT
      @CodingwithT  Рік тому +1

      There are multiple ways and also it depends weather you have one or multiple checkboxes.
      Here is the one way...
      Create a bool variable and make it true when onChanged Event called in Checkbox or to toggle you can use isChecked = !isChecked;
      With this you can easily toogle with values and pass the final value when form submitted

  • @mdnadimulislam4106
    @mdnadimulislam4106 2 роки тому +2

    Brother teach us to create vpn app a to z🙏🙏plz

    • @CodingwithT
      @CodingwithT  2 роки тому +3

      Great suggestion bro. Actually I'm about to start an e-commerce app but after that I'll create vpn app.
      No worries 🤠😊

  • @sale7680
    @sale7680 Рік тому

    Bravo

  • @Prakashkexlin
    @Prakashkexlin Рік тому

    sir y can u show entire code sir.......

  • @thecseacademy
    @thecseacademy Рік тому +1

    class CustomCheckBox extends StatefulWidget {
    final bool tristate, value;
    final String text;
    const CustomCheckBox(
    {Key? key,
    required this.tristate,
    required this.value,
    required this.text})
    : super(key: key);
    @override
    State createState() =>
    _CustomCheckBoxState(tristate, value, text);
    }
    class _CustomCheckBoxState extends State {
    final bool tristate;
    bool? checkBoxValue;
    final String text;
    _CustomCheckBoxState(this.tristate, this.checkBoxValue, this.text);
    @override
    Widget build(BuildContext context) {
    return Column(
    children: [
    Row(
    children: [
    Checkbox(
    tristate: tristate,
    value: checkBoxValue,
    onChanged: (value) {
    setState(() {
    checkBoxValue = value;
    });
    }),
    Text(
    text,
    style: const TextStyle(color: Colors.blueAccent),
    ),
    ],
    ),
    ],
    );
    }
    }
    here is my assignment @codingwithtea. Please share your feedback

    • @CodingwithT
      @CodingwithT  Рік тому

      I'll check that shortly. 😃✌️