felangel / bloc

A predictable state management library that helps implement the BLoC design pattern
https://bloclibrary.dev
MIT License
11.8k stars 3.39k forks source link

Error with Firabase login transformEvents #1016

Closed MatyasK closed 4 years ago

MatyasK commented 4 years ago

I'm following the Firabase login example, but I have an error in my bloc files. image

and my imports are:

import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:meta/meta.dart'; import 'package:ruhatar/helpers/validators.dart'; import 'package:ruhatar/repositories/user_repository.dart'; import 'bloc.dart'; import 'dart:async'; import 'package:rxdart/rxdart.dart'; I can't find any difference to the example and the issue exist in login, authentication and register blocs.

felangel commented 4 years ago

Hi @MatyasK 👋 Thanks for opening an issue!

What version of bloc and flutter_bloc are you using?

MatyasK commented 4 years ago

I have these versions: dependencies: flutter: sdk: flutter firebase_core: ^0.4.0+8 google_sign_in: ^4.0.0 firebase_auth: ^0.15.0+1 flutter_bloc: ^3.2.0 equatable: ^1.0.0 meta: ^1.1.6 rxdart: ^0.23.1 font_awesome_flutter: ^8.4.0

Thank you very much for the quick response :)

MatyasK commented 4 years ago

I fixed it by adding the latest version from github manually, but the correct version is available from pub.dev?

felangel commented 4 years ago

@MatyasK the documentation is using the dev release so you can updated your pubspec.yaml to

bloc: 4.0.0-dev.1
flutter_bloc: 4.0.0-dev.1
felangel commented 4 years ago

Closing for now and sorry for the inconvenience! Let me know if you have any other questions 👍

MatyasK commented 4 years ago

Thank you very much! :)