DEV Community

Fwitter - Flutter Based Twitter Clone

Sonu Sharma πŸ’™ on March 31, 2020

Hello guys, I have been working on a project for a long time now It is completed so I thought to share with you. I have developed a working Twitter...
Collapse
 
gurulndgit profile image
gurulnd-git

Fantastic work brother, i am working with your application ..... i need to change the database from firebase realtime to firestore db....

github.com/gurulnd-git/

If you can help me , that will be very great....

Collapse
 
thealphamerc profile image
Sonu Sharma πŸ’™

Hey, it's nice to hear from you. I have migrated Fwitter from realtime to firestore database.
You can find migrated code in firestore branch.

Collapse
 
gurulndgit profile image
gurulnd-git

Can I know why you have migrated from firestore to realtime.... is realtime any better than firestore?

Thread Thread
 
thealphamerc profile image
Sonu Sharma πŸ’™

No I didn't migrate firestore to realtime. In the beginning, I hadn't thought much about the database so I choose realtime db. Now I realize there are some limitations in realtime db so I decide to migrate it to firestore.

Thread Thread
 
gurulndgit profile image
gurulnd-git

Great! I too thought the same so... I went with firestore

Collapse
 
gurulndgit profile image
gurulnd-git

Sonu Sharma,
I am working on a small project as showcase, if I can complete this faster. I will be able to get a freelance project. If I get the project, I am happy to include you in my team. The showcase project is 30% completed.
I have worked in multiple technologies ( web, mobile and cloud ), would you be interested in working with me as partime-freelance job? Further we can communicate privately.

reach out to me : rockerguru92@gmail.com

Collapse
 
mahak20 profile image
Mahak20

I loved the app and wanted to modify it for my liking. But I can't seem to work on Icons. I wanted to ask about the AppIcon class in constant.dart, how do I assign those values if I want more icons to be used? (Like If I wanted to add mic icon)

Collapse
 
thealphamerc profile image
Sonu Sharma πŸ’™

AppIcon class consist integer values of icons. These values are taken from icons.ttf font file available in assets/fonts folder. If you want to add new icon first of all you have to check if this icon is available in icon.ttf file or not.
Now the question is that how to check icon in icon.ttf file. There are so many website available which can show you all icons inside icon font file. For example open fontdrop.info/ website and drag and drop icon file into this and it will show you all available icons and their integer values. Use these integer values to add new icon in AppIcon class.

Collapse
 
mahak20 profile image
Mahak20

Thanks a lot! Appreciate it..

Collapse
 
gurulndgit profile image
gurulnd-git

Hi Sonu,

can you explain this method? i'm quite not understanding how it works? especially how it takes inputs, i saw user of curly braces as parameters, that was new to me... 

//_icon(null,3,icon:3 == state.pageIndex ? AppIcon.messageFill :AppIcon.messageEmpty,isCustomIcon:true),

_icon(IconData iconData,int index,{bool isCustomIcon = false,int icon}){ }

Collapse
 
thealphamerc profile image
Sonu Sharma πŸ’™

This method is a custom widget that is used in app to display icon in bottom navigation bar.
You can pass any icon from Icons class or from AppIcon class but one icon at a time.
When user click on any icon from bottom navigation bar then onPressed method will invoke and it set page index value.

Collapse
 
thealphamerc profile image
Sonu Sharma πŸ’™

It has been two days of Fwitter launch and now project repository is trending on GitHub. It really gives me motivation to contribute to open source projects.

Thanks fluttercommunity to your love and support ❀.

Trending list:- github.com/trending/dart

Source code:- bit.ly/3dELbhn

App link:- lnkd.in/fffp2zk

Collapse
 
abdulkarimalbaik profile image
ABDULKARIMALBAIK

Amazing bro ✌✌✌

Collapse
 
thealphamerc profile image
Sonu Sharma πŸ’™

Thanks