1.4.0代码提交

This commit is contained in:
CYH 2023-12-29 10:05:58 +08:00
parent ef2712f139
commit 2d5cd8826c
6 changed files with 15 additions and 70 deletions

View File

@ -71,8 +71,8 @@ android {
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 21 minSdkVersion 21
targetSdkVersion flutter.targetSdkVersion targetSdkVersion flutter.targetSdkVersion
versionCode 31 versionCode 32
versionName "1.3.9" versionName "1.4.0"
manifestPlaceholders = [ manifestPlaceholders = [
vivo_APPID: "105669716", vivo_APPID: "105669716",
vivo_APPKEY:"84f750207787376b310ca5b0d5969122", vivo_APPKEY:"84f750207787376b310ca5b0d5969122",

View File

@ -461,6 +461,7 @@ class _InputTextFieldState extends TIMUIKitState<TIMInputTextField> {
bool isOK = await checkImStatus(); bool isOK = await checkImStatus();
if (!isOK) { if (!isOK) {
isSending = false;
return; return;
} }

View File

@ -503,62 +503,11 @@ class _TIMTextFieldLayoutNarrowState
constraints: const BoxConstraints(minHeight: 30), constraints: const BoxConstraints(minHeight: 30),
child: Row( child: Row(
children: [ children: [
// if (widget.forbiddenText != null)
// Expanded(
// child: Container(
// height: 35,
// color: theme.weakBackgroundColor,
// alignment: Alignment.center,
// child: Text(
// TIM_t(widget.forbiddenText!),
// textAlign: TextAlign.center,
// style: TextStyle(
// fontWeight: FontWeight.bold,
// fontSize: 16,
// color: theme.weakTextColor,
// ),
// ),
// )),
// if (PlatformUtils().isMobile &&
// widget.showSendAudio &&
// widget.forbiddenText == null)
// InkWell(
// onTap: () async {
// showKeyboard = showSendSoundText;
// if (showSendSoundText) {
// widget.focusNode.requestFocus();
// }
// if (await Permissions.checkPermission(
// context,
// Permission.microphone.value,
// theme,
// )) {
// setState(() {
// showEmojiPanel = false;
// showMore = false;
// showSendSoundText = !showSendSoundText;
// });
// }
// },
// child: SvgPicture.asset(
// showSendSoundText
// ? 'images/keyboard.svg'
// : 'images/voice.svg',
// package: 'tencent_cloud_chat_uikit',
// color: const Color.fromRGBO(68, 68, 68, 1),
// height: 28,
// width: 28,
// ),
// ),
// if (widget.forbiddenText == null)
// const SizedBox(
// width: 10,
// ),
GestureDetector( GestureDetector(
onTap: () async { onTap: () async {
if (isBlack) { if (isBlack) {
showOKToast("您已将对方拉黑,请移除黑名单后在发送消息~"); showOKToast("您已将对方拉黑,请移除黑名单后在发送消息~");
_showReportDialog(context); _showIsCancelBlackDialog(context);
return; return;
} }
showKeyboard = showSendSoundText; showKeyboard = showSendSoundText;
@ -786,7 +735,7 @@ class _TIMTextFieldLayoutNarrowState
onTap: () { onTap: () {
if (isBlack) { if (isBlack) {
showOKToast("您已将对方拉黑,请移除黑名单后在发送消息~"); showOKToast("您已将对方拉黑,请移除黑名单后在发送消息~");
_showReportDialog(context); _showIsCancelBlackDialog(context);
return; return;
} }
getImageFile(); getImageFile();
@ -798,7 +747,7 @@ class _TIMTextFieldLayoutNarrowState
onTap: () { onTap: () {
if (isBlack) { if (isBlack) {
showOKToast("您已将对方拉黑,请移除黑名单后在发送消息~"); showOKToast("您已将对方拉黑,请移除黑名单后在发送消息~");
_showReportDialog(context); _showIsCancelBlackDialog(context);
return; return;
} }
getTakeImageFile(); getTakeImageFile();
@ -810,7 +759,7 @@ class _TIMTextFieldLayoutNarrowState
onTap: () async { onTap: () async {
if (isBlack) { if (isBlack) {
showOKToast("您已将对方拉黑,请移除黑名单后在发送消息~"); showOKToast("您已将对方拉黑,请移除黑名单后在发送消息~");
_showReportDialog(context); _showIsCancelBlackDialog(context);
return; return;
} }
showGiftPannel(); showGiftPannel();
@ -824,8 +773,7 @@ class _TIMTextFieldLayoutNarrowState
onTap: () { onTap: () {
if (isBlack) { if (isBlack) {
showOKToast("您已将对方拉黑,请移除黑名单后在发送消息~"); showOKToast("您已将对方拉黑,请移除黑名单后在发送消息~");
_showReportDialog(context); _showIsCancelBlackDialog(context);
_showReportDialog(context);
return; return;
} }
getVideoFile(ImageSource.gallery); getVideoFile(ImageSource.gallery);
@ -837,7 +785,7 @@ class _TIMTextFieldLayoutNarrowState
onTap: () { onTap: () {
if (isBlack) { if (isBlack) {
showOKToast("您已将对方拉黑,请移除黑名单后在发送消息~"); showOKToast("您已将对方拉黑,请移除黑名单后在发送消息~");
_showReportDialog(context); _showIsCancelBlackDialog(context);
return; return;
} }
getVideoFile(ImageSource.camera); getVideoFile(ImageSource.camera);
@ -1357,7 +1305,7 @@ class _TIMTextFieldLayoutNarrowState
// } // }
} }
void _showReportDialog(BuildContext context) { void _showIsCancelBlackDialog(BuildContext context) {
showDialog( showDialog(
context: context, context: context,
builder: (BuildContext context) { builder: (BuildContext context) {

View File

@ -270,9 +270,6 @@ class HomeLogic extends GetxController with WidgetsBindingObserver {
if (getTotalUnreadMessageCountRes.data.toString() != unreadSIze.value) { if (getTotalUnreadMessageCountRes.data.toString() != unreadSIze.value) {
unreadSIze.value = getTotalUnreadMessageCountRes.data.toString(); unreadSIze.value = getTotalUnreadMessageCountRes.data.toString();
} }
} }
} catch (e) {} } catch (e) {}

View File

@ -216,7 +216,6 @@ class TIMConversationItem extends TIMUIKitStatelessWidget {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Row( Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Text( Text(
nickName, nickName,
@ -232,12 +231,12 @@ class TIMConversationItem extends TIMUIKitStatelessWidget {
), ),
), ),
if (isOfficial) Container( if (isOfficial) Container(
margin: EdgeInsets.only(left: 5.sp,bottom: 5.sp), margin: EdgeInsets.only(left: 5.sp,bottom: 5.sp,top: 5.sp),
height: 16.sp, height: 18.sp,
width: 32.sp, width: 32.sp,
alignment: Alignment.center, alignment: Alignment.center,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8.sp), borderRadius: BorderRadius.circular(9.sp),
gradient: LinearGradient( gradient: LinearGradient(
colors: [Color(0xFF08FAFB),Color(0xFFE243FE)] colors: [Color(0xFF08FAFB),Color(0xFFE243FE)]
) )

View File

@ -1,10 +1,10 @@
class Api { class Api {
// static const baseUrl = 'https://leyuan666.com/zuul-service/'; static const baseUrl = 'https://leyuan666.com/zuul-service/';
static const baseUrl = 'http://192.168.3.55:2000/'; // static const baseUrl = 'http://192.168.3.55:2000/';
// //