update customer list

This commit is contained in:
tzw
2024-01-29 17:18:23 +06:30
parent bb5a162a2b
commit c9680ca3ca
6 changed files with 59 additions and 41 deletions

View File

@@ -93,7 +93,7 @@ class _CustomerListState extends State<CustomerList> {
BorderRadius.all(Radius.circular(35.0))),
child: Text(
customer.initial,
style: TextStyle(fontSize: 30, color: Colors.white),
style: TextStyle(fontSize: 20, color: Colors.white),
),
),
),
@@ -109,7 +109,7 @@ class _CustomerListState extends State<CustomerList> {
child: new Text(
customer.name ?? "",
style: new TextStyle(
fontSize: 18.0, color: primaryColor),
fontSize: 15.0, color: Colors.black),
),
),
Padding(
@@ -130,38 +130,44 @@ class _CustomerListState extends State<CustomerList> {
),
customer.status == user_invited_status
? Padding(
padding: const EdgeInsets.only(right: 8.0),
child: TextButton(
onPressed: () => _share(customer),
style: TextButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20.0),
side: BorderSide(color: primaryColor))),
child: Row(
children: [
Text(
"Share",
style: TextStyle(fontSize: 12, color: primaryColor),
),
Icon(Icons.share, color: primaryColor),
],
padding: const EdgeInsets.only(right: 10.0),
child: SizedBox(
height: 30,
child: TextButton(
onPressed: () => _share(customer),
style: TextButton.styleFrom(
padding: EdgeInsets.all(0),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20.0),
side: BorderSide(
color: primaryColor.withOpacity(0.2)))),
child: Row(
children: [
Text(
"Share",
style:
TextStyle(fontSize: 12, color: primaryColor),
),
Icon(Icons.share, color: primaryColor, size: 17),
],
),
),
),
)
: Container(),
Column(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
Padding(
padding: const EdgeInsets.only(right: 5),
child: _status(customer.status ?? ""),
),
Padding(
padding: const EdgeInsets.only(right: 5),
child: Text(customer.getLastMessageTime),
),
getCount(customer),
],
Padding(
padding: const EdgeInsets.only(right: 5),
child: Column(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
_status(customer.status ?? ""),
Text(
customer.getLastMessageTime,
style: TextStyle(color: Colors.grey, fontSize: 12),
),
getCount(customer),
],
),
),
],
),