mirrored_repositories/flutter-app-example/lib
import 'package:bytebank/components/title_text.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';

class TransferItem extends StatelessWidget {
  final String text;
  final String time;
  final String value;
  const TransferItem({
    Key? key,
    required this.text,
    required this.time,
    required this.value,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ListTile(
      leading: Container(
        height: 50,
        width: 50,
        decoration: BoxDecoration(
          color: Colors.blue.shade100,
          borderRadius: const BorderRadius.all(Radius.circular(10)),
        ),
        child: const Icon(Icons.hd, color: Colors.white),
      ),
      contentPadding: const EdgeInsets.symmetric(),
      title: TitleText(
        text: text,
        fontSize: 14,
      ),
      subtitle: Text(time),
      trailing: Container(
        height: 30,
        width: 60,
        alignment: Alignment.center,
        decoration: BoxDecoration(
          color: Colors.grey.shade100,
          borderRadius: const BorderRadius.all(Radius.circular(10)),
        ),
        child: Text(
          value,
          style: GoogleFonts.mulish(
              fontSize: 15,
              fontWeight: FontWeight.bold,
              color: Colors.green.shade300),
        ),
      ),
    );
  }
}
