Commit d6e51117 authored by Chamindu Madushan's avatar Chamindu Madushan

done the task card on home view

parent 46c1c5ae
import 'package:flutter/material.dart';
class JobCard extends StatelessWidget {
final String companyName;
final String jobTitle;
final String logoImagePath;
final int hourlyRate;
JobCard(
{required this.companyName,
required this.jobTitle,
required this.logoImagePath,
required this.hourlyRate});
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.only(left: 25.0),
child: ClipRRect(
borderRadius: BorderRadius.circular(12),
child: Container(
width: 200,
padding: EdgeInsets.all(12),
color: Colors.grey[100],
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(
height: 60,
child: Image.asset(logoImagePath),
),
ClipRRect(
borderRadius: BorderRadius.circular(5),
child: Container(
padding: EdgeInsets.all(8),
child: Text(
'Running Status',
style: TextStyle(color: Colors.white),
),
color: Colors.grey[500],
),
),
],
),
Padding(
padding: const EdgeInsets.only(top: 8.0),
child: Text(
jobTitle,
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20),
),
),
ClipRRect(
borderRadius: BorderRadius.circular(12),
child: Container(
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 5),
color: Colors.green,
child: Text(
'' + hourlyRate.toString() + '/h',
style: TextStyle(color: Colors.white, fontSize: 20),
),
),
),
],
),
),
),
);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment