跟新安装包

newHost
王亚玲 2 years ago
parent aee169eb44
commit a832c843b3

@ -188,4 +188,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: fe0e1ee7f3d1f7d00b11b474b62dd62134535aea PODFILE CHECKSUM: fe0e1ee7f3d1f7d00b11b474b62dd62134535aea
COCOAPODS: 1.11.3 COCOAPODS: 1.11.2

@ -401,7 +401,7 @@
MARKETING_VERSION = 1.0.5; MARKETING_VERSION = 1.0.5;
PRODUCT_BUNDLE_IDENTIFIER = "com.aku-new-community.bee"; PRODUCT_BUNDLE_IDENTIFIER = "com.aku-new-community.bee";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = dyb; PROVISIONING_PROFILE_SPECIFIER = appstore;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1; TARGETED_DEVICE_FAMILY = 1;
@ -545,7 +545,7 @@
MARKETING_VERSION = 1.0.5; MARKETING_VERSION = 1.0.5;
PRODUCT_BUNDLE_IDENTIFIER = "com.aku-new-community.bee"; PRODUCT_BUNDLE_IDENTIFIER = "com.aku-new-community.bee";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = dyb; PROVISIONING_PROFILE_SPECIFIER = appstore;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
@ -583,7 +583,7 @@
MARKETING_VERSION = 1.0.5; MARKETING_VERSION = 1.0.5;
PRODUCT_BUNDLE_IDENTIFIER = "com.aku-new-community.bee"; PRODUCT_BUNDLE_IDENTIFIER = "com.aku-new-community.bee";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = dyb; PROVISIONING_PROFILE_SPECIFIER = appstore;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1; TARGETED_DEVICE_FAMILY = 1;

