ansh-rathod / flutter-photoarc-app Goto Github PK
View Code? Open in Web Editor NEW(Full-stack) Fully functional social media app (Instagram clone) written in flutter and dart with backend node.js and Postgres SQL.
(Full-stack) Fully functional social media app (Instagram clone) written in flutter and dart with backend node.js and Postgres SQL.
hi Mr @Ansh-Rathod
how is everything bro???
unfortunately, workmanager registerPeriodicTask is not supported in ios
just for the records!!!
hi dear @Ansh-Rathod
I tested my backend with postman successfully
but in my app, after clicking on the "authenticate" button, the app stuck on a gray screen
after debugging with android studio I saw these error on console:
======== Exception caught by widgets library =======================================================
The following StateError was thrown building InheritedProvider<CurrentUserCubit>:
Bad state: Tried to read a provider that threw during the creation of its value.
The exception occurred during the creation of type CurrentUserCubit.
══╡ EXCEPTION CAUGHT BY PROVIDER ╞═══════════════════════════════
The following _CastError was thrown:
Null check operator used on a null value
When the exception was thrown, this was the stack:
#0 _BottomNavBarState.build.<anonymous closure> (package:social_media/screens/bottom_nav_bar/bottom_nav_bar.dart:52:59)
#1 _CreateInheritedProviderState.value (package:provider/src/inherited_provider.dart:729:36)
#2 _InheritedProviderScopeElement.value (package:provider/src/inherited_provider.dart:583:33)
#3 Provider.of (package:provider/src/provider.dart:303:37)
#4 ReadContext.read (package:provider/src/provider.dart:656:21)
#5 _BlocBuilderBaseState.initState (package:flutter_bloc/src/bloc_builder.dart:129:36)
#6 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4805:57)
#7 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4638:5)
I debug the flutter project with the emulator for hours and I believe that the problem is firebase!!!
in these lines:
return BlocProvider(
create: (context) => CurrentUserCubit()
..setCurrentUser(FirebaseAuth.instance.currentUser!.uid),
child: BlocBuilder<CurrentUserCubit, CurrentUserState>(
currentUser is always null, also CurrentUserCubit and CurrentUserState have not correct data, and it leads to an exception
how should I configure my firebase settings?
best regards,
peiman sh
hi Mr @Ansh-Rathod
thanks for your priceless repo!!!
I tested your apk and I saw there was no sign-up page. there was only login and after logining a gray screen!!!
Then I compile the flutter project myself but the same results!!!
could you get me some help??!!!
hi Mr @Ansh-Rathod
likes didnt save correctly
when I like a post and leave then come back again, I see no like!!!!
have you seen this before?
There is a missing url.dart file
Not found in the project
Hi Mr @Ansh-Rathod
url.dart file not found
Please send the file to me
hi dear Mr @Ansh-Rathod
I test backend api with postman and this is the result:
POST:
http://103.215.221.153:3000/api/v1/user/create-user
RESPONSE:
{
"success": false,
"error": "The server does not support SSL connections",
"code": 500,
"results": {
"message": "The server does not support SSL connections"
}
}
do I have to set IP to the domain in DNS then get an SSL for the domain??
and how about POST?
shouldn't it be changed to https://103.215.221.153:3000/api/v1/user/create-user?
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.