logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Android-IM即时通讯关于消息撤回的处理

项目源码请参考 Android-IM项目服务端使用极光JMessage对话撤回的效果图:这里只是在对话的界面展示了撤回消息的处理。其实还有一个地方,是会话列表,也需要动态展示撤回消息的通知。先说对话列表要进行的操作发送方:点击撤回事件,本地视图移除,通知服务端更新接收方:动态获取消息,当获取到撤回消息事件,移除视图。然后是会话列表也要同步展示会话列表只有一个接收方,需要在接收到

#android
Flutter开发中的一些小技巧整理

一、Text 组件外围包裹了 GestureDetector 手势组件点击的时候响应范围太小解决方式:Text 外围使用 TextButton 包裹使用 InkWell 组件包裹二、List 的使用在数据量比较小的时候比如固定布局,可以使用 List.generate() ,来循环渲染。ListView.builder 适用于列表长度比较多,比如存在分页数据,ListView.builder 外部

#flutter
Flutter iOS 读取录音文件 FileSystemException

在使用一个第三方录音组件库的时候遇到的问题,记录一下flutter_sound错误内容FileSystemException: Cannot open file1、先看我的FromData用于提交的数据包FormData formData = FormData.from({"type": 'audio',"fil...

#flutter
Flutter This widget has been unmounted, so the State no longer has a context (and should be...

This widget has been unmounted, so the State no longer has a context (and should be considered defunct).E/flutter (644): Consider canceling any active work during “dispose” or using the “mounted” gett

#flutter
Flutter Container 宽度随内容变化,限制最大宽度,聊天气泡

如图片效果代码Row(mainAxisSize: MainAxisSize.min,children: <Widget>[Expanded(child: SizedBox()),Container(alignment: Alignment.centerRight,decoration: BoxDecoration(border: Border.

#flutter
Taro小程序自定义圆形进度条progress

代码import { ComponentClass } from 'react'import Taro, { Component } from '@tarojs/taro'import { View, Canvas,Text } from '@tarojs/components'import './progress.scss'type PageOwnProps = {}type ...

#taro#小程序
Flutter返回键禁止退出App和双击退出方法整理

一、按返回键禁止退出适用于即时通讯项目######1、先在lib下新建文件android_back_desktop.dartimport 'package:flutter/cupertino.dart';import 'package:flutter/services.dart';class AndroidBackTop {//初始化通信管道-设置退出到手机桌面static const Strin

#flutter#移动开发#android
flutter 使用socket io 和 EventBus 开发及时通讯

1、网上找一圈,关于flutter及时通讯的文章太少了。实际项目需要用socket io 来实现客户端的消息收发,服务端已经写好了。一开始的思路是使用 socket io + 数据库,但数据库用起来是个麻烦事,其实socket io 目前现有的框架集成到项目中总是有各种各样的bug和兼容问题。所以在折腾很久之后选择了一个降级的socket io 库。目前没有发现什么问题,结合eventbus...

#flutter
Flutter 路由页面跳转管理

一、当前页A跳转B (无参)Navigator.of(context).push(MaterialPageRoute(builder: (BuildContext context) => (PageB())),);二、当前页A跳转B (有参)A:Navigator.of(context).pu...

#flutter
ios打包报错 cannot load such file — sqlite3 (LoadError)

错误信息cannot load such file — sqlite3 (LoadError)xcode kernel_require rb require usr/bin/ipatool:24The data couldn’t be read because it isn’t in the correct format[+14639 ms] 2021-12-27 17:25:00.807 xco

#ios#sqlite#objective-c +2
    共 24 条
  • 1
  • 2
  • 3
  • 请选择