thealphamerc / flutter_twitter_clone Goto Github PK
View Code? Open in Web Editor NEWFully functional Twitter clone built in flutter framework using Firebase realtime database and storage
License: MIT License
Fully functional Twitter clone built in flutter framework using Firebase realtime database and storage
License: MIT License
how possible to add a video picker function in"composeBottomIconWidget" and video player in "feedpage"? along with your current image posting.
also is there a possibility for multiple image selection without changing image_picker with multi_media_picker plugin?
thank you
Yes you are right, but I think that Twitter don't showing all comments on the feed page, that showing 2-3 comments maximum und the other you can seen when you open post, bc when you have for example 100 coments, you can't seen nothing else for other people.. und I think this will be good to implement. Thank you for answering.. π
Originally posted by @avdoviic in #11 (comment)
The following assertion was thrown while handling a gesture:
Tried to listen to a value exposed with provider, from outside of the widget tree.
This is likely caused by an event handler (like a button's onPressed) that called
Provider.of without passing listen: false
.
To fix, write:
Provider.of(context, listen: false);
It is unsupported because may pointlessly rebuild the widget associated to the
event handler, when the widget tree doesn't care about the value.
The context used was: WelcomePage(dependencies: [MediaQuery, _DefaultInheritedProviderScope], state: _WelcomePageState#7b321)
'package:provider/src/provider.dart':
Failed assertion: line 193 pos 7: 'context.owner.debugBuilding || listen == false || _debugIsInInheritedProviderUpdate'
Hi Sonu Sharma
i hope you doing well
in searchState i get this error under (kDatabase.child('profile').once().then) :
"Exception has occurred.
DatabaseError (DatabaseError(-3, Permission denied, ))"
I check on my database Rules ( allow read, allow write)
I don't know where the error is..
Is there a way to easily get the database model for the Firestore branch?
I saw the Collection names in the file lib/helper/constant.dart. However, It is not clear which Collection corresponds to which model.
Hi,
I'm very impressed by your work, but i think there is some more features that you can add to this project :
Hello,
I using firestore database version of app, and for some reason don't work tag people option,
when I make @test this show me list of users, but when I tape on user this don't want to add _________________ @test
this user. show error.
flutter: Another exception was thrown: Tried to listen to a value exposed with provider, from outside of the widget tree.
Thanks.
Sort comment In details page, last comment to be on top..
AppIcons are not visible. What would be the reason?
How to make that last notification und last message be always on the top of list..
Und wil be inplement that we can share videos on the feed page und on the messages chat..
Very Good Project!! π
Please, is it possible to change username once you sign up?
The problem was solved by reducing the provider package before, but a newly written package that I use is failing because it does not fit the low provider package. How can I solve this error without getting the provider down?
And in profilePage var authstate = Provider.of (context, listen: false); I did
The following assertion was thrown during a scheduler callback:
Tried to listen to a value exposed with provider, from outside of the widget tree.
This is likely caused by an event handler (like a button's onPressed) that called
Provider.of without passing `listen: false`.
To fix, write:
Provider.of<NotificationState>(context, listen: false);
It is unsupported because may pointlessly rebuild the widget associated to the
event handler, when the widget tree doesn't care about the value.
The context used was: HomePage(dependencies: [_InheritedProviderScope<AppState>], state: _HomePageState#bf130)
'package:provider/src/provider.dart':
Failed assertion: line 191 pos 7: 'context.owner.debugBuilding ||
listen == false ||
debugIsInInheritedProviderUpdate'
Do you have any idea that I could not understand the problem?
Plugin project :firebase_core_web not found. Please update settings.gradle.
Plugin project :cloud_firestore_web not found. Please update settings.gradle.
Plugin project :firebase_auth_web not found. Please update settings.gradle.
Plugin project :url_launcher_web not found. Please update settings.gradle.
FAILURE: Build failed with an exception.
Describe the bug
We need to update the user profile information in all the posts he uploaded.
We normally denormalise the data when it comes to NoSQL Databases.
When one Edit the profile Display name or Profile picture the old name or profile pic remains on tweet tweeted before
I/BiChannelGoogleApi( 2692): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzaq@69874c1
W/DynamiteModule( 2692): Local module descriptor class for com.google.firebase.auth not found.
W/GooglePlayServicesUtil( 2692): Google Play Store is missing.
I/flutter ( 2692): ****************************** error ******************************
I/flutter ( 2692): [Error] signUp PlatformException(ERROR_API_NOT_AVAILABLE, API: InternalFirebaseAuth.FIREBASE_AUTH_API is not available on this device. Connection failed with: ConnectionResult{statusCode=SERVICE_INVALID, resolution=null, message=null}, null)
I/flutter ( 2692): ****************************** error ******************************
I/flutter ( 2692): null
Have you developed a backend admin for this app?
I suggest you add file sharing capabilities to the chat section
Hi, I'm trying to remove the chat section from the app but when I build it, I get so many malfunctions in the app, but the codes looks fine.
for example, the sidebar menu is not showing the profile picture but instead 'log in to continue' in white text...
and when I click on the profile page I get this
please help, I think this happened because I removed the chat sectionπ’
Thanks for this great project. :)
I had problems while running the app in my development environment because the "Getting started" instructions are not up to date.
I think the readme file needs two updates:
flutter: DBnbjTIRahTGFXBDItGEkpbRKFJ2
flutter: [EVENT]: send_message
flutter: Settings registered: PushNotificationSettings {sound: true, alert: true, badge: true, provisional: false}
flutter:
Where can I put this key?
I puted already in chatState.dart the serverToken key but i don't receiving notification when I send message with phone, but when I send with firebase I receiving.
Bookmark option is disabled. How to make this option working.
Hello,
really nice job, congratulations!
What do you think about the sorting of the chat list? Now they are sorted by users, not by last message. How would you implement a chat list sorting by last message?
I created a new user. I went to the search screen. I clicked on the user I created before. I said follow and detected a mistake there. When I first clicked the follow button, I seemed to switch to that profile. Then when I click on profile it improved.
Just updated my flutter version and error popped up in "customRoute.dart "
This is the i am getting as of now :
"The getter 'isInitialRoute' isn't defined for the type 'RouteSettings'.
Try importing the library that defines 'isInitialRoute', correcting the name to the name of an existing getter, or defining a getter or field named 'isInitialRoute'."
Please check and let me know if the error is universal.
How about markup Editor,
I have created a simple note app supporting markup editing. Wouldn't it be unique if implemented here? For non microblogs.
Hi bro. this is so awesome Project,
can i ask you or maybe help me to fix my problem.
so i want to make user can initiate a chat to other from their tweet.
eg : in other post we can see message icon, if we click it. we will navigae to the chat with them..
picture:
https://drive.google.com/file/d/15HvezJ7zzqDFlMd01lCgQXdB1kQtVpVO/view?usp=sharing
in the tweeticonsrow.dart i add this code
_iconWidget(
context,
text:'',
icon: AppIcon.messageEmpty,
iconColor: iconColor,
size: size ?? 20,
onPressed: () {
final chatState = Provider.of<ChatState>(context, listen: false);
chatState.setChatUser = authState.profileUserModel;
Navigator.of(context).pushNamed('/ChatScreenPage');
},
),
but still navigate to my personal chat. how can i implement if (!isMyProfile){}
i figure out the same case like in the profilepage.dart
onPressed: () {
if (!isMyProfile) {
final chatState =
Provider.of<ChatState>(
context,
listen: false);
chatState.setChatUser =
authstate.profileUserModel;
Navigator.pushNamed(
context, '/ChatScreenPage');
}
},
but when i add this to the code in tweeticonsrow.dart. it shows so many errors. help me pls
i dont know how to call and declare isMyProfile. Thanks bro
Tree shake icons fonts
While Building an app I'm getting following errors :(
This application cannot tree shake icons fonts. It has non-constant instances of IconData at the following locations:
- file:///C:/flutter_twitter_clone-master/lib/page/profile/profilePage.dart:168:43
- file:///C:/flutter_twitter_clone-master/lib/widgets/customWidgets.dart:70:7
Target aot_android_asset_bundle failed: Exception: Avoid non-constant invocations of IconData or try to build again with --no-tree-shake-icons.
build failed.
FAILURE: Build failed with an exception.
Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 896What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.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
BUILD FAILED in 2m 14s
Running Gradle task 'assembleRelease'... 136.3s (!)
Gradle task assembleRelease failed with exit code 1
Process finished with exit code 1
I search on Google as well as on StackOverflow but found nothing. It must be a bug which is in the project or maybe I'm doing something wrong.
My IDE configuration is as follow
Android Studio 4.0
Build #AI-193.6911.18.40.6514223, built on May 20, 2020
Runtime version: 1.8.0_242-release-1644-b01 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 2014M
Cores: 4
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: Dart, org.jetbrains.kotlin, com.google.services.firebase, com.intellij.marketplace, com.thoughtworks.gauge, io.flutter, org.intellij.plugins.markdown
JAVA configuration as follow
jdk1.8.0_261
jre1.8.0_261
jdk-11 (JDK 11 is my JAVA_HOME in environment variable)
Hello Alpha,
Really nice project. In the chat model I see that you created the βunseenβ field. Actually, when new messages are available, I do not see any difference between read and unread messages in the chatlistpage.
How would you implement the unread/read messages feature?
How can we make that pic in feed page have a little lower quality, like thumbnail, and when we open picture to have full quality .. asking bc to images in list loading faster..
Describe the bug
A clear and concise description of what the bug is.
https://flutter.dev/docs/release/breaking-changes/route-navigator-refactoring
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Hi there's no way to understand how you implemented firebase remote config.
There's an issue with WillPopScope() in several places. mainly at back button from chatscreen.
Describe the bug
when pressing the follow button the button stay gray and im geting the following error
ββββββββ Exception caught by scheduler library βββββββββββββββββββββββββββββββββββββββββββββββββββββ
The following assertion was thrown during a scheduler callback:
Tried to listen to a value exposed with provider, from outside of the widget tree.
This is likely caused by an event handler (like a button's onPressed) that called
Provider.of without passing listen: false
.
To fix, write:
Provider.of(context, listen: false);
It is unsupported because may pointlessly rebuild the widget associated to the
event handler, when the widget tree doesn't care about the value.
The context used was: HomePage(dependencies: [_InheritedProviderScope], state: _HomePageState#72bcb)
'package:provider/src/provider.dart':
Failed assertion: line 191 pos 7: 'context.owner.debugBuilding ||
listen == false ||
debugIsInInheritedProviderUpdate'
When the exception was thrown, this was the stack:
#2 Provider.of (package:provider/src/provider.dart:191:7)
#3 _HomePageState._checkNotification. (package:flutter_twitter_clone/page/homePage.dart:86:28)
#4 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1113:15)
#5 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1060:9)
#6 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:968:5)
...
When we update the profile details, the following list gets deleted i.e, it becomes 0. Maybe some issue in authState.
The last update have problem, don't showing post on the feed page, also don't showing posts on the user profile, when post is created on the feed page is visible only some second und after this showing loading indicator und staying like this..
automatic random end of username? How can I fix this situation?
in the feedPage list get the all data correctly but when map and passing to the Tweet it is not the correct data when map the model there is an issue please check that
Retweet without comentary not abaible?
I can retweet with comentary but not without
Have you experienced this issue "The getter 'isInitialRoute' isn't defined for the type 'RouteSettings'."
ββββββββ Exception caught by scheduler library βββββββββββββββββββββββββββββββββββββββββββββββββββββ
The following assertion was thrown during a scheduler callback:
Tried to listen to a value exposed with provider, from outside of the widget tree.
This is likely caused by an event handler (like a button's onPressed) that called
Provider.of without passing listen: false
.
To fix, write:
Provider.of(context, listen: false);
It is unsupported because may pointlessly rebuild the widget associated to the
event handler, when the widget tree doesn't care about the value.
The context used was: HomePage(dependencies: [_DefaultInheritedProviderScope], state: _HomePageState#074c3)
'package:provider/src/provider.dart':
Failed assertion: line 193 pos 7: 'context.owner.debugBuilding || listen == false || _debugIsInInheritedProviderUpdate'
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md
When the exception was thrown, this was the stack:
#2 Provider.of (package:provider/src/provider.dart:193:7)
#3 _HomePageState._checkNotification. (package:twitterapp2/page/homePage.dart:86:28)
#4 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1102:15)
#5 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1049:9)
#6 SchedulerBinding.scheduleWarmUpFrame. (package:flutter/src/scheduler/binding.dart:850:7)
...
hi sonu, can you please share your business contact details.
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.