Internship in Invertase: how it went?

Internship in Invertase: how it went?

I'm Odinachi, pronounced literally, and I am a member of the Flutter Lagos community. On our WhatsApp group an opportunity was shared, "Flutter/Dart internship at Invertase". With a little dig into the company and team, I realized this is going to be a once in a lifetime opportunity. I applied and hoped for the best. On 14th of June, I got a very valuable gift! I was selected for the internship. I was so excited and couldn't wait to start.

Welcome Email snippet

Words could not explain how joyous I felt, but that was just the beginning of what will be a bedrock of greatness! On the 21st of June, we had our on-boarding session, where we met our mentors and colleagues. In the session, we got the opportunity to meet Majid, Mais, Mike, Andrei, Volodymyr, Guillaume, and Elliot, who were our mentors. Ahmed, Beyza, Cagla, Donald (my buddy), Fatimah, Praynay, and Mo (my buddy too!) were my colleagues, and we were split up into teams and assigned Mentors who supervised and assigned us tasks.

FlutterFire UI: #

My first assignment was to understand what FlutterFire UI was and how it works. FlutterFire is a helper for installing and managing Firebase in your Flutter applications. FlutterFire UI is a UI component that does the developer's heavy lifting of Firebase authentication and provides template authentication UI to start with.

How to use FlutterFire UI: #

During my two months at Invertase, I was tasked with demonstrating how FlutterFire UI works. So I would like to share what I learned by showing you how you can use FlutterFire UI with GoRouter for a seamless authentication process.

First, you need to have NodeJS installed on your machine. You can download it from here.

Then, you need to install the Firebase CLI. You can do this by running the following command in your terminal:

Then, install FlutterFire CLI as a global Dart package:

Then, create a new Flutter project:

Then, add the FlutterFire UI package to your pubspec.yaml file:

And the Firebase packages needed for authentication:

Next, set-up your Firebase project. You can do this by running the following command:

Finally, for our tutorial, add the following packages:

flutter_dotenv: this package will be used for saving our Google key used for Google authentication in an .env file.

Create the following files namely:

  1. auth_screen.dart (this will house our authentication UI)
  2. home_screen.dart (this will be our home screen)
  3. verify_email_screen.dart (this will be our email verification screen)

Go to your main.dart, and add the following code:

Afterwards, create a router instance to manage your routes

The code above manages your routes so if the user is logged in, they'll be moved to the home page else they'll be asked to authenticate.

Next, in your auth_screen.dart, add the following code:

Actions are basically what you could call events, so you handle them based on what event is being triggered at a time and providers are methods in which you want the authentication to be done

Next, in your verify_email_screen.dart, you should have the following code:

In the code above, we want to move the user to the home screen when their email is verified.

Next, in your home_screen.dart you should have

In the code above, users can log out or delete their account if they want to.

Finally, in your root directory, create a .env file and assign a GOOGLE_KEY to the value of your Google key like this:

YOu can get your Google Key by going to the Firebase Console -> Authetication -> Add provider -> Google -> Web client ID

When all of these are connected, this is the outcome:

Image description

You can get the full code here.

Other activities in the internship program #

  • we had a session with Lukas Klingsbo where we discussed Flame and what it is, and we built a simple game with it; in the future, I'll be detailing how it can be used from my experience.
  • we had a session with Remi Rousselet where he walked us through Riverpod. It was quite an interesting session for me because Remi is my mentor, it felt like learning at a master's feat, and I automatically adapted Riverpod as my default state management after that lecture... who wouldn't?😂😂

My upcoming goals #

From now on, I'll be active in the open source community for Flutter and contribute as much as possible; I already have a mentor to guide me on that.

Credits #

Special thanks to Andrei Lesnitsky for being such a great mentor and my go-to person throughout the program. He always made time to attend to my inquiries and give advice and corrections on every step.

My sincere gratitude to Majid Hajian for the advice and encouragement; your presence was like a light that exposed us to many possibilities; thank you for challenging us.

All of this wouldn't be possible without Invertase and the beautiful people behind the company; I'm super grateful for the opportunity, and to Guillaume, Mais and Volodymyr, you guys are amazing, and I'm proud to have spent two months with you.

Mo and Donald, you're like a family Invertase gave me; I'm rooting for you and the rest of my colleagues; you all rock.

Advices for Prospective Interns #

After I was announced, I got looks of messages asking how the application process was and what my recommendations would be, so let me put it out here.

  1. It'll be of excellent service if you understand the basics of Flutter and Dart.
  2. You should have an evident passion for Open Source and be open-minded to learning new things.
  3. You should be good enough in writing to convince anyone about your passion for Open Source and why you choose Open Source.
  4. Be ready to do the work, not just the hours.

Thank you for reading!

Enjoyed this blog post? Please consider sharing it:

Sign up to receive our latest updates