Request and Chat WIP
parent
a47cae92f2
commit
711be7f5da
@ -0,0 +1,195 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:mc_common_app/classes/consts.dart';
|
||||||
|
import 'package:mc_common_app/extensions/int_extensions.dart';
|
||||||
|
import 'package:mc_common_app/extensions/string_extensions.dart';
|
||||||
|
import 'package:mc_common_app/theme/colors.dart';
|
||||||
|
import 'package:mc_common_app/widgets/button/show_fill_button.dart';
|
||||||
|
import 'package:mc_common_app/widgets/common_widgets/app_bar.dart';
|
||||||
|
import 'package:mc_common_app/widgets/extensions/extensions_widget.dart';
|
||||||
|
import 'package:mc_common_app/widgets/txt_field.dart';
|
||||||
|
|
||||||
|
class ChatView extends StatelessWidget {
|
||||||
|
const ChatView({super.key});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Scaffold(
|
||||||
|
appBar: CustomAppBar(title: "Chat"),
|
||||||
|
body: Column(
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
|
child: ListView.separated(
|
||||||
|
itemCount: 15,
|
||||||
|
separatorBuilder: (BuildContext context, int index) => 20.height,
|
||||||
|
itemBuilder: (BuildContext context, int index) {
|
||||||
|
return ChatMessageCustomWidget(
|
||||||
|
isSent: index.isOdd,
|
||||||
|
profileUrl: MyAssets.bnCar,
|
||||||
|
messageText: "Hi, How Are you? I can help you out with the desired request.",
|
||||||
|
messageTypeEnum: index == 10
|
||||||
|
? (MessageTypeEnum.newOfferRequired)
|
||||||
|
: index == 12
|
||||||
|
? (MessageTypeEnum.offerProvided)
|
||||||
|
: (MessageTypeEnum.text),
|
||||||
|
senderName: "Al Abdullah Cars",
|
||||||
|
);
|
||||||
|
}).horPaddingMain(),
|
||||||
|
),
|
||||||
|
10.width,
|
||||||
|
Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
|
flex: 7,
|
||||||
|
child: TxtField(
|
||||||
|
// value: adVM.vehicleDemandAmount,
|
||||||
|
// errorValue: adVM.demandAmountError,
|
||||||
|
hint: "Type your message here..",
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
|
isNeedBorder: false,
|
||||||
|
onChanged: (v) => null,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
flex: 1,
|
||||||
|
child: Icon(
|
||||||
|
Icons.send_rounded,
|
||||||
|
color: MyColors.darkPrimaryColor,
|
||||||
|
size: 30,
|
||||||
|
).onPress(() {}))
|
||||||
|
],
|
||||||
|
).toContainer(isShadowEnabled: true),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
// body:
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ChatMessageCustomWidget extends StatelessWidget {
|
||||||
|
final String profileUrl;
|
||||||
|
final String senderName;
|
||||||
|
final String messageText;
|
||||||
|
final MessageTypeEnum messageTypeEnum;
|
||||||
|
final bool isSent;
|
||||||
|
|
||||||
|
const ChatMessageCustomWidget({
|
||||||
|
super.key,
|
||||||
|
required this.profileUrl,
|
||||||
|
required this.senderName,
|
||||||
|
required this.messageText,
|
||||||
|
required this.messageTypeEnum,
|
||||||
|
required this.isSent,
|
||||||
|
});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Directionality(
|
||||||
|
textDirection: isSent ? TextDirection.rtl : TextDirection.ltr,
|
||||||
|
child: Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
|
flex: 1,
|
||||||
|
child: Image.asset(
|
||||||
|
profileUrl,
|
||||||
|
width: 34,
|
||||||
|
height: 34,
|
||||||
|
fit: BoxFit.fill,
|
||||||
|
).toCircle(borderRadius: 100),
|
||||||
|
),
|
||||||
|
10.width,
|
||||||
|
Expanded(
|
||||||
|
flex: 10,
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
"${isSent ? "You" : senderName}".toText(fontSize: 16, isBold: true),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
5.height,
|
||||||
|
Column(
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
|
child: "${messageText}".toText(
|
||||||
|
color: isSent ? MyColors.white : MyColors.lightTextColor,
|
||||||
|
fontSize: 12,
|
||||||
|
// isBold: true,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
if (messageTypeEnum == MessageTypeEnum.offerProvided || messageTypeEnum == MessageTypeEnum.newOfferRequired) ...[
|
||||||
|
5.height,
|
||||||
|
Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
|
children: [
|
||||||
|
"40000".toText(fontSize: 19, isBold: true),
|
||||||
|
2.width,
|
||||||
|
"SAR".toText(color: MyColors.lightTextColor, height: 2.2, fontSize: 10, isBold: true),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
10.height,
|
||||||
|
if (messageTypeEnum == MessageTypeEnum.newOfferRequired) ...[
|
||||||
|
Center(
|
||||||
|
child: "You asked for the new offer.".toText(
|
||||||
|
color: MyColors.adPendingStatusColor,
|
||||||
|
fontSize: 12,
|
||||||
|
isItalic: true,
|
||||||
|
),
|
||||||
|
).toContainer(borderRadius: 40, width: double.infinity, backgroundColor: MyColors.adPendingStatusColor.withOpacity(0.16)),
|
||||||
|
] else ...[
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
|
child: ShowFillButton(
|
||||||
|
maxHeight: 27,
|
||||||
|
title: "Accept",
|
||||||
|
fontSize: 9,
|
||||||
|
borderColor: MyColors.greenColor,
|
||||||
|
isFilled: false,
|
||||||
|
onPressed: () {},
|
||||||
|
backgroundColor: MyColors.white,
|
||||||
|
txtColor: MyColors.greenColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
20.width,
|
||||||
|
Expanded(
|
||||||
|
child: ShowFillButton(
|
||||||
|
maxHeight: 27,
|
||||||
|
title: "Reject",
|
||||||
|
borderColor: MyColors.redColor,
|
||||||
|
isFilled: false,
|
||||||
|
onPressed: () {},
|
||||||
|
backgroundColor: MyColors.white,
|
||||||
|
txtColor: MyColors.redColor,
|
||||||
|
fontSize: 9,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
).toContainer(
|
||||||
|
isShadowEnabled: !isSent,
|
||||||
|
backgroundColor: isSent ? MyColors.darkIconColor : MyColors.white,
|
||||||
|
borderRadius: 0,
|
||||||
|
margin: EdgeInsets.fromLTRB(isSent ? 25 : 0, 0, !isSent ? 25 : 0, 0),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
enum MessageTypeEnum { text, picture, offerProvided, recording, video, newOfferRequired }
|
||||||
@ -1,138 +0,0 @@
|
|||||||
import 'package:mc_common_app/extensions/string_extensions.dart';
|
|
||||||
import 'package:mc_common_app/utils/enums.dart';
|
|
||||||
|
|
||||||
class Request {
|
|
||||||
int requestType;
|
|
||||||
String requestTypeName;
|
|
||||||
String requestStatusName;
|
|
||||||
RequestStatus requestStatus;
|
|
||||||
String cityName;
|
|
||||||
String vehicleTypeName;
|
|
||||||
String countryName;
|
|
||||||
String customerName;
|
|
||||||
dynamic serviceProviders;
|
|
||||||
int offerCount;
|
|
||||||
int id;
|
|
||||||
int customerId;
|
|
||||||
dynamic customer;
|
|
||||||
String brand;
|
|
||||||
String model;
|
|
||||||
int year;
|
|
||||||
bool isNew;
|
|
||||||
String description;
|
|
||||||
List<dynamic> requestImages;
|
|
||||||
int cityId;
|
|
||||||
dynamic city;
|
|
||||||
double price;
|
|
||||||
int paymentStatus;
|
|
||||||
int vehicleTypeId;
|
|
||||||
int countryId;
|
|
||||||
List<dynamic> requestProviderItem;
|
|
||||||
bool isActive;
|
|
||||||
int createdBy;
|
|
||||||
DateTime createdOn;
|
|
||||||
dynamic modifiedBy;
|
|
||||||
dynamic modifiedOn;
|
|
||||||
|
|
||||||
Request({
|
|
||||||
required this.requestType,
|
|
||||||
required this.requestTypeName,
|
|
||||||
required this.requestStatusName,
|
|
||||||
required this.requestStatus,
|
|
||||||
required this.cityName,
|
|
||||||
required this.vehicleTypeName,
|
|
||||||
required this.countryName,
|
|
||||||
required this.customerName,
|
|
||||||
required this.serviceProviders,
|
|
||||||
required this.offerCount,
|
|
||||||
required this.id,
|
|
||||||
required this.customerId,
|
|
||||||
required this.customer,
|
|
||||||
required this.brand,
|
|
||||||
required this.model,
|
|
||||||
required this.year,
|
|
||||||
required this.isNew,
|
|
||||||
required this.description,
|
|
||||||
required this.requestImages,
|
|
||||||
required this.cityId,
|
|
||||||
required this.city,
|
|
||||||
required this.price,
|
|
||||||
required this.paymentStatus,
|
|
||||||
required this.vehicleTypeId,
|
|
||||||
required this.countryId,
|
|
||||||
required this.requestProviderItem,
|
|
||||||
required this.isActive,
|
|
||||||
required this.createdBy,
|
|
||||||
required this.createdOn,
|
|
||||||
required this.modifiedBy,
|
|
||||||
required this.modifiedOn,
|
|
||||||
});
|
|
||||||
|
|
||||||
factory Request.fromJson(Map<String, dynamic> json) => Request(
|
|
||||||
requestType: json["requestType"],
|
|
||||||
requestTypeName: json["requestTypeName"],
|
|
||||||
requestStatusName: json["requestStatusName"],
|
|
||||||
requestStatus: (json['requestStatus'] as int).toRequestStatusEnum(),
|
|
||||||
cityName: json["cityName"],
|
|
||||||
vehicleTypeName: json["vehicleTypeName"],
|
|
||||||
countryName: json["countryName"],
|
|
||||||
customerName: json["customerName"],
|
|
||||||
serviceProviders: json["serviceProviders"],
|
|
||||||
offerCount: json["offerCount"],
|
|
||||||
id: json["id"],
|
|
||||||
customerId: json["customerID"],
|
|
||||||
customer: json["customer"],
|
|
||||||
brand: json["brand"],
|
|
||||||
model: json["model"],
|
|
||||||
year: json["year"],
|
|
||||||
isNew: json["isNew"],
|
|
||||||
description: json["description"],
|
|
||||||
requestImages: List<dynamic>.from(json["requestImages"].map((x) => x)),
|
|
||||||
cityId: json["cityID"],
|
|
||||||
city: json["city"],
|
|
||||||
price: json["price"],
|
|
||||||
paymentStatus: json["paymentStatus"],
|
|
||||||
vehicleTypeId: json["vehicleTypeID"],
|
|
||||||
countryId: json["countryID"],
|
|
||||||
requestProviderItem: List<dynamic>.from(json["requestProviderItem"].map((x) => x)),
|
|
||||||
isActive: json["isActive"],
|
|
||||||
createdBy: json["createdBy"],
|
|
||||||
createdOn: DateTime.parse(json["createdOn"]),
|
|
||||||
modifiedBy: json["modifiedBy"],
|
|
||||||
modifiedOn: json["modifiedOn"],
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => {
|
|
||||||
"requestType": requestType,
|
|
||||||
"requestTypeName": requestTypeName,
|
|
||||||
"requestStatusName": requestStatusName,
|
|
||||||
"requestStatus": requestStatus,
|
|
||||||
"cityName": cityName,
|
|
||||||
"vehicleTypeName": vehicleTypeName,
|
|
||||||
"countryName": countryName,
|
|
||||||
"customerName": customerName,
|
|
||||||
"serviceProviders": serviceProviders,
|
|
||||||
"offerCount": offerCount,
|
|
||||||
"id": id,
|
|
||||||
"customerID": customerId,
|
|
||||||
"customer": customer,
|
|
||||||
"brand": brand,
|
|
||||||
"model": model,
|
|
||||||
"year": year,
|
|
||||||
"isNew": isNew,
|
|
||||||
"description": description,
|
|
||||||
"requestImages": List<dynamic>.from(requestImages.map((x) => x)),
|
|
||||||
"cityID": cityId,
|
|
||||||
"city": city,
|
|
||||||
"price": price,
|
|
||||||
"paymentStatus": paymentStatus,
|
|
||||||
"vehicleTypeID": vehicleTypeId,
|
|
||||||
"countryID": countryId,
|
|
||||||
"requestProviderItem": List<dynamic>.from(requestProviderItem.map((x) => x)),
|
|
||||||
"isActive": isActive,
|
|
||||||
"createdBy": createdBy,
|
|
||||||
"createdOn": createdOn.toIso8601String(),
|
|
||||||
"modifiedBy": modifiedBy,
|
|
||||||
"modifiedOn": modifiedOn,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,63 +1,69 @@
|
|||||||
import 'package:car_customer_app/view_models/requests_view_model.dart';
|
import 'package:car_customer_app/view_models/requests_view_model.dart';
|
||||||
|
import 'package:car_customer_app/views/requests/widget/request_item.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:mc_common_app/config/routes.dart';
|
||||||
import 'package:mc_common_app/extensions/int_extensions.dart';
|
import 'package:mc_common_app/extensions/int_extensions.dart';
|
||||||
import 'package:mc_common_app/extensions/string_extensions.dart';
|
import 'package:mc_common_app/extensions/string_extensions.dart';
|
||||||
import 'package:mc_common_app/theme/colors.dart';
|
import 'package:mc_common_app/theme/colors.dart';
|
||||||
import 'package:mc_common_app/widgets/button/show_fill_button.dart';
|
import 'package:mc_common_app/utils/enums.dart';
|
||||||
|
import 'package:mc_common_app/utils/navigator.dart';
|
||||||
import 'package:mc_common_app/widgets/common_widgets/categories_list.dart';
|
import 'package:mc_common_app/widgets/common_widgets/categories_list.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
import '../../requests/widget/request_item.dart';
|
|
||||||
|
|
||||||
class RequestsFragment extends StatelessWidget {
|
class RequestsFragment extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Scaffold(
|
||||||
color: MyColors.backgroundColor,
|
body: Container(
|
||||||
width: double.infinity,
|
color: MyColors.backgroundColor,
|
||||||
height: double.infinity,
|
width: double.infinity,
|
||||||
child: Consumer(builder: (BuildContext context, RequestsVM requestsVM, Widget? child) {
|
height: double.infinity,
|
||||||
return Column(
|
child: Consumer(builder: (BuildContext context, RequestsVM requestsVM, Widget? child) {
|
||||||
children: [
|
return Column(
|
||||||
ShowFillButton(
|
children: [
|
||||||
title: "title",
|
16.height,
|
||||||
onPressed: () {
|
FiltersList(
|
||||||
context.read<RequestsVM>().getRequests();
|
filterList: requestsVM.requestsTypeFilterOptions,
|
||||||
}),
|
onFilterTapped: (index, selectedFilterId) {
|
||||||
16.height,
|
requestsVM.applyFilterOnRequestsVM(requestsTypeEnum: selectedFilterId.toRequestTypeStatusEnum());
|
||||||
FiltersList(
|
},
|
||||||
filterList: requestsVM.requestsFilterOptions,
|
),
|
||||||
onFilterTapped: (index, selectedFilterId) => requestsVM.applyFilterOnRequestsVM(index: index),
|
8.height,
|
||||||
),
|
Expanded(
|
||||||
8.height,
|
child: RefreshIndicator(
|
||||||
Expanded(
|
onRefresh: () async => await requestsVM.getMyRequests(isNeedToRebuild: true),
|
||||||
child: requestsVM.isRequestLoading
|
child: requestsVM.state == ViewState.busy
|
||||||
? Center(child: CircularProgressIndicator())
|
? const Center(child: CircularProgressIndicator())
|
||||||
: requestsVM.requests.length == 0
|
: requestsVM.myFilteredRequests.isEmpty
|
||||||
? Center(
|
? Column(
|
||||||
child: "No Request Available".toText(
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
isBold: true,
|
children: [
|
||||||
),
|
"No Requests to show.".toText(fontSize: 16, color: MyColors.lightTextColor),
|
||||||
)
|
],
|
||||||
: ListView.separated(
|
)
|
||||||
itemBuilder: (context, index) {
|
: ListView.separated(
|
||||||
return RequestItem(requestsVM.requests[index]);
|
itemBuilder: (context, index) {
|
||||||
},
|
return RequestItem(request: requestsVM.myRequests[index]);
|
||||||
separatorBuilder: (context, index) {
|
},
|
||||||
return 16.height;
|
separatorBuilder: (context, index) {
|
||||||
},
|
return 16.height;
|
||||||
itemCount: requestsVM.requests.length,
|
},
|
||||||
padding: EdgeInsets.only(
|
itemCount: requestsVM.myRequests.length,
|
||||||
left: 16,
|
padding: EdgeInsets.only(left: 16, right: 16, bottom: 16, top: 8),
|
||||||
right: 16,
|
|
||||||
bottom: 16,
|
|
||||||
top: 8,
|
|
||||||
),
|
),
|
||||||
),
|
))
|
||||||
)
|
],
|
||||||
],
|
);
|
||||||
);
|
}),
|
||||||
}),
|
),
|
||||||
|
floatingActionButton: FloatingActionButton(
|
||||||
|
onPressed: () => navigateWithName(context, AppRoutes.createRequestPage),
|
||||||
|
backgroundColor: MyColors.darkPrimaryColor,
|
||||||
|
child: Icon(
|
||||||
|
Icons.add,
|
||||||
|
color: MyColors.white,
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,84 +1,87 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:mc_common_app/config/routes.dart';
|
||||||
import 'package:mc_common_app/extensions/int_extensions.dart';
|
import 'package:mc_common_app/extensions/int_extensions.dart';
|
||||||
import 'package:mc_common_app/extensions/string_extensions.dart';
|
import 'package:mc_common_app/extensions/string_extensions.dart';
|
||||||
|
import 'package:mc_common_app/models/requests/offers_model.dart';
|
||||||
import 'package:mc_common_app/theme/colors.dart';
|
import 'package:mc_common_app/theme/colors.dart';
|
||||||
|
import 'package:mc_common_app/utils/navigator.dart';
|
||||||
import 'package:mc_common_app/widgets/common_widgets/app_bar.dart';
|
import 'package:mc_common_app/widgets/common_widgets/app_bar.dart';
|
||||||
import 'package:mc_common_app/widgets/extensions/extensions_widget.dart';
|
import 'package:mc_common_app/widgets/extensions/extensions_widget.dart';
|
||||||
|
|
||||||
class OfferListPage extends StatelessWidget {
|
class OfferListPage extends StatelessWidget {
|
||||||
|
final List<OffersModel> offersList;
|
||||||
|
|
||||||
|
OfferListPage({required this.offersList});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: CustomAppBar(
|
appBar: CustomAppBar(title: "Offers"),
|
||||||
title: "Offers",
|
body: offersList.isEmpty
|
||||||
),
|
? Center(child: "No Requests to show.".toText(fontSize: 16, color: MyColors.lightTextColor))
|
||||||
body: ListView.separated(
|
: ListView.separated(
|
||||||
itemBuilder: (context, index) {
|
itemCount: offersList.length,
|
||||||
return showOfferItem();
|
padding: EdgeInsets.all(16),
|
||||||
},
|
itemBuilder: (context, index) {
|
||||||
separatorBuilder: (context, index) {
|
OffersModel offersModel = offersList[index];
|
||||||
return 16.height;
|
return Stack(
|
||||||
},
|
alignment: Alignment.bottomRight,
|
||||||
itemCount: 2,
|
children: [
|
||||||
padding: EdgeInsets.all(16),
|
Column(
|
||||||
),
|
children: [
|
||||||
);
|
Row(
|
||||||
}
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
"${offersModel.serviceProvider!.companyName ?? ""}".toText(fontSize: 16, isBold: true),
|
||||||
|
|
||||||
Widget showOfferItem() {
|
//Un read offers count
|
||||||
return Stack(
|
|
||||||
alignment: Alignment.bottomRight,
|
// Center(
|
||||||
children: [
|
// child: "2".toText(
|
||||||
Column(
|
// color: Colors.white,
|
||||||
children: [
|
// isBold: true,
|
||||||
Row(
|
// fontSize: 10,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
// ),
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
// ).toContainer(
|
||||||
children: [
|
// backgroundColor: MyColors.redColor,
|
||||||
"Toyota Corolla".toText(fontSize: 16, isBold: true),
|
// borderRadius: 100,
|
||||||
Center(
|
// paddingAll: 1,
|
||||||
child: "2".toText(
|
// width: 20,
|
||||||
color: Colors.white,
|
// height: 20,
|
||||||
isBold: true,
|
// ),
|
||||||
fontSize: 10,
|
],
|
||||||
),
|
),
|
||||||
).toContainer(
|
8.height,
|
||||||
backgroundColor: MyColors.redColor,
|
Row(
|
||||||
borderRadius: 100,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
paddingAll: 1,
|
children: [
|
||||||
width: 20,
|
Expanded(
|
||||||
height: 20,
|
child: "${offersModel.comment} and This is dummy text edition.".toText(
|
||||||
),
|
color: MyColors.lightTextColor,
|
||||||
],
|
fontSize: 12,
|
||||||
),
|
),
|
||||||
8.height,
|
),
|
||||||
Row(
|
12.width,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
"9 Hours Ago".toText(
|
||||||
children: [
|
color: MyColors.lightTextColor,
|
||||||
Expanded(
|
)
|
||||||
child:
|
],
|
||||||
"Dear, how you doing. I have great offer for You for this car. Dear, how you doing. I have great offer for You for this car. Dear, how you doing. I have great offer for You for this car. Dear, how you doing. I have great offer for You for this car. Dear, how you doing. I have great offer for You for this car."
|
),
|
||||||
.toText(
|
],
|
||||||
color: MyColors.lightTextColor,
|
),
|
||||||
fontSize: 12,
|
Icon(
|
||||||
),
|
Icons.arrow_forward,
|
||||||
),
|
color: MyColors.darkIconColor,
|
||||||
12.width,
|
size: 18,
|
||||||
"9 Hours Ago".toText(
|
),
|
||||||
color: MyColors.lightTextColor,
|
],
|
||||||
)
|
).onPress(() {
|
||||||
],
|
navigateWithName(context, AppRoutes.chatView);
|
||||||
|
}).toContainer(isShadowEnabled: true);
|
||||||
|
},
|
||||||
|
separatorBuilder: (context, index) => 16.height,
|
||||||
),
|
),
|
||||||
],
|
|
||||||
),
|
|
||||||
Icon(
|
|
||||||
Icons.arrow_forward,
|
|
||||||
color: MyColors.darkIconColor,
|
|
||||||
size: 18,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
).toContainer(
|
|
||||||
isShadowEnabled: true,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue