|
|
|
@ -24,6 +24,7 @@ import 'package:shared_preferences/shared_preferences.dart';
|
|
|
|
|
import '../../community/release_dynamic.dart'; |
|
|
|
|
import '../../generated/l10n.dart'; |
|
|
|
|
import '../../utils/font_weight.dart'; |
|
|
|
|
import '../community/photo_view_gallery_screen.dart'; |
|
|
|
|
import '../retrofit/data/base_data.dart'; |
|
|
|
|
import '../retrofit/data/user_info.dart'; |
|
|
|
|
import '../utils/flutter_utils.dart'; |
|
|
|
@ -842,20 +843,20 @@ class _ChatDetailsPage extends State<ChatDetailsPage>
|
|
|
|
|
width: 12.w, |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|
flex: 3, |
|
|
|
|
// flex: 3, |
|
|
|
|
child: Container( |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
borderRadius: BorderRadius.circular(6), |
|
|
|
|
color: Color(0xFFFFFFFF), |
|
|
|
|
boxShadow: [ |
|
|
|
|
BoxShadow( |
|
|
|
|
color: Color(0xFFA8A3A3).withAlpha(12), |
|
|
|
|
offset: Offset(0, 4), |
|
|
|
|
blurRadius: 4, |
|
|
|
|
spreadRadius: 0, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
// decoration: BoxDecoration( |
|
|
|
|
// borderRadius: BorderRadius.circular(6), |
|
|
|
|
// color: Color(0xFFFFFFFF), |
|
|
|
|
// boxShadow: [ |
|
|
|
|
// BoxShadow( |
|
|
|
|
// color: Color(0xFFA8A3A3).withAlpha(12), |
|
|
|
|
// offset: Offset(0, 4), |
|
|
|
|
// blurRadius: 4, |
|
|
|
|
// spreadRadius: 0, |
|
|
|
|
// ), |
|
|
|
|
// ], |
|
|
|
|
// ), |
|
|
|
|
child: GestureDetector( |
|
|
|
|
onLongPress: () { |
|
|
|
|
setState(() {}); |
|
|
|
@ -864,7 +865,7 @@ class _ChatDetailsPage extends State<ChatDetailsPage>
|
|
|
|
|
File(messages[position].attach), |
|
|
|
|
width: 180.h, |
|
|
|
|
height: 200.h, |
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
fit: BoxFit.contain, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -882,29 +883,30 @@ class _ChatDetailsPage extends State<ChatDetailsPage>
|
|
|
|
|
children: [ |
|
|
|
|
Spacer(), |
|
|
|
|
Expanded( |
|
|
|
|
flex: 3, |
|
|
|
|
// flex: 3, |
|
|
|
|
child: Container( |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
borderRadius: BorderRadius.circular(6), |
|
|
|
|
color: Color(0xFFFFFFFF), |
|
|
|
|
boxShadow: [ |
|
|
|
|
BoxShadow( |
|
|
|
|
color: Color(0xFFA8A3A3).withAlpha(12), |
|
|
|
|
offset: Offset(0, 4), |
|
|
|
|
blurRadius: 4, |
|
|
|
|
spreadRadius: 0, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
// decoration: BoxDecoration( |
|
|
|
|
// borderRadius: BorderRadius.circular(6), |
|
|
|
|
// color: Color(0xFFFFFFFF), |
|
|
|
|
// boxShadow: [ |
|
|
|
|
// BoxShadow( |
|
|
|
|
// color: Color(0xFFA8A3A3).withAlpha(12), |
|
|
|
|
// offset: Offset(0, 4), |
|
|
|
|
// blurRadius: 4, |
|
|
|
|
// spreadRadius: 0, |
|
|
|
|
// ), |
|
|
|
|
// ], |
|
|
|
|
// ), |
|
|
|
|
child: GestureDetector( |
|
|
|
|
onLongPress: () { |
|
|
|
|
setState(() {}); |
|
|
|
|
}, |
|
|
|
|
onTap:(){}, |
|
|
|
|
child: Image.file( |
|
|
|
|
File(messages[position].attach), |
|
|
|
|
width: 180.h, |
|
|
|
|
height: 200.h, |
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
fit: BoxFit.contain, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -1023,9 +1025,9 @@ class _ChatDetailsPage extends State<ChatDetailsPage>
|
|
|
|
|
GestureDetector( |
|
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
|
onTap: () { |
|
|
|
|
_onMoreTap(); |
|
|
|
|
jumpToBottom(); |
|
|
|
|
// SmartDialog.showToast("暂不支持", alignment: Alignment.center); |
|
|
|
|
// _onMoreTap(); |
|
|
|
|
// jumpToBottom(); |
|
|
|
|
SmartDialog.showToast("暂不支持", alignment: Alignment.center); |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
padding: EdgeInsets.only(left: 8.w, right: 19.w), |
|
|
|
|