GSForm.singleSection constructor
GSForm.singleSection(
- BuildContext context, {
- Key? key,
- GSFormStyle? style,
- required List<
Widget> fields,
Implementation
GSForm.singleSection(BuildContext context, {Key? key, this.style, required this.fields}) : super(key: key) {
style ??= GSFormUtils.checkIfDarkModeEnabled(context)
? style ?? GSFormStyle.singleSectionFormDefaultDarkStyle
: GSFormStyle.singleSectionFormDefaultStyle;
sections = [
GSSection(
style: style,
sectionTitle: null,
fields: fields,
)
];
GSForm.multiSection(
context,
style: style,
sections: sections,
);
}