Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- class Home extends StatefulWidget {
- @override
- State<StatefulWidget> createState() {
- return _HomeState();
- }
- }
- class _HomeState extends State<Home> {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- backgroundColor: Colors.blue,
- title: Text('Home page'),
- ),
- bottomNavigationBar: BottomNavigationBar(
- selectedItemColor: Colors.black,
- unselectedItemColor: Colors.blue,
- currentIndex: 0, // this will be set when a new tab is tapped
- items: [
- BottomNavigationBarItem(
- icon: new Icon(Icons.home),
- title: new Text('Home'),
- ),
- BottomNavigationBarItem(
- icon: new Icon(Icons.map),
- title: new Text('Map'),
- ),
- BottomNavigationBarItem(
- icon: new Icon(Icons.language),
- title: new Text('Useful Links'),
- ),
- BottomNavigationBarItem(
- icon: new Icon(Icons.calendar_today),
- title: new Text('Calendar'),
- ),
- ]
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement