mirrored_repositories/Pretty-Ui/Eden/lib/features/home/screens
import 'package:eden/core/utils/utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../../../../core/common/buttons/custom_swipe_button.dart';
import '../../../../core/common/containers/primary_container.dart';

class EarningCard extends StatelessWidget {
  final String title;
  final String amount;
  final void Function() onSwipe;
  const EarningCard({
    required this.amount,
    required this.title,
    required this.onSwipe,
    super.key,
  });

  @override
  Widget build(BuildContext context) {
    return PrimaryContainer(
      padding: EdgeInsets.all(20.h),
      child: Row(
        children: [
          Expanded(
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text(title, style: AppTypography.kLight16),
                Text(amount, style: AppTypography.kLight30),
                SizedBox(height: AppSpacing.thirtyVertical),
                CustomSwipeButton(
                  onSwipe: onSwipe,
                ),
              ],
            ),
          ),
          Image.asset(
            AppAssets.kStudent,
            fit: BoxFit.contain,
          ),
        ],
      ),
    );
  }
}
