Browse Source

Merge remote-tracking branch 'origin/wr_202303' into wr_202303

wr_202303
zsw 4 months ago
parent
commit
2c83a00892
  1. 64
      lib/im/chat_details_page.dart

64
lib/im/chat_details_page.dart

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

Loading…
Cancel
Save