diff --git a/README.md b/README.md
index ecd0b06..e88da3c 100644
--- a/README.md
+++ b/README.md
@@ -8,12 +8,15 @@ flutter 社交app Updated 3 minutes ago 主要用于研究flutter常用packages
因为项目中引用了一些外部package,有些package版本上有冲突,我对这些package做了手动修改。clone下去后,跑不起来的。
项目根目录下有个lib.zip,解压后可以得到这些package,复制到自己电脑,如:D:\soft\flutter\\.pub-cache\hosted\pub.flutter-io.cn\路径下就可以了。D:\soft\flutter\为你电脑对应的flutter sdk位置。
-项目版本为flutter1.2.1,如果你的flutter版本为1.5+,chat_home中有两个方法需要稍微修改一下。如果不想改,可以先注释掉报错代码,然后运行
+项目版本为flutter1.2.1,如果你的flutter版本为1.5.4,chat_home中有两个方法(onLongPressDragUp,onLongPressDragStart)需要稍微修改一下。如果不想改,可以先注释掉报错代码,然后运行
语音存储用的OSS,项目中没有提供OSS的密钥。若要使用语音功能,请修改相关OSS配置为自己的OSS配置。
项目中的api都可以随便调用,如果觉得我ui不好看的,可以利用这些api自己重新写一个app。如果有什么更多的功能需求,需要新api,简单,好实现那种,可以qq联系我,815769472。加好友时说明来意。
+用户系统和我另外一个app《智能管家》用的一个,那个app注册了,这里可以直接登录。
+- [智能管家项目地址](https://www.github.com/zocoo/znjjwyz)
+
安卓下载尝试请扫码

diff --git a/android/key.properties b/android/key.properties
index 6f61539..5650b45 100644
--- a/android/key.properties
+++ b/android/key.properties
@@ -1,4 +1,4 @@
storePassword=psoxsk4855
keyPassword=psoxsk4855
keyAlias=key
-storeFile=/Users/wuyasuze/AndroidStudioProjects/flutter_demo/flutter_wyz/key.jks
\ No newline at end of file
+storeFile=E:/flutterWorkSpace/flutter-app/key.jks
\ No newline at end of file
diff --git a/lib/config/config.dart b/lib/config/config.dart
index 0eea8ae..8ee6f54 100755
--- a/lib/config/config.dart
+++ b/lib/config/config.dart
@@ -1,6 +1,6 @@
class Config {
String host = "http://ddz.so-what.cc";
- int version = 10;
- String ossKey = '6f9UuyAgFQnJaT3C3YoJKZaAoWMfyM';
+ int version = 11;
+ String ossKey = '6f9UuyAgFQfsfnJaffT3C3aYoJ';
// String host = "http://so-what.nat123.cc";
}
diff --git a/lib/page/component/chat/chat_home.dart b/lib/page/component/chat/chat_home.dart
index 2054947..38804b1 100644
--- a/lib/page/component/chat/chat_home.dart
+++ b/lib/page/component/chat/chat_home.dart
@@ -690,9 +690,9 @@ class _ChatHomeState extends State {
mainAxisAlignment: MainAxisAlignment.center,
children: [
GestureDetector(
-// onLongPressDragUp: (r) {
+ onLongPressDragUp: (r) {
//flutter sdk 1.2.1
- onLongPressUp: () {// flutter sdk 1.54
+// onLongPressUp: () {// flutter sdk 1.54
_endTime = DateTime.now().millisecondsSinceEpoch;
print(_endTime);
print(_endTime - _startTime);
@@ -703,9 +703,9 @@ class _ChatHomeState extends State {
// Navigator.pop(context);
// if (_ctXl1 != null) _ctXl1.cancel();
},
-// onLongPressDragStart: (r) {
+ onLongPressDragStart: (r) {
// flutter sdk 1.2.1
- onLongPressStart: (r) {// flutter sdk 1.5.4
+// onLongPressStart: (r) {// flutter sdk 1.5.4
_startTime = DateTime.now().millisecondsSinceEpoch;
print(_startTime);
this.startRecorder();
@@ -1732,7 +1732,7 @@ class _ChatHomeState extends State {
'Filename': _startTime.toString() + ".m4a",
'key': "m4a/" + _startTime.toString() + ".m4a",
'policy': policy_base64,
- 'OSSAccessKeyId': "LTAIltvRb1U8UUiC",
+ 'OSSAccessKeyId': "LTAIlAtvRDDADDb1U8UUiC",
'success_action_status': '200', //让服务端返回200,不然,默认会返回204
'signature': signature,
'file': new UploadFileInfo(file, "imageFileName")
diff --git a/lib/page/index/index.dart b/lib/page/index/index.dart
index 649b2ed..5c8ba90 100755
--- a/lib/page/index/index.dart
+++ b/lib/page/index/index.dart
@@ -119,7 +119,7 @@ class IndexState extends State with WidgetsBindingObserver {
_idAndToken() async {
_id = await LocalStorage().get("userId");
- initPlatformState(_id);
+// initPlatformState(_id);
_token = await LocalStorage().get("token");
}
diff --git a/lib/page/version/version.dart b/lib/page/version/version.dart
index 8c62f25..68a2512 100755
--- a/lib/page/version/version.dart
+++ b/lib/page/version/version.dart
@@ -36,7 +36,7 @@ class _VersionState extends State with SingleTickerProviderStateMixin {
}
_ctXlGx() async {
checkVersion();
- _ctXl = Timer.periodic(new Duration(milliseconds: 3000), (timer) {
+ _ctXl = Timer.periodic(new Duration(milliseconds: 6000), (timer) {
checkVersion();
});
}
@@ -190,6 +190,7 @@ class _VersionState extends State with SingleTickerProviderStateMixin {
// print(version);
if (Config().version < result) {
choiceUpdate(context);
+ _ctXl.cancel();
} else {
if (_a_status)
Navigator.of(context).pushAndRemoveUntil(
diff --git a/pubspec.lock b/pubspec.lock
index ef5e628..1142798 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.flutter-io.cn"
source: hosted
- version: "2.1.0"
+ version: "2.0.8"
barcode_scan:
dependency: "direct main"
description:
@@ -173,7 +173,7 @@ packages:
name: matcher
url: "https://pub.flutter-io.cn"
source: hosted
- version: "0.12.5"
+ version: "0.12.3+1"
meta:
dependency: transitive
description:
@@ -215,7 +215,7 @@ packages:
name: pedantic
url: "https://pub.flutter-io.cn"
source: hosted
- version: "1.5.0"
+ version: "1.4.0"
platform:
dependency: transitive
description:
@@ -229,7 +229,7 @@ packages:
name: quiver
url: "https://pub.flutter-io.cn"
source: hosted
- version: "2.0.2"
+ version: "2.0.1"
shared_preferences:
dependency: "direct main"
description:
@@ -255,7 +255,7 @@ packages:
name: source_span
url: "https://pub.flutter-io.cn"
source: hosted
- version: "1.5.5"
+ version: "1.5.4"
stack_trace:
dependency: transitive
description:
@@ -269,7 +269,7 @@ packages:
name: stream_channel
url: "https://pub.flutter-io.cn"
source: hosted
- version: "2.0.0"
+ version: "1.6.8"
string_scanner:
dependency: transitive
description:
@@ -297,7 +297,7 @@ packages:
name: test_api
url: "https://pub.flutter-io.cn"
source: hosted
- version: "0.2.4"
+ version: "0.2.2"
typed_data:
dependency: transitive
description:
@@ -327,5 +327,5 @@ packages:
source: hosted
version: "0.1.4"
sdks:
- dart: ">=2.2.0 <3.0.0"
+ dart: ">=2.1.0 <3.0.0"
flutter: ">=0.1.4 <2.0.0"
diff --git a/pubspec.yaml b/pubspec.yaml
index d4484e5..612fa4c 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,7 +1,7 @@
name: flutter_wyz
description: A new Flutter application.
-version: 1.1.0+1
+version: 1.1.1+1
environment:
sdk: ">=2.1.0 <3.0.0"