buildFields method

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

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,
    trailing: const ExperimentalBadge(),
    child: Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: fields
          .map(
            (field) => Padding(
              padding: const EdgeInsets.symmetric(
                vertical: 4.0,
              ),
              child: field.build(context, groupName),
            ),
          )
          .toList(),
    ),
  );
}