|
|
|
@ -91,7 +91,11 @@ class _TemporaryChatUIState extends State<TemporaryChatUI> {
|
|
|
|
width: 50,
|
|
|
|
width: 50,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: const BoxDecoration(shape: BoxShape.circle, color: AppColor.neutral30),
|
|
|
|
decoration: const BoxDecoration(shape: BoxShape.circle, color: AppColor.neutral30),
|
|
|
|
child: const Icon(Icons.send_rounded).onPress(() {
|
|
|
|
child: IconButton(
|
|
|
|
|
|
|
|
splashColor: Colors.transparent,
|
|
|
|
|
|
|
|
hoverColor: Colors.transparent,
|
|
|
|
|
|
|
|
highlightColor: Colors.transparent,
|
|
|
|
|
|
|
|
onPressed: () {
|
|
|
|
if (textEditingController.text.isNotEmpty) {
|
|
|
|
if (textEditingController.text.isNotEmpty) {
|
|
|
|
final comment = GasRefillComment(
|
|
|
|
final comment = GasRefillComment(
|
|
|
|
id: 0,
|
|
|
|
id: 0,
|
|
|
|
@ -107,7 +111,13 @@ class _TemporaryChatUIState extends State<TemporaryChatUI> {
|
|
|
|
chatList.sort((a, b) => DateTime.parse(b.createdOn!).compareTo(DateTime.parse(a.createdOn!)));
|
|
|
|
chatList.sort((a, b) => DateTime.parse(b.createdOn!).compareTo(DateTime.parse(a.createdOn!)));
|
|
|
|
setState(() {});
|
|
|
|
setState(() {});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})),
|
|
|
|
},
|
|
|
|
|
|
|
|
icon: const Icon(Icons.send_rounded))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// const Icon(Icons.send_rounded).onPress(() {
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|