If your CupertinoTabBar is within the scope
of a CupertinoApp, the DefaultCupertinoLocalizations
is already instantiated and may suit your
needs without having to make a change to your existing code.

If your CupertinoTabBar is not within a CupertinoApp,
you may provide the localizations of
your choosing using the Localizations widget.

Migration guide

If you are seeing a 'localizations != null' assertion error,
make sure locale information is being
provided to your CupertinoTabBar.

Code before migration:

import

'package:flutter/cupertino.dart'

void

main

()

runApp

Foo

());

class

Foo

extends

StatelessWidget

@override

Widget

build