index_page.dart 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. // import 'package:flutter/material.dart';
  2. // import 'package:flutter/cupertino.dart';
  3. // import 'home_page.dart';
  4. // import 'Information_page.dart';
  5. // import 'Mine_page.dart';
  6. // import 'Orders_page.dart';
  7. //
  8. // class IndexPage extends StatefulWidget {
  9. // const IndexPage({Key? key}) : super(key: key);
  10. //
  11. // @override
  12. // _IndexPageState createState() => _IndexPageState();
  13. // }
  14. //
  15. // class _IndexPageState extends State<IndexPage> {
  16. // List bottom_icons = [
  17. // 'assets/images/HomesNOImgaes.png',
  18. // "assets/images/MineNOImgaes.png",
  19. // "assets/images/newsOFFImages.png",
  20. // "assets/images/OrdersNOImgaes.png",
  21. // ];
  22. // List bottom_select_icons = [
  23. // 'assets/images/HomesOFFImgaes.png',
  24. // "assets/images/MineOFFImgaes.png",
  25. // "assets/images/newsONImages.png",
  26. // "assets/images/OrdersOFFImgaes.png",
  27. // ];
  28. //
  29. //
  30. //
  31. //
  32. //
  33. // final List<BottomNavigationBarItem> bottomTabs = [
  34. // BottomNavigationBarItem(
  35. // icon: Icon(CupertinoIcons.home),
  36. // label:'首页',
  37. // ),
  38. // BottomNavigationBarItem(
  39. // icon: Icon(CupertinoIcons.search),
  40. // label: '资讯',
  41. //
  42. // ),
  43. // BottomNavigationBarItem(
  44. // icon: Icon(CupertinoIcons.shopping_cart),
  45. // label: '订单',
  46. //
  47. // ),
  48. // BottomNavigationBarItem(
  49. // icon: Icon(CupertinoIcons.profile_circled),
  50. // label: '我的',
  51. // ),
  52. // ];
  53. //
  54. // final List tabBodies = [
  55. // HomePage(),
  56. // InformationPage(),
  57. // OrdersPage(),
  58. // MinePage(),
  59. // ];
  60. //
  61. // int currentIndex = 0;
  62. // var currentPage;
  63. //
  64. // @override
  65. // void initState() {
  66. // super.initState();
  67. // currentPage = tabBodies[currentIndex];
  68. //
  69. // }
  70. //
  71. // @override
  72. // Widget build(BuildContext context) {
  73. // // TODO: implement build
  74. // return Scaffold(
  75. // backgroundColor: Color.fromRGBO(244, 245, 245, 1),
  76. // bottomNavigationBar: BottomNavigationBar(
  77. // type: BottomNavigationBarType.fixed,
  78. // currentIndex: currentIndex,
  79. // items: bottomTabs,
  80. // onTap: (index){
  81. // setState(() {
  82. // currentIndex = index;
  83. // currentPage = tabBodies[currentIndex];
  84. // });
  85. // },
  86. // ),
  87. // body: currentPage,
  88. // );
  89. // }
  90. // }