buildFields method

  1. @override
Widget buildFields(
  1. BuildContext context
)
override

Converts the fields into a Widget that will be rendered in the settings side panel.

Implementation

@override
Widget buildFields(BuildContext context) {
  return Setting(
    name: name,
    child: Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: fields
          .map(
            (field) => Padding(
              padding: const EdgeInsets.symmetric(
                vertical: 4.0,
              ),
              child: field.build(context, groupName),
            ),
          )
          .toList(),
    ),
  );
}