diff --git a/lib/im/chat_details_page.dart b/lib/im/chat_details_page.dart index b406082a..7f488884 100644 --- a/lib/im/chat_details_page.dart +++ b/lib/im/chat_details_page.dart @@ -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'; @@ -855,20 +856,20 @@ class _ChatDetailsPage extends State 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(() {}); @@ -877,7 +878,7 @@ class _ChatDetailsPage extends State File(messages[position].attach), width: 180.h, height: 200.h, - fit: BoxFit.fill, + fit: BoxFit.contain, ), ), ), @@ -895,29 +896,30 @@ class _ChatDetailsPage extends State 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, ), ), ), @@ -1036,9 +1038,9 @@ class _ChatDetailsPage extends State 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),