Commit 9fbbf730 authored by Sai Srinivas's avatar Sai Srinivas
Browse files

Complain bill design changes

parent 2a087139
......@@ -1019,6 +1019,8 @@ class _VisitdetailsState extends State<Visitdetails> {
width: double.infinity,
height: 350,
child: ListView.builder(
shrinkWrap: true, //
physics: NeverScrollableScrollPhysics(), //
padding: EdgeInsets.all(12),
itemCount: complaintBillList!.length,
itemBuilder: (context, index) {
......@@ -1027,8 +1029,7 @@ class _VisitdetailsState extends State<Visitdetails> {
margin: EdgeInsets.only(bottom: 12),
elevation: 0,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
child: Padding(
padding: const EdgeInsets.all(14),
child: Padding(padding: const EdgeInsets.all(14),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
......@@ -1052,7 +1053,7 @@ class _VisitdetailsState extends State<Visitdetails> {
),
clipBehavior: Clip.antiAlias,
child: SvgPicture.asset(
"assets/svg/compliant_list_ic.svg",
"assets/svg/order/tpc_details_req_ic.svg",
),
),
......@@ -1065,30 +1066,34 @@ class _VisitdetailsState extends State<Visitdetails> {
children: [
Text(
item.narration ?? "-",
style: const TextStyle(
fontFamily: "Plus Jakarta Sans",
fontWeight: FontWeight.w400,
style: TextStyle(
fontFamily:
"JakartaMedium",
fontSize: 14,
color: Colors.black87,
color:
AppColors
.semi_black,
),
),
const SizedBox(height: 3),
Text(
item.dueDate ?? "-",
style: TextStyle(
fontFamily: "JakartaRegular",
fontSize: 12,
fontWeight: FontWeight.w400,
color: Colors.grey.shade600,
height: 1.4,
),
),
if (item.billPaid != "0")
Text(item.totalAmount ?? "",
style: TextStyle(
fontSize: 14,
color: AppColors.app_blue,
),),
],
),
),
if (item.billPaid != "1")
Text(item.totalAmount ?? "",
style: TextStyle(
fontSize: 14,
color: AppColors.app_blue,
),),
// Call
if (item.billPaid == "0")
if (item.billPaid != "0")
InkResponse(
onTap: (){
var homeProvider = Provider.of<HomescreenNotifier>(
......@@ -1106,13 +1111,52 @@ class _VisitdetailsState extends State<Visitdetails> {
))
);
},
child: Text("Pay Now", style: TextStyle(
fontSize: 14,
color: AppColors.app_blue,
),),
child: Container(
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
decoration: BoxDecoration(
color: Colors.white,
border: Border.all(
color: AppColors.app_blue,
width: 1,
),
borderRadius: BorderRadius.circular(8),
),
child: Text("Pay Now", style: TextStyle(
fontSize: 14,
color: Colors.black87,
),),
),
)
],
),
SizedBox(height: 10,),
Row(
children: [
Expanded(
flex: 2,
child: Text(
"Time",
style: TextStyle(
fontSize: 14,
fontFamily: "JakartaSemiBold",
),
),
),
Expanded(
flex: 7,
child: DottedLine(
dashGapLength: 4,
dashGapColor: Colors.white,
dashColor: AppColors.grey_semi,
dashLength: 2,
lineThickness: 0.5,
),
),
],
),
SizedBox(height: 4,),
_detailRow("Bill Date", item.billDate),
_detailRow("Due Date", item.dueDate),
],
),
),
......@@ -1345,18 +1389,28 @@ class _VisitdetailsState extends State<Visitdetails> {
Widget _detailRow(String title, String? value) {
return Padding(
padding: const EdgeInsets.only(bottom: 8),
padding: EdgeInsets.symmetric(
vertical: 3,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"$title: ",
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 14),
),
Expanded(
child: Text(
value ?? "--",
style: TextStyle(fontSize: 14),
"$title: ",
style: TextStyle(
fontFamily: "JakartaRegular",
fontSize: 14,
color: AppColors.semi_black,
),
),
),
Text(
value ?? "--",
style: TextStyle(
fontSize: 14,
color: AppColors.grey_semi,
),
),
],
......
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