fish 1 year ago
parent
commit
d78641e965
1 changed files with 8 additions and 0 deletions
  1. 8 0
      lib/index_page.dart

+ 8 - 0
lib/index_page.dart

@@ -1,4 +1,7 @@
 import 'package:flutter/material.dart';
+import 'package:flutter_provider_demo/pages/home_page.dart';
+import 'package:flutter_provider_demo/pages/message_page.dart';
+import 'package:flutter_provider_demo/pages/mine_page.dart';
 
 /// Description: index page
 /// Time       : 09/03/2023 Sunday
@@ -12,6 +15,11 @@ class IndexPage extends StatefulWidget {
 
 class _IndexPageState extends State<IndexPage> {
   final List<String> _list = <String>[];
+  List<Widget> pages = [
+    const HomePage(),
+    const MessagePage(),
+    const MinePage()
+  ];
 
   @override
   Widget build(BuildContext context) {