You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After setting up firebase and deploying it, I used flutter run to run the code on iOS simulator but I am encountering the following compiler errors:
Compiler message:
lib/resources/firebase_provider.dart:93:31: Error: A value of type 'AuthResult' can't be
assigned to a variable of type 'FirebaseUser'.
'AuthResult' is from 'package:firebase_auth/firebase_auth.dart'
('../../development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.14.0+
5/lib/firebase_auth.dart').
'FirebaseUser' is from 'package:firebase_auth/firebase_auth.dart'
('../../development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.14.0+
5/lib/firebase_auth.dart').
Try changing the type of the left hand side, or casting the right hand side to
'FirebaseUser'.
final FirebaseUser user = await _auth.signInWithCredential(credential);
^
lib/ui/insta_upload_photo_screen.dart:212:18: Error: Too many positional arguments: 1
allowed, but 2 found.
Try removing the extra positional arguments.
Im.copyResize(image, 500);
^
../../development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.4/lib/src/tran
sform/copy_resize.dart:14:7: Context: Found this candidate, but the arguments don't match.
Image copyResize(Image src, {int width, int height,
^^^^^^^^^^
lib/ui/edit_profile_screen.dart:259:18: Error: Too many positional arguments: 1 allowed,
but 2 found.
Try removing the extra positional arguments.
Im.copyResize(image, 500);
^
../../development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.4/lib/src/tran
sform/copy_resize.dart:14:7: Context: Found this candidate, but the arguments don't match.
Image copyResize(Image src, {int width, int height,
^^^^^^^^^^
../../development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-0.7
.0/lib/src/cached_network_image_provider.dart:46:31: Error: The argument type 'Null
Function(StringBuffer)' can't be assigned to the parameter type 'Iterable
Function()'.
'StringBuffer' is from 'dart:core'.
'Iterable' is from 'dart:core'.
'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart'
('../../development/tools/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to
'Iterable Function()'.
informationCollector: (StringBuffer information) {
^
lib/ui/chat_detail_screen.dart:185:18: Error: Too many positional arguments: 1 allowed, but
2 found.
Try removing the extra positional arguments.
Im.copyResize(image, 500);
^
../../development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.4/lib/src/tran
sform/copy_resize.dart:14:7: Context: Found this candidate, but the arguments don't match.
Image copyResize(Image src, {int width, int height,
^^^^^^^^^^
Compiler failed on /Users/jeunghbyun/iOSProjects/Instagram-Clone/lib/main.dart
Error launching application on iPhone 8 Plus.
The text was updated successfully, but these errors were encountered:
Convert this line in ./lib/resources/firebase_provider.dart final FirebaseUser user = await _auth.signInWithCredential(credential) to this final FirebaseUser user = (await _auth.signInWithCredential(credential)).user@jhb115
After setting up firebase and deploying it, I used flutter run to run the code on iOS simulator but I am encountering the following compiler errors:
Compiler message:
lib/resources/firebase_provider.dart:93:31: Error: A value of type 'AuthResult' can't be
assigned to a variable of type 'FirebaseUser'.
('../../development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.14.0+
5/lib/firebase_auth.dart').
('../../development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.14.0+
5/lib/firebase_auth.dart').
Try changing the type of the left hand side, or casting the right hand side to
'FirebaseUser'.
final FirebaseUser user = await _auth.signInWithCredential(credential);
^
lib/ui/insta_upload_photo_screen.dart:212:18: Error: Too many positional arguments: 1
allowed, but 2 found.
Try removing the extra positional arguments.
Im.copyResize(image, 500);
^
../../development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.4/lib/src/tran
sform/copy_resize.dart:14:7: Context: Found this candidate, but the arguments don't match.
Image copyResize(Image src, {int width, int height,
^^^^^^^^^^
lib/ui/edit_profile_screen.dart:259:18: Error: Too many positional arguments: 1 allowed,
but 2 found.
Try removing the extra positional arguments.
Im.copyResize(image, 500);
^
../../development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.4/lib/src/tran
sform/copy_resize.dart:14:7: Context: Found this candidate, but the arguments don't match.
Image copyResize(Image src, {int width, int height,
^^^^^^^^^^
../../development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-0.7
.0/lib/src/cached_network_image_provider.dart:46:31: Error: The argument type 'Null
Function(StringBuffer)' can't be assigned to the parameter type 'Iterable
Function()'.
('../../development/tools/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to
'Iterable Function()'.
informationCollector: (StringBuffer information) {
^
lib/ui/chat_detail_screen.dart:185:18: Error: Too many positional arguments: 1 allowed, but
2 found.
Try removing the extra positional arguments.
Im.copyResize(image, 500);
^
../../development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.4/lib/src/tran
sform/copy_resize.dart:14:7: Context: Found this candidate, but the arguments don't match.
Image copyResize(Image src, {int width, int height,
^^^^^^^^^^
Compiler failed on /Users/jeunghbyun/iOSProjects/Instagram-Clone/lib/main.dart
Error launching application on iPhone 8 Plus.
The text was updated successfully, but these errors were encountered: