mirror of
https://github.com/Linloir/Simple-TCP-Client.git
synced 2025-12-17 08:48:11 +08:00
29 lines
569 B
Dart
29 lines
569 B
Dart
/*
|
|
* @Author : Linloir
|
|
* @Date : 2022-10-14 17:04:20
|
|
* @LastEditTime : 2022-10-14 17:34:12
|
|
* @Description :
|
|
*/
|
|
|
|
import 'dart:convert';
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:tcp_client/chat/model/chat_history.dart';
|
|
|
|
class ImageBox extends StatelessWidget {
|
|
const ImageBox({
|
|
required this.history,
|
|
super.key
|
|
});
|
|
|
|
final ChatHistory history;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return InkWell(
|
|
onTap: (){},
|
|
child: Image.memory(base64Decode(history.message.contentDecoded))
|
|
);
|
|
}
|
|
}
|