// import 'package:flutter/material.dart'; // import 'package:flutter/cupertino.dart'; // import 'home_page.dart'; // import 'Information_page.dart'; // import 'Mine_page.dart'; // import 'Orders_page.dart'; // // class IndexPage extends StatefulWidget { // const IndexPage({Key? key}) : super(key: key); // // @override // _IndexPageState createState() => _IndexPageState(); // } // // class _IndexPageState extends State<IndexPage> { // List bottom_icons = [ // 'assets/images/HomesNOImgaes.png', // "assets/images/MineNOImgaes.png", // "assets/images/newsOFFImages.png", // "assets/images/OrdersNOImgaes.png", // ]; // List bottom_select_icons = [ // 'assets/images/HomesOFFImgaes.png', // "assets/images/MineOFFImgaes.png", // "assets/images/newsONImages.png", // "assets/images/OrdersOFFImgaes.png", // ]; // // // // // // final List<BottomNavigationBarItem> bottomTabs = [ // BottomNavigationBarItem( // icon: Icon(CupertinoIcons.home), // label:'首页', // ), // BottomNavigationBarItem( // icon: Icon(CupertinoIcons.search), // label: '资讯', // // ), // BottomNavigationBarItem( // icon: Icon(CupertinoIcons.shopping_cart), // label: '订单', // // ), // BottomNavigationBarItem( // icon: Icon(CupertinoIcons.profile_circled), // label: '我的', // ), // ]; // // final List tabBodies = [ // HomePage(), // InformationPage(), // OrdersPage(), // MinePage(), // ]; // // int currentIndex = 0; // var currentPage; // // @override // void initState() { // super.initState(); // currentPage = tabBodies[currentIndex]; // // } // // @override // Widget build(BuildContext context) { // // TODO: implement build // return Scaffold( // backgroundColor: Color.fromRGBO(244, 245, 245, 1), // bottomNavigationBar: BottomNavigationBar( // type: BottomNavigationBarType.fixed, // currentIndex: currentIndex, // items: bottomTabs, // onTap: (index){ // setState(() { // currentIndex = index; // currentPage = tabBodies[currentIndex]; // }); // }, // ), // body: currentPage, // ); // } // }