import 'package:flutter/material.dart'; class CustomDropdown extends StatelessWidget { List items = []; late VoidCallback onChanged; String? hint; CustomDropdown({ super.key, required items, required hint, }); @override Widget build(BuildContext context) { return SizedBox( width: 200, child: DropdownButton( items: ["Face to face", "phone"].map((String value) { return DropdownMenuItem( value: value, child: Text(value), ); }).toList(), onChanged: (value) { onChanged(); }, ), ); } }