mirrored_repositories/jobby/lib
import 'package:flutter/material.dart';
import 'package:jobby/models/job.dart';

import '../constants.dart';

class RecentJobCard extends StatelessWidget {
  final Job company;
  RecentJobCard({this.company});
  @override
  Widget build(BuildContext context) {
    return Card(
      elevation: 0.0,
      margin: EdgeInsets.only(right: 18.0, top: 15.0),
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(12.0),
      ),
      child: ListTile(
        leading: Container(
          width: 50.0,
          height: 50.0,
          decoration: BoxDecoration(
            borderRadius: BorderRadius.circular(12.0),
            image: DecorationImage(
              image: AssetImage("assets/images/soundcloud-icon.png"),
              fit: BoxFit.cover,
            ),
          ),
        ),
        title: Text(company.title, style: kTitleStyle),
        subtitle: Text(
          "${company.companyName} • ${company.type}",
        ),
        trailing: Icon(
          Icons.more_vert,
          color: kBlack,
        ),
      ),
    );
  }
}
