import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import '../providers.dart';
import '../widgets.dart';

class InventoryScreen extends StatelessWidget {
  const InventoryScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("Inventory & Stats")),
      body: Consumer<BattleProvider>(
        builder: (context, battleProvider, child) {
          return Column(
            children: [
              // 1. Modularized Stats Widget
              const CharacterStatsWidget(),

              // 2. Modularized Equipped Items Section
              const EquippedItemsWidget(),

              // 3. Modularized Inventory Grid
              const Expanded(child: InventoryGridWidget()),
            ],
          );
        },
      ),
    );
  }
}
