Creating a Linux Terminal App in Flutter using stream builder and Firebase
3 min readJan 2, 2021
^_^ In this Flutter App I'm using stream builder to save the data here I'm using firestore database, its basically a terminal app where u can run any command of Linux
Let's start building our app …..
- Firstly u have connected your project with the firebase, if you wanted to know step by step then u can refer to my previous blog for that where I discuss the complete steps
- so after u link your firebase to the app we are now set to move forward
- we need dependencies for our app is
http: ^0.12.2
flutter_statusbarcolor: ^0.2.3
animated_text_kit: ^2.2.0
cloud_firestore: ^0.14.0+2
firebase_core: ^0.5.0
fluttertoast: ^7.1.6
- so in this app, we have a splash screen then the display page having an animated text and a gif and flatbutton to navigate to the next page
- On the second page, there is one card having a child text filed where u can write your command, and I have flatbutton which is having onpressed, the third card there is the display of your command output
- splash screen
- first screen
- in myt() we have toastmsg
- this myt() function is called when there is onTap on the arrow button
- here is the output of some commands..
- now see initially in the firestore there is no collection no document no fields
- after the app build successfully check the firestore whether the data is stored or not
- now see in the firestore collection is created also wee have data like output of cal
- we have stored are data successfully
Thank you for reading