missing files
This commit is contained in:
@@ -4,10 +4,11 @@ class SubDropdownInputWidget extends StatefulWidget {
|
||||
String subkey;
|
||||
double width;
|
||||
bool empty;
|
||||
String? initialValue;
|
||||
List<DropdownMenuItem<String>> dropdownMenuEntries = [];
|
||||
void Function(String?)? change = (value) {};
|
||||
SubDropdownInputWidget ({ Key? key, required this.dropdownMenuEntries,
|
||||
required this.subkey, required this.width, required this.empty, required this.change }): super(key: key);
|
||||
SubDropdownInputWidget ({ super.key, required this.dropdownMenuEntries, this.initialValue,
|
||||
required this.subkey, required this.width, required this.empty, required this.change });
|
||||
@override SubDropdownInputWidgetState createState() => SubDropdownInputWidgetState();
|
||||
}
|
||||
class SubDropdownInputWidgetState extends State<SubDropdownInputWidget> {
|
||||
@@ -17,9 +18,11 @@ class SubDropdownInputWidgetState extends State<SubDropdownInputWidget> {
|
||||
child: Container( margin: EdgeInsets.only(top: widget.empty ? 0 : 15),
|
||||
width: widget.width, height: 30,
|
||||
child: DropdownButtonFormField(
|
||||
isExpanded: true,
|
||||
items: widget.dropdownMenuEntries,
|
||||
value: widget.initialValue,
|
||||
onChanged: widget.change,
|
||||
style: const TextStyle(fontSize: 12),
|
||||
style: const TextStyle(fontSize: 12,color: Colors.black, overflow: TextOverflow.ellipsis),
|
||||
decoration: InputDecoration(
|
||||
hintText: "select ${widget.subkey}...",
|
||||
fillColor: Colors.white,
|
||||
|
||||
Reference in New Issue
Block a user