TechieBlossom / bloc_implementation

Implementing bloc pattern using flutter_bloc package
77 stars 32 forks source link

Compile Error #4

Closed pishguy closed 5 years ago

pishguy commented 5 years ago
Compiler message:
lib/bloc/player_listing_bloc.dart:16:46: Error: The argument type 'Duration' can't be assigned to the parameter type 'Stream<dynamic> Function(PlayerListingEvent)'.
 - 'Duration' is from 'dart:core'.
 - 'Stream' is from 'dart:async'.
 - 'PlayerListingEvent' is from 'package:bloc_implementation/bloc/player_listing_events.dart' ('lib/bloc/player_listing_events.dart').
Try changing the type of the parameter, or casting the argument to 'Stream<dynamic> Function(PlayerListingEvent)'.
        .transform(DebounceStreamTransformer(Duration(milliseconds: 250)));
                                             ^
file:///C:/Users/mahdi/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/bloc-0.8.4/lib/src/bloc.dart:24:44: Error: No named parameter with the name 'seedValue'.
    _stateSubject = BehaviorSubject<State>(seedValue: initialState);
                                           ^^^^^^^^^
file:///C:/Users/mahdi/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/rxdart-0.22.0/lib/src/subjects/behavior_subject.dart:49:11: Context: Found this candidate, but the arguments don't match.
  factory BehaviorSubject({
          ^
manisi commented 5 years ago

dependencies: rxdart: ">=0.18.1 <0.21.0"

PrateekSharma1712 commented 5 years ago

There are some changes when you update the flutter_bloc package. Please checkout stating minutes of https://youtu.be/V-kLc8Tb8FI