mirrored_repositories/flutter_mall
import 'package:flutter/material.dart';
import 'package:flutter_mall/cart.dart';
import 'package:flutter_mall/categories.dart';
import 'package:flutter_mall/home.dart';
import 'package:flutter_mall/mine.dart';

///
/// 底部导航页-切换页面
///
/// 作者：刘飞华
/// 日期：2023/11/21 17:17
///
final pages = [
  const Home(), //首页
  const Categories(), //分类
  const Cart(), //购物车
  const Mine() //个人主页
];

///
/// 底部导航-图标和文字定义
///
/// 作者：刘飞华
/// 日期：2023/11/21 17:17
///
List<BottomNavigationBarItem> items() {
  return [
    const BottomNavigationBarItem(
      icon: Icon(Icons.home),
      label: '首页',
    ),
    const BottomNavigationBarItem(
      icon: Icon(Icons.category),
      label: '分类',
    ),
    const BottomNavigationBarItem(
      icon: Icon(Icons.shopping_cart),
      label: '购物车',
    ),
    const BottomNavigationBarItem(
      icon: Icon(Icons.person),
      label: '我的',
    ),
  ];
}
