Skip to content

Google DevFest UK & Ireland 2021: "What I Learned from Building a Flutter App for Cat-Sitters"

Published on · Updated on · 6 min read
Google DevFest logo

Share

Logistics

Conference

DevFest UK & Ireland 2021 was a hybrid one-day conference. It took place in London and online on January 29, 2022. The Google Developer Group (GDG) community organized it. The conference had three on-site tracks and seven online tracks.

Talk

My talk was on-site on Saturday, January 29, 2022, at 5:30 pm. The individual talks didn’t have a URL of their own — instead, they ran as overlay windows on the conference schedule page.

Abstract

Cat-sitters in the UK were less familiar with smartphones than average users. An app for their job was just a tool that needed to work and then get out of the way. And in their work, they often had no or just a shaky network connection.

My challenge was to build iOS and Android apps for these users while simultaneously working on the Angular web app for managers and the Java back-end. I was the lone developer in the SaaS start-up “Your Home In Good Hands”. How could I succeed?!

That’s where Flutter and Firebase came to the rescue: Flutter allowed me to build mobile apps efficiently. And services like Firebase Authentication, Firebase Storage and Google Maps did much of the heavy lifting. I discussed the advantages of Flutter and Firebase and how I dealt with Flutter challenges.

My talk also detailed how I made the mobile apps easy to use and how they worked offline. Finally, I discussed how the mobile and web apps shared a design language while respecting their platforms.

Slides

The slides were available as a PDF (4.7 MB); the PDF version is available for download here.

Download slides (PDF)

Historical note (as of November 2021): Back then, the slides were also available in their original Keynote format (11.2 MB) — with less text, but animated and with a look behind the curtain of individual effects; that file is no longer available today.

Additional Talk Information

I Give Advice

The start-up I’d co-founded was called “Your Home in Good Hands”. As of November 2021: we were in private beta; our service was set to go public at a later date.

Here are some good design books:

Flutter 👍🏻

I had a page dedicated to getting started with Flutter.

Get started with Flutter

I wasn’t ready to fully share our app yet. We had screenshots on our home page, but they were slightly out of date by then.

But I did build a prototype in 2019, which at least showed a Flutter app in motion. Although it was a bit old by then, it was still a decent example of what a native Flutter app could look like. It took me about six weeks and was my first Flutter project. I used Google’s cloud service Firebase for login, No-SQL database, and file storage. I also built my own back-end with Java, JHipster, Spring Boot, and Angular.

Watch the video (YouTube)

Firebase 👍🏻

I also had a page dedicated to getting started with Firebase.

Get started with Firebase

Think Different

Storing data locally and loading & saving data in the background was easy with Flutter. But we could also do that in a web application — more difficult and more restricted, but doable.

I knew because at the end of 2019, I’d built such a web application: a so-called progressive web app (PWA). A PWA used the “Service Worker” in a browser to install on your device and cache data. It took about four weeks, and it was my first PWA. I used Google Workbox for this but developed my own offline storage solution in the browser. I built my back-end with Java, JHipster, Spring Boot, and Angular.

Watch the video (YouTube)

One Source Of Truth

My Get Started with Flutter guide explains the use of Redux as a data store.

Here’s another example of UI inconsistencies. It came from the iPad app of the UK price comparison site Pricespy. That app wasn’t sure whether my list had seven items (top left) or just three (right).

Be Bold

Here’s an example of how Apple made button signifiers stronger. Signifiers make affordances (“does something”) clearer. Some buttons in Apple Music had a slight grey background at the time to stand out — but not all of them. I believed this was a new feature in iOS 15, introduced in September 2021 or later:

The talk showed how, in Android, buttons that changed data were orange, and buttons that cancelled or went back were gray. It was the same on iOS:

The talk also showed how, on iOS, the “junk drawer button” had a label. It didn’t on Android, because by convention, the floating action button there was just a symbol. But at least it was also orange:

Be Consistent

My start-up offered a web app for managers and a mobile app for cat-sitters. So arguably, consistency between them was nice-to-have.

Now most managers were also cat-sitters. So they used both apps. This made consistency a necessity!

So let’s look at the two apps. Here is the mobile app for cat-sitters:

And here is the web app for managers:

So how was this consistent — or how was it different?

  • Both apps used different navigation paradigms. The mobile app had a nav bar at the top (1) and a tab bar at the bottom (2). The web app had breadcrumbs (1) and a header (2).
  • Both apps shared the same colors. For instance, the mobile nav bar (1) & tab bar (2) and the web app breadcrumbs (1) all used the primary brand color. Navigation also used the same kind of blue (3).
  • The apps also used the same Google font for headings (4): Montserrat.
  • Finally, the apps shared symbols from Font Awesome: a walking person in this example (5).

Flutter Native UI 😒

My Get Started with Flutter guide contains a section that explains the iOS UI elements. It also explains responsive layout in Flutter.

In the talk, I mentioned how our users expected a native UI on iOS. Google’s own apps, like Google Maps or Google Mail, had used mostly Material Design UI elements for years. Not anymore: to “really make products feel great on Apple platforms”, Google switched to native iOS UI elements.

If you didn’t use both iOS and Android regularly, you wouldn’t know that they were meaningfully different. Even if you tried to make them look and feel as similar as possible!

Here were three differences:

  1. The page heading was centered on iOS and left-aligned on Android.
  2. The “Edit” button was in the navigation bar on iOS and a floating action button on Android.
  3. When you could tap on a table row on iOS, it had a chevron on the very right. Android didn’t have such an indicator.

Forms were also different:

Here were some differences:

  1. The “Cancel” button had a text label on iOS and a symbol on Android.
  2. Fields had no label on iOS, just a placeholder when they were empty. They had both a permanently visible label and a placeholder on Android.
  3. Text fields on iOS had a “Clear” button. Android didn’t have such a button.

Back To Basics

My Get Started with Flutter guide has an architecture section that explains my proposed use of components & layers.

Get Started With Flutter

Here’s my page for getting started with Flutter.

Get started with Flutter