),

label:

'Tab 2'

),

],

currentIndex:

),

);

Code after migration (Providing localizations via the CupertinoApp):

import

'package:flutter/cupertino.dart'

void

main

()

runApp

Foo

());

class

Foo

extends

StatelessWidget

@override

Widget

build

BuildContext

context

return

CupertinoApp

home:

CupertinoTabBar

items:

const

BottomNavigationBarItem