@ -7,6 +7,7 @@ import 'package:aku_new_community/widget/bee_avatar_widget.dart';
import 'package:aku_new_community/widget/dialog/bee_custom_dialog.dart'; import 'package:aku_new_community/widget/dialog/bee_custom_dialog.dart';
import 'package:aku_new_community/widget/others/user_tool.dart'; import 'package:aku_new_community/widget/others/user_tool.dart';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:extended_image/extended_image.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -52,6 +53,7 @@ class _blackListPageState extends State<blackListPage> {
// } // }
// ]; // ];
final EasyRefreshController _refreshController = EasyRefreshController(); final EasyRefreshController _refreshController = EasyRefreshController();
late LoadState _loadState;
@override @override
void initState() { void initState() {
@ -117,6 +119,7 @@ class _blackListPageState extends State<blackListPage> {
controller: _refreshController, controller: _refreshController,
onRefresh: () async { onRefresh: () async {
blackList = await BlackListFunc.getBlackList(); blackList = await BlackListFunc.getBlackList();
// blackList = [ // blackList = [
// BlacklistModel( // BlacklistModel(
// id: 0, // id: 0,
@ -126,7 +129,19 @@ class _blackListPageState extends State<blackListPage> {
setState(() {}); setState(() {});
// _page // _page
}, },
onLoad: () async {}, onLoad: () async {
_refreshController.finishLoad(noMore: true);
// await Future.delayed(const Duration(seconds: 2), () {
// setState(() {
// if (_refreshController.finishLoadCallBack !=
// null) {
// return _End();
// }
// });
// });
// if (_loadState == LoadState.completed)
// return _End();
},
child: blackList.isEmpty child: blackList.isEmpty
? SizedBox() ? SizedBox()
: ListView.builder( : ListView.builder(
@ -136,11 +151,26 @@ class _blackListPageState extends State<blackListPage> {
}, },
//itemCount: 6, //itemCount: 6,
itemCount: blackList.length, itemCount: blackList.length,
))) ))),
//if()
], ],
)); ));
} }
_End() {
return Container(
color: Color(0xF000000).withOpacity(0.06),
width: MediaQuery.of(context).size.width,
height: 75.w,
alignment: Alignment.center,
child: Text(
'后面已经没有其他内容了',
style:
TextStyle(fontSize: 24.sp, color: Colors.black.withOpacity(0.25)),
),
);
}
_blackList(BlacklistModel model) { _blackList(BlacklistModel model) {
return Column( return Column(
children: [ children: [

@ -27,7 +27,6 @@ import 'package:aku_new_community/widget/views/bee_grid_image_view.dart';
class ChatCard extends StatefulWidget { class ChatCard extends StatefulWidget {
final AllDynamicListModel model; final AllDynamicListModel model;
final VoidCallback refresh; final VoidCallback refresh;
final bool hideLine; final bool hideLine;
final bool canTap; final bool canTap;
@ -253,50 +252,13 @@ class _ChatCardState extends State<ChatCard> {
), ),
Spacer(), Spacer(),
CommunityPopButton( CommunityPopButton(
isMyself: _isMyself, isMyself: _isMyself,
onSelect: (int value) async { onSelect: (int value) async {
if (LoginUtil.isNotLogin) return; if (LoginUtil.isNotLogin) return;
if (widget.model.createId == userProvider.userInfoModel?.id) { if (!_isMyself) {
if (value == 3) { if (value == 3) {
//bool? result = await Get.dialog(CupertinoAlertDialog(
await Get.dialog(CupertinoAlertDialog( title: '你确定要拉黑他吗'.text.isIntrinsic.make(),
title: '你确定要拉黑他吗'.text.isIntrinsic.make(),
actions: [
CupertinoDialogAction(
child: '取消'.text.black.isIntrinsic.make(),
onPressed: () => Get.back(),
),
CupertinoDialogAction(
child: '确定'
.text
.color(Colors.orange)
.isIntrinsic
.make(),
onPressed: () //=> Get.back(result: true),
async {
var isShielding =
await BlackListFunc.Block(widget.model.id);
if (isShielding) {
Get.back();
}
},
),
],
)); // if (result == true) {
// await BlackListFunc.Block(widget.model.id);
// widget.refresh();
// }
} else {
if (!_isMyself) {
VoidCallback cancel = BotToast.showLoading();
await Future.delayed(Duration(
milliseconds: 500 + Random().nextInt(500)));
cancel();
BotToast.showText(text: '举报成功');
} else {
bool? result = await Get.dialog(CupertinoAlertDialog(
title: '你确定删除吗'.text.isIntrinsic.make(),
actions: [ actions: [
CupertinoDialogAction( CupertinoDialogAction(
child: '取消'.text.black.isIntrinsic.make(), child: '取消'.text.black.isIntrinsic.make(),
@ -308,23 +270,24 @@ class _ChatCardState extends State<ChatCard> {
.color(Colors.orange) .color(Colors.orange)
.isIntrinsic .isIntrinsic
.make(), .make(),
onPressed: () => Get.back(result: true), onPressed: () //=> Get.back(result: true),
async {
var isShielding =
await BlackListFunc.Block(widget.model.id);
if (isShielding) {
Get.back();
}
},
), ),
], ],
)); ));
if (result == true) { } else {
await CommunityFunc.deleteDynamic(widget.model.id); VoidCallback cancel = BotToast.showLoading();
widget.refresh(); await Future.delayed(Duration(
} milliseconds: 500 + Random().nextInt(500)));
cancel();
BotToast.showText(text: '举报成功');
} }
}
} else {
if (!_isMyself) {
VoidCallback cancel = BotToast.showLoading();
await Future.delayed(
Duration(milliseconds: 500 + Random().nextInt(500)));
cancel();
BotToast.showText(text: '举报成功');
} else { } else {
bool? result = await Get.dialog(CupertinoAlertDialog( bool? result = await Get.dialog(CupertinoAlertDialog(
title: '你确定删除吗'.text.isIntrinsic.make(), title: '你确定删除吗'.text.isIntrinsic.make(),
@ -348,9 +311,7 @@ class _ChatCardState extends State<ChatCard> {
widget.refresh(); widget.refresh();
} }
} }
} }).paddingOnly(right: 32.w),
},
).paddingOnly(right: 32.w),
].row(crossAlignment: CrossAxisAlignment.start), ].row(crossAlignment: CrossAxisAlignment.start),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,

@ -18,11 +18,9 @@ packages:
aku_app_upgrade: aku_app_upgrade:
dependency: "direct main" dependency: "direct main"
description: description:
path: "." path: "../aku_app_upgrade"
ref: HEAD relative: true
resolved-ref: "9676d13777c2db074e7f812554eeffaa98458907" source: path
url: "https://git.oa00.com/mengfucius/aku_app_upgrade.git"
source: git
version: "0.0.1" version: "0.0.1"
amap_flutter_base: amap_flutter_base:
dependency: "direct main" dependency: "direct main"

@ -129,7 +129,10 @@ dependencies:
extended_image: ^6.1.0 extended_image: ^6.1.0
#app更新 #app更新
aku_app_upgrade: aku_app_upgrade:
git: https://git.oa00.com/mengfucius/aku_app_upgrade.git git:
url: https://git.oa00.com/mengfucius/aku_app_upgrade.git
ref: 0f4792bfb2
# path: ../aku_app_upgrade
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:

Loading…
Cancel
Save