|
|
@@ -16,6 +16,7 @@ import '../../data/repositories/account_repository.dart';
|
|
|
import '../../popup/common_popup.dart';
|
|
|
import '../../popup/template_utils.dart';
|
|
|
import '../../resource/assets.gen.dart';
|
|
|
+import '../../router/app_pages.dart';
|
|
|
import '../chat/view.dart';
|
|
|
import 'controller.dart';
|
|
|
|
|
|
@@ -51,79 +52,79 @@ class AgendaPage extends BasePage<AgendaController> {
|
|
|
color: ColorName.primaryTextColor)),
|
|
|
centerTitle: true,
|
|
|
),
|
|
|
- // Row(
|
|
|
- // children: [
|
|
|
- // Expanded(
|
|
|
- // child: Padding(
|
|
|
- // padding: EdgeInsets.only(left: 12.w),
|
|
|
- // child: CupertinoSearchTextField(
|
|
|
- // enabled: false,
|
|
|
- // onTap: () {
|
|
|
- // Get.toNamed(RoutePath.taskSearch);
|
|
|
- // },
|
|
|
- // placeholder: StringName.searchHint.tr,
|
|
|
- // prefixIcon: ImageIcon(Assets.images.iconSearch.provider(),
|
|
|
- // size: 20.w),
|
|
|
- // backgroundColor: Colors.white,
|
|
|
- // style: TextStyle(
|
|
|
- // fontSize: 14.w, color: ColorName.primaryTextColor),
|
|
|
- // placeholderStyle: TextStyle(
|
|
|
- // fontSize: 14.w, color: const Color(0xFFAFAFAF)),
|
|
|
- // ),
|
|
|
- // )),
|
|
|
- // GestureDetector(
|
|
|
- // onTap: () {},
|
|
|
- // child: Column(
|
|
|
- // mainAxisAlignment: MainAxisAlignment.center,
|
|
|
- // children: [
|
|
|
- // Container(
|
|
|
- // margin: EdgeInsets.symmetric(horizontal: 16.w),
|
|
|
- // width: 20.w,
|
|
|
- // height: 20.w,
|
|
|
- // child: Assets.images.iconSift.image()),
|
|
|
- // // Replace with your image asset
|
|
|
- // SizedBox(height: 2.h),
|
|
|
- // // Add some space between the image and text
|
|
|
- // Text(
|
|
|
- // StringName.agendaSift.tr,
|
|
|
- // style: TextStyle(
|
|
|
- // fontSize: 10.sp, color: ColorName.primaryTextColor),
|
|
|
- // ),
|
|
|
- // ],
|
|
|
- // ),
|
|
|
- // )
|
|
|
- // ],
|
|
|
- // ),
|
|
|
- // SizedBox(height: 12.h),
|
|
|
- // Container(
|
|
|
- // margin: EdgeInsets.only(left: 12.w),
|
|
|
- // padding: EdgeInsets.symmetric(horizontal: 8.w, vertical: 4.h),
|
|
|
- // decoration: BoxDecoration(
|
|
|
- // color: const Color(0xFFE9E9E9),
|
|
|
- // borderRadius: BorderRadius.circular(8.w)),
|
|
|
- // child: IntrinsicWidth(
|
|
|
- // child: Row(
|
|
|
- // children: [
|
|
|
- // Text(controller.filterTxt,
|
|
|
- // style: TextStyle(
|
|
|
- // fontSize: 13.sp,
|
|
|
- // color: ColorName.secondaryTextColor)),
|
|
|
- // SizedBox(width: 6.w),
|
|
|
- // Opacity(
|
|
|
- // opacity: 0.7,
|
|
|
- // child: ImageIcon(
|
|
|
- // Assets.images.iconTaskFilterClose.provider(),
|
|
|
- // size: 16.w))
|
|
|
- // ],
|
|
|
- // ),
|
|
|
- // ),
|
|
|
- // ),
|
|
|
+ Row(
|
|
|
+ children: [
|
|
|
+ Expanded(
|
|
|
+ child: Container(
|
|
|
+ height: 36.h,
|
|
|
+ margin: EdgeInsets.only(left: 12.w),
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: ColorName.white,
|
|
|
+ borderRadius: BorderRadius.circular(8.w)),
|
|
|
+ padding: EdgeInsets.only(left: 12.w),
|
|
|
+ child: Row(
|
|
|
+ children: [
|
|
|
+ Assets.images.iconSearch.image(width: 20.w, height: 20.w),
|
|
|
+ SizedBox(width: 6.w),
|
|
|
+ Text(
|
|
|
+ StringName.searchHint.tr,
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 14.sp,
|
|
|
+ color: ColorName.tertiaryTextColor),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ )),
|
|
|
+ GestureDetector(
|
|
|
+ onTap: () {},
|
|
|
+ child: Column(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ Container(
|
|
|
+ margin: EdgeInsets.symmetric(horizontal: 16.w),
|
|
|
+ width: 20.w,
|
|
|
+ height: 20.w,
|
|
|
+ child: Assets.images.iconSift.image()),
|
|
|
+ // Replace with your image asset
|
|
|
+ SizedBox(height: 2.h),
|
|
|
+ // Add some space between the image and text
|
|
|
+ Text(
|
|
|
+ StringName.agendaSift.tr,
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 10.sp, color: ColorName.primaryTextColor),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ SizedBox(height: 12.h),
|
|
|
+ Container(
|
|
|
+ margin: EdgeInsets.only(left: 12.w),
|
|
|
+ padding: EdgeInsets.symmetric(horizontal: 8.w, vertical: 4.h),
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: const Color(0xFFE9E9E9),
|
|
|
+ borderRadius: BorderRadius.circular(8.w)),
|
|
|
+ child: IntrinsicWidth(
|
|
|
+ child: Row(
|
|
|
+ children: [
|
|
|
+ Text(controller.filterTxt,
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 13.sp,
|
|
|
+ color: ColorName.secondaryTextColor)),
|
|
|
+ SizedBox(width: 6.w),
|
|
|
+ Opacity(
|
|
|
+ opacity: 0.7,
|
|
|
+ child: ImageIcon(
|
|
|
+ Assets.images.iconTaskFilterClose.provider(),
|
|
|
+ size: 16.w))
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
SizedBox(width: 7.h),
|
|
|
Expanded(
|
|
|
child: SmartRefresher(
|
|
|
- footer: const ClassicFooter(
|
|
|
- noDataText: '',
|
|
|
- ),
|
|
|
onLoading: controller.onLoadMoreDoneData,
|
|
|
enablePullDown: false,
|
|
|
enablePullUp: true,
|
|
|
@@ -189,7 +190,11 @@ class AgendaPage extends BasePage<AgendaController> {
|
|
|
controller.agendaComplete(item, true);
|
|
|
},
|
|
|
onThinkingClick: () {
|
|
|
- ChatPage.startByTalkId(ChatFromType.fromAnalysisBtn, item.talkId,
|
|
|
+ ChatPage.startByTalkId(
|
|
|
+ item.isExample == true
|
|
|
+ ? ChatFromType.fromTalkExample
|
|
|
+ : ChatFromType.fromAnalysisBtn,
|
|
|
+ item.talkId,
|
|
|
agenda: item);
|
|
|
},
|
|
|
),
|