-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error adding BlocProvider to app #3
Comments
It seems that probably the |
import 'package:africaprudential/services/corporate_actions.dart'; class CorporateActionBloc extends Bloc{ CorporateActionBloc(){ var corporateActionsController = BehaviorSubject(); void fetchCorporateData(){
} @OverRide } |
I did, there is my code. help me look into it please. |
which version of flutter are you using? |
Flutter (Channel stable, v1.2.1) |
If is it not much to ask, can you share the actual code having the error? |
import 'dart:async'; import 'package:africaprudential/bloc/corporate_actions_bloc.dart'; class BootstrapModel { final bool isFirstTime; class App extends StatefulWidget { final bool isFirstTime; static Future bootstrap() async {
} @OverRide class _AppState extends State { final MkScreenUtilConfig screenConfig = const MkScreenUtilConfig( @OverRide @OverRide |
Sorry, it's been a while and I hadn't the time to look more into this. Is this still an issue? If not I will close it next week. |
Compiler message:
lib/widgets/screens/dashboard/corporate_action/cooperate_action.dart:44:16: Error: Inferred type argument 'Type' doesn't conform to the bound 'Bloc' of the type variable 'T' on 'BlocProvider'.
Try specifying type arguments explicitly so that they conform to the bounds.
child: BlocProvider(
^
file:///Users/seven/development/flutter/.pub-cache/hosted/pub.dartlang.org/generic_bloc_provider-1.0.9/lib/src/bloc_provider.dart:6:20: Context: This is the type variable whose bound isn't conformed to.
class BlocProvider extends StatefulWidget {
^
The text was updated successfully, but these errors were encountered: