FlashChat icon indicating copy to clipboard operation
FlashChat copied to clipboard

Missing profileEditForChatScreen.dart

Open chrisbinsunny opened this issue 4 years ago • 8 comments

There is no file as profileEditForChatScreen.dart! IDK why, but that file is nowhere to be found.

chrisbinsunny avatar May 09 '20 20:05 chrisbinsunny

I just found that. And a lot more problems too.. Anyway I got why you did that.

chrisbinsunny avatar May 09 '20 20:05 chrisbinsunny

I just found that. And a lot more problems too.. Anyway I got why you did that.

Hey, I'm sorry but I don't know why that file didn't get uploaded. I'll look into it. Also, this was my very first project with Flutter so there might be a lot of small issues here and there. Also, I don't think I even managed the state in this one. Still, the basic chat functionality works well. But I could've optimised the code a lot more.

jagjot26 avatar May 10 '20 10:05 jagjot26

It'll be good if you can add that file also. I found your app really interesting

chrisbinsunny avatar May 10 '20 10:05 chrisbinsunny

Compiler message: /D:/Softwares-Installed/Android_Studio/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-1.1.3/lib/src/cached_network_image_provider.dart:42:24: Error: The method 'CachedNetworkImageProvider.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'. ImageStreamCompleter load(CachedNetworkImageProvider key) { ^ /D:/Softwares-Installed/Android_Studio/flutter/packages/flutter/lib/src/painting/image_provider.dart:403:24: Context: This is the overridden method ('load'). ImageStreamCompleter load(T key, DecoderCallback decode); ^ Target kernel_snapshot failed: Exception: Errors during snapshot creation: null build failed.

FAILURE: Build failed with an exception.

  • Where: Script 'D:\Softwares-Installed\Android_Studio\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 780

  • What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'D:\Softwares-Installed\Android_Studio\flutter\bin\flutter.bat'' finished with non-zero exit value 1

chrisbinsunny avatar May 10 '20 10:05 chrisbinsunny

Looks like some packages are out of date and hence, some code needs to be modified. Everything was working fine a few months ago. Just look up CachedNetworkImage on pub.dev and make the necessary changes in code.

jagjot26 avatar May 10 '20 10:05 jagjot26

Yea.. Am on it. Can you upload the other file too??

chrisbinsunny avatar May 10 '20 10:05 chrisbinsunny

Solved everything. Now the only file remaining is profileEditForChatScreen.dart! Can you upload that too? Did you upload your API key in that file? Maybe the file is deleted by APIGuard in GitHub.

chrisbinsunny avatar May 10 '20 11:05 chrisbinsunny

I've uploaded it now. Thanks for telling me about this.

jagjot26 avatar May 10 '20 12:05 jagjot26