flutter-paginated-listview-tutorial icon indicating copy to clipboard operation
flutter-paginated-listview-tutorial copied to clipboard

Error: No named parameter with the name 'seedValue'.

Open pmcarlos opened this issue 6 years ago • 3 comments

Hi I am having this error running the app, I ran the code from your repository and also my code What could be happening? I/flutter ( 5857): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ I/flutter ( 5857): The following _CompileTimeError was thrown building Builder: I/flutter ( 5857): 'package:bloc/src/bloc.dart': error: line 24 pos 44: I/flutter ( 5857): file:///Users/pmcarlos/Flutter/.pub-cache/hosted/pub.dartlang.org/bloc-0.8.4/lib/src/bloc.dart:24:44: I/flutter ( 5857): Error: No named parameter with the name 'seedValue'. I/flutter ( 5857): _stateSubject = BehaviorSubject<State>(seedValue: initialState); I/flutter ( 5857): ^^^^^^^^^ I/flutter ( 5857): _stateSubject = BehaviorSubject<State>(seedValue: initialState);

pmcarlos avatar Mar 06 '19 18:03 pmcarlos

Hi, change version of flutter_bloc in pubspec.yaml to ^0.9.1

damadormoreno avatar Apr 04 '19 15:04 damadormoreno

Thanks this is work. I change version of flutter_bloc in pubspec.yaml to ^0.15.0

suniali avatar May 30 '19 08:05 suniali

Those did not work for me; will upload a new one in a bit.

UPDATE: Added and PR a fix that you can check here: https://github.com/almeta-io/flutter-paginated-listview-tutorial/pull/1

almeta-io avatar Nov 02 '19 21:11 almeta-io