import 'package:flutter/cupertino.dart';
void main() => runApp(MeuCupertinoApp());
class MeuCupertinoApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return CupertinoApp(
title: 'Cupertino App',
home: CupertinoTabScaffold(
tabBar: CupertinoTabBar(items: const <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: Icon(CupertinoIcons.home), label: 'Home'),
BottomNavigationBarItem(
icon: Icon(CupertinoIcons.settings), label:'Settings'),
]),
tabBuilder: (context, index) {
return const Center(child: Text('Hello World'));
},
),
);
}
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.