import 'package:flutter/material.dart'; import 'package:item_tracker/screens/addItem/add_item_screen.dart'; class ItemListScreen extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('物品列表'), ), body: Center( child: Text('这里将显示物品列表'), ), floatingActionButton: FloatingActionButton( onPressed: () { // 添加新物品的逻辑 Navigator.push( context, MaterialPageRoute(builder: (context) => AddItemScreen()), ); }, child: Icon(Icons.add, color: Colors.white,), ), ); } }