import 'package:flutter/material.dart';
import 'package:mighty_school/common/widget/numbering_widget.dart';
import 'package:mighty_school/feature/reports_management/accounting_reports/domain/model/income_statement_reports_model.dart';
import 'package:mighty_school/util/dimensions.dart';
import 'package:mighty_school/util/styles.dart';

class IncomeStatementItemWidget extends StatelessWidget {
  final Ledgers item;
  final int index;
  const IncomeStatementItemWidget({super.key, required this.item, required this.index});

  @override
  Widget build(BuildContext context) {
    return Row(spacing: Dimensions.paddingSizeDefault, children: [
      NumberingWidget(index: index),
      Expanded(child: Text(item.ledgerName ?? '', style: textRegular)),
      Expanded(child: Text(item.totalDebit ?? '', style: textRegular)),
      Expanded(child: Text(item.totalCredit ?? '', style: textRegular)),

    ]);
  }
}
