You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class DropDownFormField extends FormField {
final String titleText;
final String hintText;
final bool required;
final String errorText;
final dynamic value;
final List dataSource;
final String textField;
final String valueField;
final Function onChanged;
final bool filled;
final EdgeInsets contentPadding;
`library dropdown_formfield;
import 'package:flutter/material.dart';
class DropDownFormField extends FormField {
final String titleText;
final String hintText;
final bool required;
final String errorText;
final dynamic value;
final List dataSource;
final String textField;
final String valueField;
final Function onChanged;
final bool filled;
final EdgeInsets contentPadding;
DropDownFormField(
{FormFieldSetter onSaved,
FormFieldValidator validator,
bool autovalidate = false,
this.titleText = 'Title',
this.hintText = 'Select one option',
this.required = false,
this.errorText = 'Please select one option',
this.value,
this.dataSource,
this.textField,
this.valueField,
this.onChanged,
this.filled = true,
this.contentPadding = const EdgeInsets.fromLTRB(12, 12, 8, 0)})
: super(
onSaved: onSaved,
validator: validator,
autovalidate: autovalidate,
initialValue: value == '' ? null : value,
builder: (FormFieldState state) {
return Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
InputDecorator(
}
`
The text was updated successfully, but these errors were encountered: