mohak1283 / instagram-clone Goto Github PK
View Code? Open in Web Editor NEWWorking Instagram Clone (Frontend + Backend) created with Flutter and Firebase
License: BSD 2-Clause "Simplified" License
Working Instagram Clone (Frontend + Backend) created with Flutter and Firebase
License: BSD 2-Clause "Simplified" License
It would be cool to have the app on f-droid store (https://f-droid.org/), a store which hosts only FLOSS apps. There are no IG FLOSS apps there, so it would be good to attract new users^^
Unfortunately it seems they reject firebase as it is not opensource, is there any way you can replace it?
https://gitlab.com/fdroid/rfp for submitting it,
E/AndroidRuntime(26145): FATAL EXCEPTION: AsyncTask #2 E/AndroidRuntime(26145): Process: com.mohak.instagram, PID: 26145 E/AndroidRuntime(26145): java.lang.RuntimeException: An error occurred while executing doInBackground() E/AndroidRuntime(26145): at android.os.AsyncTask$3.done(AsyncTask.java:354) E/AndroidRuntime(26145): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383) E/AndroidRuntime(26145): at java.util.concurrent.FutureTask.setException(FutureTask.java:252) E/AndroidRuntime(26145): at java.util.concurrent.FutureTask.run(FutureTask.java:271) E/AndroidRuntime(26145): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245) E/AndroidRuntime(26145): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) E/AndroidRuntime(26145): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) E/AndroidRuntime(26145): at java.lang.Thread.run(Thread.java:764) E/AndroidRuntime(26145): Caused by: java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread. Current thread: AsyncTask #2 E/AndroidRuntime(26145): at io.flutter.embedding.engine.FlutterJNI.ensureRunningOnMainThread(FlutterJNI.java:605) E/AndroidRuntime(26145): at io.flutter.embedding.engine.FlutterJNI.invokePlatformMessageResponseCallback(FlutterJNI.java:556) E/AndroidRuntime(26145): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:131) Lost connection to device. E/AndroidRuntime(26145): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:225) E/AndroidRuntime(26145): at com.aloisdeniel.geocoder.GeocoderPlugin$2.doInBackground(GeocoderPlugin.java:109) E/AndroidRuntime(26145): at com.aloisdeniel.geocoder.GeocoderPlugin$2.doInBackground(GeocoderPlugin.java:102) E/AndroidRuntime(26145): at android.os.AsyncTask$2.call(AsyncTask.java:333) E/AndroidRuntime(26145): at java.util.concurrent.FutureTask.run(FutureTask.java:266) E/AndroidRuntime(26145): ... 4 more
It will throw error
"Lost connection to device." on terminal
So this is very strange, I can't seem to find what is wrong and I keep getting these errors. I'm getting the 3 following errors currently.
/Users/NAME/Downloads/.pub-cache/hosted/pub.dartlang.org/cached_network_image-0.7.0/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'.
/Users/NAME/Downloads/development/flutter/packages/flutter/lib/src/painting/image_provider.dart:489:24: Context: This is the overridden method ('load').
/Users/NAME/Downloads/.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<DiagnosticsNode> Function()'.
Do you have any idea why this is happening? I can't seem to find the issue since Xcode is not giving me anything else but this. I did flutter doctor
, everything seems fine, I ran flutter analyze
inside the project and no errors were shown only some warnings. I am using the latest version of Xcode which might be the problem, I am using Legacy Build Tools, everything is up to date. There were also some errors in the code which I managed to resolve but I have no idea what is going on with these 3. I hope you can help me resolve this issue.
Sincerely,
JustStanix
i have this issue
when open project and add packages in yaml file
FAILURE: Build failed with an exception.
The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 17.0.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
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 3s
Finished with error: Gradle task assembleDebug failed with exit code 1
Sign in button not work
E/flutter (24262): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(sign_in_failed, com.google.android.gms.common.api.b: 10: , null)
E/flutter (24262): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:564)
E/flutter (24262): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:302)
E/flutter (24262):
E/flutter (24262): #2 GoogleSignIn._callMethod (package:google_sign_in/google_sign_in.dart:226)
E/flutter (24262):
E/flutter (24262): #3 GoogleSignIn._addMethodCall (package:google_sign_in/google_sign_in.dart:268)
E/flutter (24262): #4 GoogleSignIn.signIn (package:google_sign_in/google_sign_in.dart:339)
E/flutter (24262): #5 FirebaseProvider.signIn (package:instagram_clone/resources/firebase_provider.dart:84)
E/flutter (24262):
E/flutter (24262): #6 Repository.signIn (package:instagram_clone/resources/repository.dart:16)
E/flutter (24262): #7 _LoginScreenState.build. (package:instagram_clone/ui/login_screen.dart:43)
E/flutter (24262): #8 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:120)
E/flutter (24262): #9 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:242)
E/flutter (24262): #10 TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:175)
E/flutter (24262): #11 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:265)
E/flutter (24262): #12 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:73)
E/flutter (24262): #13 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101)
E/flutter (24262): #14 _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:214)
E/flutter (24262): #15 _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:192)
E/flutter (24262): #16 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:149)
E/flutter (24262): #17 _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:101)
E/flutter (24262): #18 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:85)
E/flutter (24262): #19 _rootRunUnary (dart:async/zone.dart:1136)
E/flutter (24262): #20 _CustomZone.runUnary (dart:async/zone.dart:1029)
E/flutter (24262): #21 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931)
E/flutter (24262): #22 _invoke1 (dart:ui/hooks.dart:223)
E/flutter (24262): #23 _dispatchPointerDataPacket (dart:ui/hooks.dart:144)
Trying to install/run for the first time.
Building on iOS. Using Xcode v12.
Not sure if this is related only to this repo cause I've seen other people having the same issue. I was not able to resolve it.
Let me know if you have a clue.
Full log:
Multiple commands produce '/Users/neant/Library/Developer/Xcode/DerivedData/Runner-dcxhryqrzaryvxdjmznowqfooern/Build/Intermediates.noindex/SwiftMigration/Runner/Products/Debug-iphonesimulator/Runner.app/Runner':
1) Target 'Runner' has copy command from '/Users/neant/Local/app/budscore/Instagram-Clone/ios/Runner/Runner' to '/Users/neant/Library/Developer/Xcode/DerivedData/Runner-dcxhryqrzaryvxdjmznowqfooern/Build/Intermediates.noindex/SwiftMigration/Runner/Products/Debug-iphonesimulator/Runner.app/Runner'
2) Target 'Runner' has link command with output '/Users/neant/Library/Developer/Xcode/DerivedData/Runner-dcxhryqrzaryvxdjmznowqfooern/Build/Intermediates.noindex/SwiftMigration/Runner/Products/Debug-iphonesimulator/Runner.app/Runner'
I need code for upcoming feauters like Delete, liking heart using flutter
The loaction chips are throwing errors:
Invalid argument(s)
Can u please make it video support in news feed along with images
How to fix this issue. I have setup step by step as mentioned.
E/flutter ( 6076): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 12500: , null)
E/flutter ( 6076): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:564:7)
E/flutter ( 6076): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:302:33)
jsjhwj
pls help feed screen not working just refresh indicator is there after refresh too it doesnt retireve the post of the other users were following.
When I am trying to take a photo with the camera of the device, the app crashes when closing the camera without taking a picture:
image_provider.dart: Failed assertion: line 563 pos 14: 'file != null': is not true
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'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.