@@ -10,19 +10,19 @@ class FeaturesChoicesGrouped extends StatefulWidget {
1010class _FeaturesChoicesGroupedState extends State <FeaturesChoicesGrouped > {
1111
1212 String _smartphone = '' ;
13- List _car = [];
13+ List < String > _car = [];
1414
1515 @override
1616 Widget build (BuildContext context) {
1717 return Column (
1818 children: < Widget > [
1919 Container (height: 7 ),
20- SmartSelect .single (
20+ SmartSelect < String > .single (
2121 title: 'Smartphones' ,
2222 placeholder: 'Choose one' ,
2323 isTwoLine: true ,
2424 value: _smartphone,
25- options: SmartSelectOption .listFrom <Map , String >(
25+ options: SmartSelectOption .listFrom <String , Map >(
2626 source: options.smartphones,
2727 value: (index, item) => item['id' ],
2828 title: (index, item) => item['name' ],
@@ -36,12 +36,12 @@ class _FeaturesChoicesGroupedState extends State<FeaturesChoicesGrouped> {
3636 onChange: (val) => setState (() => _smartphone = val),
3737 ),
3838 Divider (indent: 20 ),
39- SmartSelect .multiple (
39+ SmartSelect < String > .multiple (
4040 title: 'Cars' ,
4141 placeholder: 'Choose one or more' ,
4242 isTwoLine: true ,
4343 value: _car,
44- options: SmartSelectOption .listFrom <Map , String >(
44+ options: SmartSelectOption .listFrom <String , Map >(
4545 source: options.cars,
4646 value: (index, item) => item['value' ],
4747 title: (index, item) => item['title' ],
0 commit comments