Beginning FlutterFire

Aug 30 2022 · Dart 2.16, Flutter 3.0, Visual Studio Code 1.69

Part 2: Add Authentication to Your App

07. Customize Your Labels

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 06. Add a Forgot Password Screen Next episode: 08. What's the Cloud Firestore?

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

There are cases where you might need to change the textField labels of the sign in and sign up screens: this may happen when your app’s language is not English, or when you simply want to customize your labels. THe good news is that you can customize every single label in our screen. Let’s see how to do that:

class LabelOverrides extends DefaultLocalizations { 

 DefaultLocalizations requires an import of the internationalization package, called i10n.dart 

import 'package:flutterfire_ui/i10n.dart'; 
  @override 
  String get emailInputLabel => 'Gimme your email!'; 

  @override 
  String get passwordInputLabel => 'Your password now!'; 

  @override 
  String get signInActionText => 'Enter the club!'; 

  @override 
  String get registerActionText => 'Join the club'; 
localizationsDelegates: [ 
        FlutterFireUILocalizations.withDefaultOverrides(LabelOverrides()), 
],