Compiler errors in flutter 3.16.0
hunterino opened this issue · 0 comments
hunterino commented
Reproduction steps:
Created a new project
Added flutter_form_bloc
flutter pub add flutter_form_bloc
copied example from pub.dev
attempted to run the application for mac_os, and web.
Flutter doctor Results
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.0, on macOS 14.1.1 23B81 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
[✓] VS Code (version 1.84.2)
[✓] Connected device (2 available)
[✓] Network resources
Error Log
../../../.pub-cache/hosted/pub.dev/flutter_form_bloc-0.31.0/lib/src/form_bloc_listener.dart:6:9: Error: Type 'FormBlocState' can't use itself as a bound.
Try breaking the cycle by removing at least on of the 'extends' clauses in the cycle.
FormBlocState extends form_bloc
^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/flutter_form_bloc-0.31.0/lib/src/form_bloc_listener.dart:14:9: Error: Type 'FormBloc' can't use itself as a bound.
Try breaking the cycle by removing at least on of the 'extends' clauses in the cycle.
FormBloc extends form_bloc.FormBloc<SuccessResponse, ErrorResponse>,
^^^^^^^^
../../../.pub-cache/hosted/pub.dev/flutter_form_bloc-0.31.0/lib/src/form_bloc_listener.dart:17:13: Error: Type argument 'FormBloc' doesn't conform to the bound 'StateStreamable<S>' of the type variable 'B' on 'BlocListener'.
- 'StateStreamable' is from 'package:bloc/src/bloc.dart' ('../../../.pub-cache/hosted/pub.dev/bloc-8.1.2/lib/src/bloc.dart').
Try changing type arguments so that they conform to the bounds.
extends BlocListener<FormBloc,
^
../../../.pub-cache/hosted/pub.dev/flutter_bloc-8.1.3/lib/src/bloc_listener.dart:76:20: Context: This is the type variable whose bound isn't conformed to.
class BlocListener<B extends StateStreamable<S>, S>
^
Target kernel_snapshot failed: Exception
Command PhaseScriptExecution failed with a nonzero exit code
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')
** BUILD FAILED **
Exception: Build process failed