import 'package:flutter/material.dart';

/// Description: index page
/// Time       : 09/03/2023 Sunday
/// Author     : liuyuqi.gov@msn.cn
class IndexPage extends StatefulWidget {
  const IndexPage({super.key});

  @override
  State<IndexPage> createState() => _IndexPageState();
}

class _IndexPageState extends State<IndexPage> {
  List<String> _list = <String>[];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: Placeholder(),
        appBar: AppBar(
          title: Text('Index Page'),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: () {
            setState(() {
              _list.add('Item ${_list.length}');
            });
          },
          tooltip: 'Add Item',
          child: const Icon(Icons.add),
        ),
        bottomNavigationBar: BottomNavigationBar(
          items: const <BottomNavigationBarItem>[
            BottomNavigationBarItem(
              icon: Icon(Icons.home),
              label: 'Home',
            ),
            BottomNavigationBarItem(
              icon: Icon(Icons.business),
              label: 'Message',
            ),
            BottomNavigationBarItem(
              icon: Icon(Icons.school),
              label: 'Mine',
            ),
          ],
        ));
  }
}