Creating A Linux Terminal App using Flutter and Firebase
4 min readJan 7, 2021
In this article, I'm going to discuss how can we build an app that can run Linux command and save and store the data in firebase.
Let's start building our app…..
- first, we need to add dependencies in our app.
- cloud_firestore: ^0.14.0+2
- firebase_core: ^0.5.0
- http: ^0.12.2
- avatar_glow:
- splashscreen: ^1.2.0
after you add this dependency in your pubspec.yml
- create the structure of the app
- first, we have a splash screen in-app, which is containing and image and spinner
- after the splash screen, I have an animated page where I included image, text, and button I'm using delay animation in this
- I have used routes to navigate between screens
- for the image, have created an assets folder in your project, or u can use the network URL, I'm using network image
- I have used delay animation
- Wrap it in an
InkWell
widget to manage tap callbacks and ripple animations.
- To work with named routes, use the
Navigator.pushNamed()
function.
- Now when someone clicks on get started it will navigate to the second page which is a Linux terminal integrated with firebase
- u have to link your project with firebase in this article I'm not going to cover how to link with firebase, in the below article I have already covered it
- On this screen u can see a text field and a submit btn u can run here any Linux command, in the backend server I'm running a CGI-code which is capable of storing the user's data and giving the result as a command output in the app screen
- here are some of the output of commands
- now when you see in the firebase the data is been stored
- here I have successfully integrated the Linux terminal app with firebase
Thank you for reading..