Skip to content

Commit

Permalink
Fix for #23 (#30)
Browse files Browse the repository at this point in the history
* Fix for #23

* Added missing generic types
  • Loading branch information
kika authored and AbdulRahmanAlHamali committed Jan 25, 2019
1 parent bdf97ab commit 506aac6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/flutter_typeahead.dart
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class TypeAheadFormField<T> extends FormField<String> {
});

@override
_TypeAheadFormFieldState<T> createState() => _TypeAheadFormFieldState();
_TypeAheadFormFieldState<T> createState() => _TypeAheadFormFieldState<T>();
}

class _TypeAheadFormFieldState<T> extends FormFieldState<String> {
Expand Down Expand Up @@ -616,7 +616,7 @@ class TypeAheadField<T> extends StatefulWidget {
super(key: key);

@override
_TypeAheadFieldState createState() => _TypeAheadFieldState();
_TypeAheadFieldState<T> createState() => _TypeAheadFieldState<T>();
}

class _TypeAheadFieldState<T> extends State<TypeAheadField<T>>
Expand Down Expand Up @@ -769,8 +769,8 @@ class _SuggestionsList<T> extends StatefulWidget {
final TextEditingController controller;
final bool getImmediateSuggestions;
final SuggestionSelectionCallback<T> onSuggestionSelected;
final SuggestionsCallback suggestionsCallback;
final ItemBuilder itemBuilder;
final SuggestionsCallback<T> suggestionsCallback;
final ItemBuilder<T> itemBuilder;
final SuggestionsBoxDecoration decoration;
final Duration debounceDuration;
final WidgetBuilder loadingBuilder;
Expand Down Expand Up @@ -800,7 +800,7 @@ class _SuggestionsList<T> extends StatefulWidget {
});

@override
_SuggestionsListState createState() => _SuggestionsListState();
_SuggestionsListState<T> createState() => _SuggestionsListState<T>();
}

class _SuggestionsListState<T> extends State<_SuggestionsList<T>>
Expand Down

0 comments on commit 506aac6

Please sign in to comment.