package:http/src/multipart_file.dart: Context: The name of the enclosing class is 'MultipartRequestMultipartFile'.
../…/src/multipart_file.dart:1
: Error: Type 'MultipartFile' not found.
../…/src/multipart_file.dart:92
static Future<MultipartFile> fromPath(String field, String filePath,
^^^^^^^^^^^^^
: Error: Type 'MultipartFile' not found.
../…/src/multipart_request.dart:133
String _headerForFile(MultipartFile file) {
^^^^^^^^^^^^^
: Error: Type 'MultipartFile' not found.
../…/src/multipart_file_io.dart:13
Future<MultipartFile> multipartFileFromPath(String field, String filePath,
^^^^^^^^^^^^^
: Error: 'MultipartFile' isn't a type.
../…/src/multipart_request.dart:46
final files = <MultipartFile>[];
^^^^^^^^^^^^^
: Error: Method not found: 'MultipartFile'.
../…/src/multipart_file.dart:63
return MultipartFile(field, stream, value.length,
^^^^^^^^^^^^^
: Error: Undefined name 'MultipartFile'.
../…/src/multipart_file.dart:79
return MultipartFile.fromBytes(field, encoding.encode(value),
^^^^^^^^^^^^^
: Error: A value of type 'double' can't be assigned to a variable of type 'int'.
../…/src/multipart_request.dart:67
length += '--'.length +
^
: Error: 'MultipartFile' isn't a type.
../…/src/multipart_request.dart:133
String _headerForFile(MultipartFile file) {
^^^^^^^^^^^^^
: Error: Method not found: 'MultipartFile'.
../…/src/multipart_file_io.dart:19
return MultipartFile(field, stream, length,
^^^^^^^^^^^^^
Failed to package /Users/bookwarm/Programming/Flutter/chatApp.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
/Users/bookwarm/Programming/Flutter/chatApp/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'libPhoneNumber-iOS' from project 'Pods')
Result bundle written to path:
/var/folders/cz/5ph142ld41dfggj5brlf41h00000gn/T/flutter_tools.E4o277/flutter_ios_build_temp_dirVbiyqD/temporary_xcresult_bundle
just delete
/Users/xxxxxxx/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/
and run flutter packages get again on your project.
Related
When I run flutter I get the error as below, it says package doesn't exist, named parameter not defined like error. Even though I downgraded and upgraded flutter it is showing the same error please look and tell whether if any fixes available.
The plugins `firebase_auth, flutter_country_picker, geocoder` use a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
Launching lib/main_dev.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
Error: Couldn't resolve the package 'timekeeper' in 'package:timekeeper/support/colors.dart'.
Error: Couldn't resolve the package 'timekeeper' in 'package:timekeeper/support/strings.dart'.
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fancy_dialog-1.0.4/lib/fancy_dialog.dart:6:8: Error: Not found: 'package:timekeeper/support/colors.dart'
import 'package:timekeeper/support/colors.dart';
^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fancy_dialog-1.0.4/lib/fancy_dialog.dart:7:8: Error: Not found: 'package:timekeeper/support/strings.dart'
import 'package:timekeeper/support/strings.dart';
^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_plus-0.0.9/lib/src/text-dropdown.dart:4:8: Error: Not found: 'package:timekeeper/support/colors.dart'
import 'package:timekeeper/support/colors.dart';
^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fancy_dialog-1.0.4/lib/fancy_dialog.dart:29:24: Error: Undefined name 'MyColors'.
this.okColor = MyColors.kPrimaryColor,
^^^^^^^^
lib/service/push_notification_service.dart:30:26: Error: The getter 'Messaging' isn't defined for the class 'PushNotificationService'.
- 'PushNotificationService' is from 'package:spaid/service/push_notification_service.dart' ('lib/service/push_notification_service.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Messaging'.
final _messaging = Messaging.instance;
^^^^^^^^^
lib/service/push_notification_service.dart:47:10: Error: The method 'configure' isn't defined for the class 'FirebaseMessaging'.
- 'FirebaseMessaging' is from 'package:firebase_messaging/firebase_messaging.dart' ('../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-8.0.0-dev.15/lib/firebase_messaging.dart').
Try correcting the name to the name of an existing method, or defining a method named 'configure'.
_fcm.configure(
^^^^^^^^^
lib/ui/add_event_screen/add_event_screen_ui.dart:2654:29: Error: No named parameter with the name 'onClick'.
onClick: (value) {
^^^^^^^
../../Documents/flutter/packages/flutter/lib/src/material/time_picker.dart:1801:9: Context: Found this candidate, but the arguments don't match.
const TimePickerDialog({
^^^^^^^^^^^^^^^^
lib/ui/add_event_screen/add_event_screen_ui.dart:3702:31: Error: No named parameter with the name 'onClick'.
onClick: (value) {
^^^^^^^
../../Documents/flutter/packages/flutter/lib/src/material/time_picker.dart:1801:9: Context: Found this candidate, but the arguments don't match.
const TimePickerDialog({
^^^^^^^^^^^^^^^^
lib/ui/add_event_screen/add_event_screen_ui.dart:3901:31: Error: No named parameter with the name 'onClick'.
onClick: (value) {
^^^^^^^
../../Documents/flutter/packages/flutter/lib/src/material/time_picker.dart:1801:9: Context: Found this candidate, but the arguments don't match.
const TimePickerDialog({
^^^^^^^^^^^^^^^^
lib/ui/coaches_corner/home_Screen_provider.dart:179:31: Error: Can't declare 'GetDrillCategoryRequest' because it was already used in this scope.
GetDrillCategoryRequest GetDrillCategoryRequest =
^^^^^^^^^^^^^^^^^^^^^^^
lib/ui/coaches_corner/home_Screen_provider.dart:179:7: Context: Previous use of 'GetDrillCategoryRequest'.
GetDrillCategoryRequest GetDrillCategoryRequest =
^^^^^^^^^^^^^^^^^^^^^^^
lib/ui/coaches_corner/home_Screen_provider.dart:195:7: Error: 'GetDrillPlanRequest' isn't a type.
GetDrillPlanRequest GetDrillPlanRequest = GetDrillPlanRequest();
^^^^^^^^^^^^^^^^^^^
lib/ui/coaches_corner/home_Screen_provider.dart:195:27: Error: Can't declare 'GetDrillPlanRequest' because it was already used in this scope.
GetDrillPlanRequest GetDrillPlanRequest = GetDrillPlanRequest();
^^^^^^^^^^^^^^^^^^^
lib/ui/coaches_corner/home_Screen_provider.dart:195:7: Context: Previous use of 'GetDrillPlanRequest'.
GetDrillPlanRequest GetDrillPlanRequest = GetDrillPlanRequest();
^^^^^^^^^^^^^^^^^^^
lib/ui/coaches_corner/home_Screen_provider.dart:195:49: Error: The method 'GetDrillPlanRequest' isn't defined for the class 'HomeScreenProvider'.
- 'HomeScreenProvider' is from 'package:spaid/ui/coaches_corner/home_Screen_provider.dart' ('lib/ui/coaches_corner/home_Screen_provider.dart').
Try correcting the name to the name of an existing method, or defining a method named 'GetDrillPlanRequest'.
GetDrillPlanRequest GetDrillPlanRequest = GetDrillPlanRequest();
^^^^^^^^^^^^^^^^^^^
lib/ui/coaches_corner/home_Screen_provider.dart:196:7: Error: The getter 'GetDrillPlanRequest' isn't defined for the class 'HomeScreenProvider'.
- 'HomeScreenProvider' is from 'package:spaid/ui/coaches_corner/home_Screen_provider.dart' ('lib/ui/coaches_corner/home_Screen_provider.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'GetDrillPlanRequest'.
GetDrillPlanRequest.iDNo =
^^^^^^^^^^^^^^^^^^^
lib/ui/coaches_corner/home_Screen_provider.dart:200:49: Error: The getter 'GetDrillPlanRequest' isn't defined for the class 'HomeScreenProvider'.
- 'HomeScreenProvider' is from 'package:spaid/ui/coaches_corner/home_Screen_provider.dart' ('lib/ui/coaches_corner/home_Screen_provider.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'GetDrillPlanRequest'.
.post(Endpoints.getAllDrillUrl, data: GetDrillPlanRequest)
^^^^^^^^^^^^^^^^^^^
lib/ui/coaches_corner/home_Screen_provider.dart:219:26: Error: Can't declare 'GetDrillPlanResponse' because it was already used in this scope.
GetDrillPlanResponse GetDrillPlanResponse =
^^^^^^^^^^^^^^^^^^^^
lib/ui/coaches_corner/home_Screen_provider.dart:219:5: Context: Previous use of 'GetDrillPlanResponse'.
GetDrillPlanResponse GetDrillPlanResponse =
^^^^^^^^^^^^^^^^^^^^
lib/ui/coaches_corner/home_Screen_provider.dart:221:28: Error: A value of type 'Type' can't be assigned to a variable of type 'GetDrillPlanResponse'.
- 'Type' is from 'dart:core'.
- 'GetDrillPlanResponse' is from 'package:spaid/model/response/getDrill_Plan_response/getDrill_plan_response.dart' ('lib/model/response/getDrill_Plan_response/getDrill_plan_response.dart').
getDrillPlanResponse = GetDrillPlanResponse;
^
lib/ui/coaches_corner/home_Screen_ui.dart:1196:49: Error: No named parameter with the name 'onClick'.
onClick: (value) {
^^^^^^^
../../Documents/flutter/packages/flutter/lib/src/material/time_picker.dart:1801:9: Context: Found this candidate, but the arguments don't match.
const TimePickerDialog({
^^^^^^^^^^^^^^^^
lib/ui/coaches_corner/home_Screen_ui.dart:1530:45: Error: No named parameter with the name 'onClick'.
onClick: (value) {
^^^^^^^
../../Documents/flutter/packages/flutter/lib/src/material/time_picker.dart:1801:9: Context: Found this candidate, but the arguments don't match.
const TimePickerDialog({
^^^^^^^^^^^^^^^^
lib/ui/edit_event_screen/edit_event_screen_ui.dart:2666:29: Error: No named parameter with the name 'onClick'.
onClick: (value) {
^^^^^^^
../../Documents/flutter/packages/flutter/lib/src/material/time_picker.dart:1801:9: Context: Found this candidate, but the arguments don't match.
const TimePickerDialog({
^^^^^^^^^^^^^^^^
lib/ui/edit_event_screen/edit_event_screen_ui.dart:3774:31: Error: No named parameter with the name 'onClick'.
onClick: (value) {
^^^^^^^
../../Documents/flutter/packages/flutter/lib/src/material/time_picker.dart:1801:9: Context: Found this candidate, but the arguments don't match.
const TimePickerDialog({
^^^^^^^^^^^^^^^^
lib/ui/edit_event_screen/edit_event_screen_ui.dart:3968:31: Error: No named parameter with the name 'onClick'.
onClick: (value) {
^^^^^^^
../../Documents/flutter/packages/flutter/lib/src/material/time_picker.dart:1801:9: Context: Found this candidate, but the arguments don't match.
const TimePickerDialog({
^^^^^^^^^^^^^^^^
lib/ui/home_screen/home_menu_screen/notification_preferences.dart:406:57: Error: No named parameter with the name 'onTap'.
onTap: (value) {
^^^^^
../../Documents/flutter/packages/flutter/lib/src/material/time_picker.dart:1801:9: Context: Found this candidate, but the arguments don't match.
const TimePickerDialog({
^^^^^^^^^^^^^^^^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.12/lib/src/link.dart:213:30: Error: The value 'null' can't be assigned to the parameter type 'BuildContext' because 'BuildContext' is not nullable.
- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/framework.dart').
pushRouteNameToFramework(null, routeName);
^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/lite_rolling_switch-1.0.0/lib/lite_rolling_switch.dart:97:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/binding.dart').
WidgetsBinding.instance?.addPostFrameCallback((_) {
^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_below-1.0.3/lib/dropdown_below.dart:479:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/binding.dart').
WidgetsBinding.instance!.addObserver(this);
^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_below-1.0.3/lib/dropdown_below.dart:484:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/binding.dart').
WidgetsBinding.instance!.removeObserver(this);
^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_button2-1.8.0/lib/dropdown_button2.dart:77:14: Error: The method 'clampDouble' isn't defined for the class '_DropdownMenuPainter'.
- '_DropdownMenuPainter' is from 'package:dropdown_button2/dropdown_button2.dart' ('../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_button2-1.8.0/lib/dropdown_button2.dart').
Try correcting the name to the name of an existing method, or defining a method named 'clampDouble'.
begin: clampDouble(top.begin! + itemHeight,
^^^^^^^^^^^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_button2-1.8.0/lib/dropdown_button2.dart:182:9: Error: The method 'clampDouble' isn't defined for the class '_DropdownMenuItemButtonState<T>'.
- '_DropdownMenuItemButtonState' is from 'package:dropdown_button2/dropdown_button2.dart' ('../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_button2-1.8.0/lib/dropdown_button2.dart').
Try correcting the name to the name of an existing method, or defining a method named 'clampDouble'.
clampDouble(0.5 + (widget.itemIndex + 1) * unit, 0.0, 1.0);
^^^^^^^^^^^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_button2-1.8.0/lib/dropdown_button2.dart:183:24: Error: The method 'clampDouble' isn't defined for the class '_DropdownMenuItemButtonState<T>'.
- '_DropdownMenuItemButtonState' is from 'package:dropdown_button2/dropdown_button2.dart' ('../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_button2-1.8.0/lib/dropdown_button2.dart').
Try correcting the name to the name of an existing method, or defining a method named 'clampDouble'.
final double end = clampDouble(start + 1.5 * unit, 0.0, 1.0);
^^^^^^^^^^^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_button2-1.8.0/lib/dropdown_button2.dart:484:16: Error: The method 'clampDouble' isn't defined for the class '_DropdownMenuRouteLayout<T>'.
- '_DropdownMenuRouteLayout' is from 'package:dropdown_button2/dropdown_button2.dart' ('../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_button2-1.8.0/lib/dropdown_button2.dart').
Try correcting the name to the name of an existing method, or defining a method named 'clampDouble'.
left = clampDouble(buttonRect.right + offset.dx, 0.0, size.width) -
^^^^^^^^^^^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_button2-1.8.0/lib/dropdown_button2.dart:488:16: Error: The method 'clampDouble' isn't defined for the class '_DropdownMenuRouteLayout<T>'.
- '_DropdownMenuRouteLayout' is from 'package:dropdown_button2/dropdown_button2.dart' ('../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_button2-1.8.0/lib/dropdown_button2.dart').
Try correcting the name to the name of an existing method, or defining a method named 'clampDouble'.
left = clampDouble(
^^^^^^^^^^^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_plus-0.0.9/lib/src/text-dropdown.dart:52:21: Error: The getter 'MyColors' isn't defined for the class 'TextDropdownFormField'.
- 'TextDropdownFormField' is from 'package:dropdown_plus/src/text-dropdown.dart' ('../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_plus-0.0.9/lib/src/text-dropdown.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'MyColors'.
? MyColors.errorColor
^^^^^^^^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_plus-0.0.9/lib/src/text-dropdown.dart:53:21: Error: The getter 'MyColors' isn't defined for the class 'TextDropdownFormField'.
- 'TextDropdownFormField' is from 'package:dropdown_plus/src/text-dropdown.dart' ('../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_plus-0.0.9/lib/src/text-dropdown.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'MyColors'.
: MyColors.black),
^^^^^^^^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_plus-0.0.9/lib/src/text-dropdown.dart:54:22: Error: The getter 'MyColors' isn't defined for the class 'TextDropdownFormField'.
- 'TextDropdownFormField' is from 'package:dropdown_plus/src/text-dropdown.dart' ('../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_plus-0.0.9/lib/src/text-dropdown.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'MyColors'.
fillColor: MyColors.white,
^^^^^^^^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_plus-0.0.9/lib/src/text-dropdown.dart:57:24: Error: The getter 'MyColors' isn't defined for the class 'TextDropdownFormField'.
- 'TextDropdownFormField' is from 'package:dropdown_plus/src/text-dropdown.dart' ('../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_plus-0.0.9/lib/src/text-dropdown.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'MyColors'.
color: MyColors.borderColor),
^^^^^^^^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_plus-0.0.9/lib/src/text-dropdown.dart:73:24: Error: The getter 'MyColors' isn't defined for the class 'TextDropdownFormField'.
- 'TextDropdownFormField' is from 'package:dropdown_plus/src/text-dropdown.dart' ('../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_plus-0.0.9/lib/src/text-dropdown.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'MyColors'.
color: MyColors
^^^^^^^^
../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_plus-0.0.9/lib/src/text-dropdown.dart:84:24: Error: The getter 'MyColors' isn't defined for the class 'TextDropdownFormField'.
- 'TextDropdownFormField' is from 'package:dropdown_plus/src/text-dropdown.dart' ('../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_plus-0.0.9/lib/src/text-dropdown.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'MyColors'.
color: MyColors
^^^^^^^^
Unhandled exception:
NoSuchMethodError: The getter 'path' was called on null.
Receiver: null
Tried calling: path
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:38:5)
#1 JavaScriptBundler.compile (file:///opt/s/w/ir/x/w/sdk/pkg/frontend_server/lib/src/javascript_bundle.dart:165:65)
<asynchronous suspension>
#2 FrontendCompiler.writeJavascriptBundle (file:///opt/s/w/ir/x/w/sdk/pkg/frontend_server/lib/frontend_server.dart:694:32)
<asynchronous suspension>
#3 FrontendCompiler.compile (file:///opt/s/w/ir/x/w/sdk/pkg/frontend_server/lib/frontend_server.dart:602:9)
<asynchronous suspension>
#4 listenAndCompile.<anonymous closure> (file:///opt/s/w/ir/x/w/sdk/pkg/frontend_server/lib/frontend_server.dart:1199:11)
<asynchronous suspension>
Finished with error: the Dart compiler exited unexpectedly.
Failed to compile application.
Problem
I have been successfully using firebase firestore in my current app for months. However, recently when experimenting with firebase realtime, when I attempt to build on either physical or emulated iphone or android, the build fails.
I've tried usual - flutter clean, multiple emulators, reboot everything, same errors.
Strangely, when building with a pre-realtime version, the errors persist - none of my previous commits work anymore!
For sanity check, I created a new flutter application to see if anything was working - yes, a new clean flutter app works.
Any advice?
Error message when trying to build for iPhone:
Xcode's output:
↳
Writing result bundle at path:
/var/folders/qp/f66_vfps3839pj76pb3d_9fr0000gn/T/flutter_tools.u3vUGq/flutter_ios_build_temp_di
r4QxZbF/temporary_xcresult_bundle
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc.dart:21:38: Error: Type
'FutureOr' not found.
typedef EventHandler<Event, State> = FutureOr<void> Function(
^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_base.dart:23:3: Error:
Type 'FutureOr' not found.
FutureOr<void> close();
^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_overrides.dart:108:44:
Error: Type 'StreamTransformerBase' not found.
class _FlatMapStreamTransformer<T> extends StreamTransformerBase<Stream<T>, T> {
^^^^^^^^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc.dart:53:28: Error:
Couldn't find constructor 'StreamController'.
final _eventController = StreamController<Event>.broadcast();
^^^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc.dart:54:27: Error:
'StreamSubscription' isn't a type.
final _subscriptions = <StreamSubscription<dynamic>>[];
^^^^^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_base.dart:61:57: Error:
Couldn't find constructor 'StreamController.broadcast'.
late final _stateController = StreamController<State>.broadcast();
^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_overrides.dart:3:24:
Error: Undefined name 'runZoned'.
const _asyncRunZoned = runZoned;
^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/emitter.dart:68:22: Error:
Method not found: 'Completer'.
final _completer = Completer<void>();
^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/emitter.dart:69:25: Error:
'FutureOr' isn't a type.
final _disposables = <FutureOr<void> Function()>[];
^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc.dart:196:48: Error:
Couldn't find constructor 'StreamController.broadcast'.
final controller = StreamController<E>.broadcast(
^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc.dart:269:57: Error: The
method 'cancel' isn't defined for the class 'Object?'.
- 'Object' is from 'dart:core'.
Try correcting the name to the name of an existing method, or defining a method named 'cancel'.
await Future.wait<void>(_subscriptions.map((s) => s.cancel()));
^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_overrides.dart:37:40:
Error: Undefined name 'Zone'.
static BlocOverrides? get current => Zone.current[_token] as BlocOverrides?;
^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_overrides.dart:103:33:
Error: The argument type '_FlatMapStreamTransformer<dynamic>' can't be assigned to the parameter
type 'StreamTransformer<Stream<dynamic>, dynamic>'.
- '_FlatMapStreamTransformer' is from 'package:bloc/src/bloc.dart'
('../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc.dart').
- 'StreamTransformer' is from 'dart:async'.
- 'Stream' is from 'dart:async'.
.transform<dynamic>(const _FlatMapStreamTransformer<dynamic>());
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_overrides.dart:113:44:
Error: Couldn't find constructor 'StreamController.broadcast'.
final controller = StreamController<T>.broadcast(sync: true);
^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_overrides.dart:116:30:
Error: 'StreamSubscription' isn't a type.
final subscriptions = <StreamSubscription<dynamic>>[];
^^^^^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_overrides.dart:145:28:
Error: The argument type 'List<dynamic>' can't be assigned to the parameter type
'Iterable<Future<dynamic>>'.
- 'List' is from 'dart:core'.
- 'Iterable' is from 'dart:core'.
- 'Future' is from 'dart:async'.
return Future.wait(cancels).then((_) {});
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/emitter.dart:80:23: Error:
The method 'Completer' isn't defined for the class '_Emitter<State>'.
- '_Emitter' is from 'package:bloc/src/bloc.dart'
('../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc.dart').
Try correcting the name to the name of an existing method, or defining a method named
'Completer'.
final completer = Completer<void>();
^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/emitter.dart:88:23: Error:
The argument type 'List<dynamic>' can't be assigned to the parameter type
'Iterable<Future<dynamic>>'.
- 'List' is from 'dart:core'.
- 'Iterable' is from 'dart:core'.
- 'Future' is from 'dart:async'.
return Future.any([future, completer.future]).whenComplete(() {
^
Failed to package /Users/stew/Repos/pet_project.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
Result bundle written to path:
/var/folders/qp/f66_vfps3839pj76pb3d_9fr0000gn/T/flutter_tools.u3vUGq/flutter_ios_build_temp_di
r4QxZbF/temporary_xcresult_bundle
Could not build the application for the simulator.
Error launching application on iPhone SE (3rd generation).
Error message when trying to build for Android:
Launching lib/main_development.dart on Android SDK built for x86 in debug mode...
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc.dart:21:38: Error: Type 'FutureOr' not found.
typedef EventHandler<Event, State> = FutureOr<void> Function(
^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_base.dart:23:3: Error: Type 'FutureOr' not found.
FutureOr<void> close();
^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_overrides.dart:108:44: Error: Type 'StreamTransformerBase' not found.
class _FlatMapStreamTransformer<T> extends StreamTransformerBase<Stream<T>, T> {
^^^^^^^^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc.dart:53:28: Error: Couldn't find constructor 'StreamController'.
final _eventController = StreamController<Event>.broadcast();
^^^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc.dart:54:27: Error: 'StreamSubscription' isn't a type.
final _subscriptions = <StreamSubscription<dynamic>>[];
^^^^^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_base.dart:61:57: Error: Couldn't find constructor 'StreamController.broadcast'.
late final _stateController = StreamController<State>.broadcast();
^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_overrides.dart:3:24: Error: Undefined name 'runZoned'.
const _asyncRunZoned = runZoned;
^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/emitter.dart:68:22: Error: Method not found: 'Completer'.
final _completer = Completer<void>();
^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/emitter.dart:69:25: Error: 'FutureOr' isn't a type.
final _disposables = <FutureOr<void> Function()>[];
^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc.dart:196:48: Error: Couldn't find constructor 'StreamController.broadcast'.
final controller = StreamController<E>.broadcast(
^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc.dart:269:57: Error: The method 'cancel' isn't defined for the class 'Object?'.
- 'Object' is from 'dart:core'.
Try correcting the name to the name of an existing method, or defining a method named 'cancel'.
await Future.wait<void>(_subscriptions.map((s) => s.cancel()));
^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_overrides.dart:37:40: Error: Undefined name 'Zone'.
static BlocOverrides? get current => Zone.current[_token] as BlocOverrides?;
^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_overrides.dart:103:33: Error: The argument type '_FlatMapStreamTransformer<dynamic>' can't be assigned to the parameter type 'StreamTransformer<Stream<dynamic>, dynamic>'.
- '_FlatMapStreamTransformer' is from 'package:bloc/src/bloc.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc.dart').
- 'StreamTransformer' is from 'dart:async'.
- 'Stream' is from 'dart:async'.
.transform<dynamic>(const _FlatMapStreamTransformer<dynamic>());
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_overrides.dart:113:44: Error: Couldn't find constructor 'StreamController.broadcast'.
final controller = StreamController<T>.broadcast(sync: true);
^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_overrides.dart:116:30: Error: 'StreamSubscription' isn't a type.
final subscriptions = <StreamSubscription<dynamic>>[];
^^^^^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc_overrides.dart:145:28: Error: The argument type 'List<dynamic>' can't be assigned to the parameter type 'Iterable<Future<dynamic>>'.
- 'List' is from 'dart:core'.
- 'Iterable' is from 'dart:core'.
- 'Future' is from 'dart:async'.
return Future.wait(cancels).then((_) {});
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/emitter.dart:80:23: Error: The method 'Completer' isn't defined for the class '_Emitter<State>'.
- '_Emitter' is from 'package:bloc/src/bloc.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/bloc.dart').
Try correcting the name to the name of an existing method, or defining a method named 'Completer'.
final completer = Completer<void>();
^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/bloc-8.0.3/lib/src/emitter.dart:88:23: Error: The argument type 'List<dynamic>' can't be assigned to the parameter type 'Iterable<Future<dynamic>>'.
- 'List' is from 'dart:core'.
- 'Iterable' is from 'dart:core'.
- 'Future' is from 'dart:async'.
return Future.any([future, completer.future]).whenComplete(() {
^
FAILURE: Build failed with an exception.
* Where:
Script '/Users/stew/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1156
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDevelopmentDebug'.
> Process 'command '/Users/stew/flutter/bin/flutter'' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 17s
Running Gradle task 'assembleDevelopmentDebug'... 19.2s
Exception: Gradle task assembleDevelopmentDebug failed with exit code 1
I found the answer here: Update flutter dependencies in /.pub-cache
flutter pub cache repair
i cant running to android device or ios simulator after proceed upgrade flutter from version 1 to 2, i already do flutter pub get to all module and pubspec.yaml (before that i already flutter clean and invalidate cache and restart)
when i tried to running the code, it will be like error like this:
Launching lib/launcher/main-dev.dart on ASUS I001DE in debug mode...
Running Gradle task 'assembleDevelopmentDebug'...
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/presenter/widgets/widget_module.dart:38:8: Error: Type 'SingletonBind' not found.
List<SingletonBind> get instanciatedSingletons =>
^^^^^^^^^^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/presenter/widgets/widget_module.dart:43:12: Error: Type 'SingletonBind' not found.
List<SingletonBind<Object>> singletons, Injector injector) {
^^^^^^^^^^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/presenter/widgets/widget_module.dart:43:12: Error: Expected 0 type arguments.
List<SingletonBind<Object>> singletons, Injector injector) {
^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/presenter/models/bind.dart:4:7: Error: The non-abstract class 'Bind' is missing implementations for these members:
- BindContract.cast
- BindContract.copyWith
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class Bind<T extends Object> extends BindContract<T> {
^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/modular_interfaces-2.0.0/lib/src/di/bind.dart:53:19: Context: 'BindContract.cast' is defined here.
BindContract<E> cast<E extends Object>();
^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/modular_interfaces-2.0.0/lib/src/di/bind.dart:42:19: Context: 'BindContract.copyWith' is defined here.
BindContract<T> copyWith({
^^^^^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/presenter/models/bind.dart:46:7: Error: The non-abstract class 'AsyncBind' is missing implementations for these members:
- BindContract.cast
- BindContract.copyWith
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class AsyncBind<T extends Object> extends Bind<Future<T>>
^^^^^^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/modular_interfaces-2.0.0/lib/src/di/bind.dart:53:19: Context: 'BindContract.cast' is defined here.
BindContract<E> cast<E extends Object>();
^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/modular_interfaces-2.0.0/lib/src/di/bind.dart:42:19: Context: 'BindContract.copyWith' is defined here.
BindContract<T> copyWith({
^^^^^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/presenter/models/bind.dart:68:7: Error: The non-abstract class 'BindInject' is missing implementations for these members:
- BindContract.cast
- BindContract.copyWith
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class BindInject<T extends Object> extends Bind<T> {
^^^^^^^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/modular_interfaces-2.0.0/lib/src/di/bind.dart:53:19: Context: 'BindContract.cast' is defined here.
BindContract<E> cast<E extends Object>();
^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/modular_interfaces-2.0.0/lib/src/di/bind.dart:42:19: Context: 'BindContract.copyWith' is defined here.
BindContract<T> copyWith({
^^^^^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/presenter/widgets/widget_module.dart:25:6: Error: The return type of the method 'WidgetModule.getBind' is 'T?', which does not match the return type, 'BindEntry<T>?', of the overridden method, 'BindContextImpl.getBind'.
- 'BindEntry' is from 'package:modular_interfaces/src/di/bind.dart' ('../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/modular_interfaces-2.0.0/lib/src/di/bind.dart').
Change to a subtype of 'BindEntry<T>?'.
T? getBind<T extends Object>(Injector injector) {
^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/modular_core-2.0.0/lib/src/di/bind_context.dart:48:17: Context: This is the overridden method ('getBind').
BindEntry<T>? getBind<T extends Object>(Injector injector) {
^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/flutter_modular.dart:156:8: Error: The method 'call' isn't defined for the class 'BindEntry<GetArguments>'.
- 'BindEntry' is from 'package:modular_interfaces/src/di/bind.dart' ('../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/modular_interfaces-2.0.0/lib/src/di/bind.dart').
- 'GetArguments' is from 'package:flutter_modular/src/domain/usecases/get_arguments.dart' ('../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/domain/usecases/get_arguments.dart').
Try correcting the name to the name of an existing method, or defining a method named 'call'.
.call()
^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/flutter_modular.dart:191:18: Error: The argument type 'BindEntry<ModularRouterDelegate>' can't be assigned to the parameter type 'ModularRouterDelegate'.
- 'BindEntry' is from 'package:modular_interfaces/src/di/bind.dart' ('../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/modular_interfaces-2.0.0/lib/src/di/bind.dart').
- 'ModularRouterDelegate' is from 'package:flutter_modular/src/presenter/navigation/modular_router_delegate.dart' ('../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/presenter/navigation/modular_router_delegate.dart').
injector.get<ModularRouterDelegate>(), navigatorKey);
^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/presenter/modular_base.dart:178:7: Error: The method 'setDisposeResolver' isn't defined for the class 'ModularBase'.
- 'ModularBase' is from 'package:flutter_modular/src/presenter/modular_base.dart' ('../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/presenter/modular_base.dart').
Try correcting the name to the name of an existing method, or defining a method named 'setDisposeResolver'.
setDisposeResolver(disposeBindFunction);
^^^^^^^^^^^^^^^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/presenter/widgets/widget_module.dart:26:24: Error: A value of type 'BindEntry<T>?' can't be returned from a function with return type 'T?'.
- 'BindEntry' is from 'package:modular_interfaces/src/di/bind.dart' ('../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/modular_interfaces-2.0.0/lib/src/di/bind.dart').
return _fakeModule.getBind<T>(injector);
^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/presenter/widgets/widget_module.dart:43:12: Error: 'SingletonBind' isn't a type.
List<SingletonBind<Object>> singletons, Injector injector) {
^^^^^^^^^^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/presenter/widgets/widget_module.dart:101:32: Error: The method 'call' isn't defined for the class 'BindEntry<BindModule>'.
- 'BindEntry' is from 'package:modular_interfaces/src/di/bind.dart' ('../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/modular_interfaces-2.0.0/lib/src/di/bind.dart').
- 'BindModule' is from 'package:flutter_modular/src/domain/usecases/bind_module.dart' ('../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/domain/usecases/bind_module.dart').
Try correcting the name to the name of an existing method, or defining a method named 'call'.
injector.get<BindModule>().call(widget.module);
^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/presenter/widgets/widget_module.dart:112:34: Error: The method 'call' isn't defined for the class 'BindEntry<UnbindModule>'.
- 'BindEntry' is from 'package:modular_interfaces/src/di/bind.dart' ('../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/modular_interfaces-2.0.0/lib/src/di/bind.dart').
- 'UnbindModule' is from 'package:flutter_modular/src/domain/usecases/unbind_module.dart' ('../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/domain/usecases/unbind_module.dart').
Try correcting the name to the name of an existing method, or defining a method named 'call'.
injector.get<UnbindModule>().call<T>();
^^^^
../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-4.5.1+1/lib/src/infra/services/bind_service_impl.dart:21:20: Error: The argument type 'BindEntry<T>' can't be assigned to the parameter type 'T'.
- 'BindEntry' is from 'package:modular_interfaces/src/di/bind.dart' ('../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/modular_interfaces-2.0.0/lib/src/di/bind.dart').
return right(result);
^
*********************************************************
WARNING: This version of flutter_webview_plugin will break your Android build if it or its dependencies aren't compatible with AndroidX.
See https://docs.flutter.dev/development/androidx-migration for more information on the problem and how to fix it.
This warning prints for all Android build failures. The real root cause of the error may be unrelated.
*********************************************************
FAILURE: Build failed with an exception.
* Where:
Script '/Users/dev3sinarmas/tools/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1102
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDevelopmentDebug'.
> Process 'command '/Users/dev3sinarmas/tools/flutter/bin/flutter'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 43s
Exception: Gradle task assembleDevelopmentDebug failed with exit code 1
this is my flutter doctor:
sorry i already found it, just update dependency flutter modular to the lastest
Error:
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/psd/effect/psd_drop_shadow_effect.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/psd/effect/psd_effect.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/psd/effect/psd_inner_glow_effect.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/psd/effect/psd_inner_shadow_effect.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/psd/effect/psd_outer_glow_effect.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/psd/effect/psd_solid_fill_effect.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/psd/layer_data/psd_layer_additional_data.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/psd/psd_image_resource.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/psd/psd_layer_data.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/pvrtc/pvrtc_color_bounding_box.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/tga/tga_info.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/tiff/tiff_info.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/webp/vp8l_color_cache.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/decode_info.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/encoder.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/hdr/hdr_gamma.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/util/interpolation.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/util/point.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/image_exception.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/internal/clamp.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/internal/internal.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/jpeg/_component_data.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/util/quantizer.dart: Error: The control character U+0000 can only be used in strings and comments.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/draw/draw_circle.dart:50:6: Error: Type 'Point' not found.
List<Point> _calculateCircumference(Image image, int x0, int y0, int radius) {
^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/draw/draw_circle.dart:111:31: Error: Type 'Point' not found.
Image _draw(Image image, List<Point> points, int color) {
^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/exr/exr_image.dart:11:24: Error: Type 'DecodeInfo' not found.
class ExrImage extends DecodeInfo {
^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/exr/exr_part.dart:20:15: Error: Type 'ExrAttribute' not found.
Map<String, ExrAttribute> attributes = {};
^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/jpeg/jpeg_data.dart:21:3: Error: Type 'JpegJfif' not found.
JpegJfif jfif;
^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/jpeg/jpeg_data.dart:22:3: Error: Type 'JpegAdobe' not found.
JpegAdobe adobe;
^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/jpeg/jpeg_data.dart:72:3: Error: Type 'JpegInfo' not found.
JpegInfo readInfo(List<int> bytes) {
^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/jpeg/jpeg_data.dart:668:24: Error: Type 'JpegComponent' not found.
JpegFrame frame, JpegComponent component) {
^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/jpeg/jpeg_scan.dart:181:24: Error: Type 'JpegComponent' not found.
void _decodeBaseline(JpegComponent component, List zz) {
^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/jpeg/jpeg_scan.dart:210:23: Error: Type 'JpegComponent' not found.
void _decodeDCFirst(JpegComponent component, List zz) {
^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/jpeg/jpeg_scan.dart:217:28: Error: Type 'JpegComponent' not found.
void _decodeDCSuccessive(JpegComponent component, List zz) {
^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/jpeg/jpeg_scan.dart:221:23: Error: Type 'JpegComponent' not found.
void _decodeACFirst(JpegComponent component, List zz) {
^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/jpeg/jpeg_scan.dart:247:28: Error: Type 'JpegComponent' not found.
void _decodeACSuccessive(JpegComponent component, dynamic zz) {
^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/jpeg/jpeg_scan.dart:312:7: Error: Type 'JpegComponent' not found.
JpegComponent component, dynamic decodeFn, int mcu, int row, int col) {
^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/jpeg/jpeg_scan.dart:327:21: Error: Type 'JpegComponent' not found.
void _decodeBlock(JpegComponent component, dynamic decodeFn, int mcu) {
^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/png/png_info.dart:6:23: Error: Type 'DecodeInfo' not found.
class PngInfo extends DecodeInfo {
^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/psd/layer_data/psd_layer_section_divider.dart:5:38: Error: Type 'PsdLayerData' not found.
class PsdLayerSectionDivider extends PsdLayerData {
^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/psd/psd_image.dart:13:24: Error: Type 'DecodeInfo' not found.
class PsdImage extends DecodeInfo {
^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/psd/psd_layer.dart:35:15: Error: Type 'PsdLayerData' not found.
Map<String, PsdLayerData> additionalData = {};
^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/psd/psd_layer.dart:39:8: Error: Type 'PsdEffect' not found.
List<PsdEffect> effects = [];
^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/pvrtc/pvrtc_encoder.dart:289:10: Error: Type 'PvrtcColorBoundingBox' not found.
static PvrtcColorBoundingBox _calculateBoundingBoxRgb(
^^^^^^^^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/pvrtc/pvrtc_encoder.dart:322:10: Error: Type 'PvrtcColorBoundingBox' not found.
static PvrtcColorBoundingBox _calculateBoundingBoxRgba(
^^^^^^^^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/webp/vp8l.dart:962:3: Error: Type 'VP8LColorCache' not found.
VP8LColorCache _colorCache;
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/webp/webp_info.dart:7:24: Error: Type 'DecodeInfo' not found.
class WebPInfo extends DecodeInfo {
^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/decoder.dart:74:3: Error: Type 'DecodeInfo' not found.
DecodeInfo startDecode(List<int> bytes);
^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/exr_decoder.dart:45:3: Error: Type 'DecodeInfo' not found.
DecodeInfo startDecode(List<int> data) {
^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/formats/gif_decoder.dart:15:3: Error: Type 'GifInfo' not found.
GifInfo info;
^^^^^^^
......
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/transform/copy_rectify.dart:8:5: Error: 'Point' isn't a type.
Point topRight,
^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/transform/copy_rectify.dart:9:5: Error: 'Point' isn't a type.
Point bottomLeft,
^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/transform/copy_rectify.dart:10:5: Error: 'Point' isn't a type.
Point bottomRight,
^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/transform/copy_resize.dart:17:5: Error: 'Interpolation' isn't a type.
Interpolation interpolation = Interpolation.nearest}) {
^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/transform/copy_resize.dart:17:35: Error: Getter not found: 'Interpolation'.
Interpolation interpolation = Interpolation.nearest}) {
^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/transform/copy_resize.dart:19:11: Error: Method not found: 'ImageException'.
throw ImageException('Invalid size');
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/transform/copy_resize.dart:42:24: Error: Getter not found: 'Interpolation'.
if (interpolation == Interpolation.average) {
^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/transform/copy_resize.dart:77:31: Error: Getter not found: 'Interpolation'.
} else if (interpolation == Interpolation.nearest) {
^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/transform/copy_resize_crop_square.dart:9:11: Error: Method not found: 'ImageException'.
throw ImageException('Invalid size');
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/transform/copy_rotate.dart:8:6: Error: 'Interpolation' isn't a type.
{Interpolation interpolation = Interpolation.nearest}) {
^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/transform/copy_rotate.dart:8:36: Error: Getter not found: 'Interpolation'.
{Interpolation interpolation = Interpolation.nearest}) {
^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/util/input_buffer.dart:136:13: Error: The method 'ImageException' isn't defined for the class 'InputBuffer'.
- 'InputBuffer' is from 'package:image/src/util/input_buffer.dart' ('/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/util/input_buffer.dart').
Try correcting the name to the name of an existing method, or defining a method named 'ImageException'.
throw ImageException('EOF reached without finding string terminator');
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/util/neural_quantizer.dart:43:13: Error: The method 'ImageException' isn't defined for the class 'NeuralQuantizer'.
- 'NeuralQuantizer' is from 'package:image/src/util/neural_quantizer.dart' ('/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/util/neural_quantizer.dart').
Try correcting the name to the name of an existing method, or defining a method named 'ImageException'.
throw ImageException('Image is too small');
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/bitmap_font.dart:53:15: Error: The method 'ImageException' isn't defined for the class 'BitmapFont'.
- 'BitmapFont' is from 'package:image/src/bitmap_font.dart' ('/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/bitmap_font.dart').
Try correcting the name to the name of an existing method, or defining a method named 'ImageException'.
throw ImageException('Invalid font XML');
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/bitmap_font.dart:76:13: Error: The method 'ImageException' isn't defined for the class 'BitmapFont'.
- 'BitmapFont' is from 'package:image/src/bitmap_font.dart' ('/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/bitmap_font.dart').
Try correcting the name to the name of an existing method, or defining a method named 'ImageException'.
throw ImageException('Invalid font archive');
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/bitmap_font.dart:88:15: Error: The method 'ImageException' isn't defined for the class 'BitmapFont'.
- 'BitmapFont' is from 'package:image/src/bitmap_font.dart' ('/C:/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.19/lib/src/bitmap_font.dart').
Try correcting the name to the name of an existing method, or defining a method named 'ImageException'.
throw ImageException('Invalid font XML');
^^^^^^^^^^^^^^
FAILURE: Build failed with an exception.
Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 900
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
Please Help Me!
My Error and Code is Long, Stack Over Flow not post question.
Please Help me!
Please Help me!
Please Help me!
It seems your Image size is not correctly defined. Use BoxFit widget to adjust the same. Try the link
https://medium.com/flutter-community/how-to-use-images-in-flutter-to-the-point-5542b4412a53
Are you Converting Base64 to decode Image ? then you should follow this then your Problem will be solved.
import 'dart:convert';
import 'package:image/image.dart' as ImageProcess;
final _byteImage = Base64Decoder().convert(base64Image);
Widget image = Image.memory(_byteImage)
After make update the windows I got the below errors and I don't know why this happen.
D:/dev/courses/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/stacked_services-0.4.11/lib/src/snackbar_service.dart:74:7:
Error: Type 'SnackStatusCallback' not found.
SnackStatusCallback onStatusChanged,
^^^^^^^^^^^^^^^^^^^ /D:/dev/courses/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/stacked_services-0.4.11/lib/src/navigation_service.dart:94:35:
Error: The getter 'defaultDurationTransition' isn't defined for the
class '_GetImpl'.
'_GetImpl' is from 'package:get/get_core/src/get_main.dart' ('/D:/dev/courses/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/get-3.24.0/lib/get_core/src/get_main.dart').
Try correcting the name to the name of an existing getter, or defining
a getter or field named 'defaultDurationTransition'.
duration: duration ?? Get.defaultDurationTransition,
^^^^^^^^^^^^^^^^^^^^^^^^^ /D:/dev/courses/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/stacked_services-0.4.11/lib/src/navigation_service.dart:113:33:
Error: The getter 'defaultDurationTransition' isn't defined for the
class '_GetImpl'.
'_GetImpl' is from 'package:get/get_core/src/get_main.dart' ('/D:/dev/courses/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/get-3.24.0/lib/get_core/src/get_main.dart').
Try correcting the name to the name of an existing getter, or defining
a getter or field named 'defaultDurationTransition'.
duration: duration ?? Get.defaultDurationTransition,
^^^^^^^^^^^^^^^^^^^^^^^^^ /D:/dev/courses/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/stacked_services-0.4.11/lib/src/snackbar_service.dart:74:7:
Error: 'SnackStatusCallback' isn't a type.
SnackStatusCallback onStatusChanged,
^^^^^^^^^^^^^^^^^^^ /D:/dev/courses/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/stacked_services-0.4.11/lib/src/snackbar_service.dart:111:9:
Error: No named parameter with the name 'onStatusChanged'.
onStatusChanged: onStatusChanged,
^^^^^^^^^^^^^^^ /D:/dev/courses/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/get-3.24.0/lib/get_navigation/src/snackbar/snack.dart:12:3:
Context: Found this candidate, but the arguments don't match.
GetBar({ ^^^^^^ 2
FAILURE: Build failed with an exception.
Where: Script 'D:\dev\courses\flutter\flutter_windows_1.22.5-stable\flutter\packages\flutter_tools\gradle\flutter.gradle'
line: 904