更换桌面logo,修改标签栏点击圈子事件
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 305 KiB After Width: | Height: | Size: 409 KiB |
|
Before Width: | Height: | Size: 982 B |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 20 KiB |
@ -1,5 +1,5 @@
|
|||||||
import 'package:dio/dio.dart';
|
import 'package:dio/dio.dart';
|
||||||
import 'package:flutter_install_app/flutter_install_app.dart';
|
// import 'package:flutter_install_app/flutter_install_app.dart';
|
||||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ class AboutappLogic extends GetxController {
|
|||||||
// SmartDialog.dismiss();
|
// SmartDialog.dismiss();
|
||||||
// print(error);
|
// print(error);
|
||||||
// });
|
// });
|
||||||
await AppInstaller.installApk(filePath, actionRequired: false);
|
// await AppInstaller.installApk(filePath, actionRequired: false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -397,13 +397,18 @@ class _InfoListViewState extends State<InfoListView> {
|
|||||||
// List<JoinUser> urlList = bean.lastJoinUsers;
|
// List<JoinUser> urlList = bean.lastJoinUsers;
|
||||||
List<Widget> widgets = [];
|
List<Widget> widgets = [];
|
||||||
int index = 0;
|
int index = 0;
|
||||||
lists.chat!.users!.forEach((element) {
|
for (var element in lists.chat!.users!) {
|
||||||
widgets.add(Positioned(
|
widgets.add(Positioned(
|
||||||
left: 12.sp * index,
|
left: 12.sp * index,
|
||||||
child: circleWidget(element.avatar!, width: 24),
|
child: GestureDetector(
|
||||||
|
onTap: () {
|
||||||
|
listsLg?.pushOtherPeopleHomePage(element.id.toString());
|
||||||
|
},
|
||||||
|
child: circleWidget(element.avatar!, width: 24),
|
||||||
|
),
|
||||||
));
|
));
|
||||||
index++;
|
index++;
|
||||||
});
|
}
|
||||||
if (widgets.isNotEmpty) {
|
if (widgets.isNotEmpty) {
|
||||||
widgets.add(Positioned(
|
widgets.add(Positioned(
|
||||||
left: 12.sp * lists.chat!.users!.length,
|
left: 12.sp * lists.chat!.users!.length,
|
||||||
@ -711,7 +716,9 @@ class _InfoListViewState extends State<InfoListView> {
|
|||||||
widgets.add(Positioned(
|
widgets.add(Positioned(
|
||||||
left: 12.sp * index,
|
left: 12.sp * index,
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () {},
|
onTap: () {
|
||||||
|
listsLg?.pushOtherPeopleHomePage(element.id.toString());
|
||||||
|
},
|
||||||
child: circleWidget(element.avatar!, width: 24),
|
child: circleWidget(element.avatar!, width: 24),
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
|||||||
@ -56,6 +56,22 @@ class ListLogic extends GetxController {
|
|||||||
loadCallOutListData(_circleId);
|
loadCallOutListData(_circleId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void pushOtherPeopleHomePage(String userId) {
|
||||||
|
Get.toNamed(AppRoutes.UserInfoActivity, arguments: userId);
|
||||||
|
|
||||||
|
|
||||||
|
// if (bean.isQueen) {
|
||||||
|
// showJoinCiclePiker(cicleId);
|
||||||
|
// } else {
|
||||||
|
//跳转消息页面
|
||||||
|
// Get.bottomSheet(Open_vip_tipPage(),
|
||||||
|
// isScrollControlled: true,
|
||||||
|
// enableDrag: false,
|
||||||
|
// );
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
void pushHomePage(Lists bean,String cicleId) async {
|
void pushHomePage(Lists bean,String cicleId) async {
|
||||||
SharedPreferences prefs = await SharedPreferences.getInstance();
|
SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||||
int userId = prefs.getInt("userId")??0;
|
int userId = prefs.getInt("userId")??0;
|
||||||
@ -84,8 +100,15 @@ class ListLogic extends GetxController {
|
|||||||
void onInit() {
|
void onInit() {
|
||||||
// TODO: implement onInit
|
// TODO: implement onInit
|
||||||
super.onInit();
|
super.onInit();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void onReady() {
|
||||||
|
// TODO: implement onReady
|
||||||
|
super.onReady();
|
||||||
scrollController.addListener(() {
|
scrollController.addListener(() {
|
||||||
if (scrollController.position.pixels == scrollController.position.maxScrollExtent) {
|
if (scrollController.position.pixels == scrollController.position.maxScrollExtent && lists.isNotEmpty) {
|
||||||
loadMore();
|
loadMore();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import 'package:circle_app/app/circle/logic.dart';
|
||||||
import 'package:circle_app/util/util.dart';
|
import 'package:circle_app/util/util.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@ -35,6 +36,10 @@ class HomeLogic extends GetxController {
|
|||||||
|
|
||||||
updateIndex(int index) {
|
updateIndex(int index) {
|
||||||
currentIndex = index;
|
currentIndex = index;
|
||||||
|
if (index == 1) {
|
||||||
|
final logic = Get.put(CircleLogic());
|
||||||
|
logic.loadCirclePeopleData();
|
||||||
|
}
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||