Skip to content

Instantly share code, notes, and snippets.

import 'package:flutter/material.dart';
import 'custom_labeled_checkbox.dart';
class ParentChildCheckboxes extends StatefulWidget {
static const String routeName = 'parent-child-checkbox';
@override
_ParentChildCheckboxesState createState() => _ParentChildCheckboxesState();
}
@nishsvn-dev
nishsvn-dev / custom_labeled_checkbox.dart
Last active May 1, 2020 12:40
CustomLabeledCheckbox optimised for parent-child checkboxes
import 'package:flutter/material.dart';
enum CheckboxType {
Parent,
Child,
}
@immutable
class CustomLabeledCheckbox extends StatelessWidget {
const CustomLabeledCheckbox({