本文实例为大家分享了Flutter底部导航栏的实现代码,供大家参考,具体内容如下
老规格,先看图:
?
程序主结构如下:
?...1.在程序主入口文件main.dart添加如下代码
import 'package:flutter/material.dart';
import 'bottom_navigation.dart';...(
icon: Icon(Icons.home,color: Colors.blue,),
title: Text('首页',style: TextStyle(color:...,),
title: Text('联系',style: TextStyle(color: Colors.blue))
),
BottomNavigationBarItem...(
icon: Icon(Icons.find_in_page,color: Colors.blue,),
title: Text('发现',style: TextStyle