|
@@ -369,7 +369,9 @@ List<Widget> getTalkAgendaNormalList(List<Agenda>? list) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Widget buildTemplateView(List<TemplateBean>? templateList, int? id,
|
|
Widget buildTemplateView(List<TemplateBean>? templateList, int? id,
|
|
|
- {bool? isShowAdd, VoidCallback? addCallback}) {
|
|
|
|
|
|
|
+ {bool? isShowAdd,
|
|
|
|
|
+ VoidCallback? addCallback,
|
|
|
|
|
+ Function(TemplateBean)? onTap}) {
|
|
|
return SizedBox(
|
|
return SizedBox(
|
|
|
height: 32.h,
|
|
height: 32.h,
|
|
|
child: ListView(
|
|
child: ListView(
|
|
@@ -378,28 +380,34 @@ Widget buildTemplateView(List<TemplateBean>? templateList, int? id,
|
|
|
children: [
|
|
children: [
|
|
|
SizedBox(width: 12.w),
|
|
SizedBox(width: 12.w),
|
|
|
for (var item in templateList ?? <TemplateBean>[])
|
|
for (var item in templateList ?? <TemplateBean>[])
|
|
|
- Container(
|
|
|
|
|
- height: double.infinity,
|
|
|
|
|
- decoration: item.id == id
|
|
|
|
|
- ? BoxDecoration(
|
|
|
|
|
- color: ColorName.colorPrimary,
|
|
|
|
|
- borderRadius: BorderRadius.circular(6.w),
|
|
|
|
|
- )
|
|
|
|
|
- : BoxDecoration(
|
|
|
|
|
- borderRadius: BorderRadius.circular(6.w),
|
|
|
|
|
- color: "#FAF9FB".toColor(),
|
|
|
|
|
- border: Border.all(color: '#F2EFF5'.toColor(), width: 1.w),
|
|
|
|
|
- ),
|
|
|
|
|
- margin: EdgeInsets.only(right: 8.w),
|
|
|
|
|
- padding: EdgeInsets.symmetric(horizontal: 8.w),
|
|
|
|
|
- child: Center(
|
|
|
|
|
- child: Text(item.name ?? '',
|
|
|
|
|
- style: TextStyle(
|
|
|
|
|
- height: 1,
|
|
|
|
|
- fontSize: 13.sp,
|
|
|
|
|
- color: item.id == id
|
|
|
|
|
- ? ColorName.white
|
|
|
|
|
- : ColorName.secondaryTextColor)),
|
|
|
|
|
|
|
+ GestureDetector(
|
|
|
|
|
+ onTap: () {
|
|
|
|
|
+ onTap?.call(item);
|
|
|
|
|
+ },
|
|
|
|
|
+ child: Container(
|
|
|
|
|
+ height: double.infinity,
|
|
|
|
|
+ decoration: item.id == id
|
|
|
|
|
+ ? BoxDecoration(
|
|
|
|
|
+ color: ColorName.colorPrimary,
|
|
|
|
|
+ borderRadius: BorderRadius.circular(6.w),
|
|
|
|
|
+ )
|
|
|
|
|
+ : BoxDecoration(
|
|
|
|
|
+ borderRadius: BorderRadius.circular(6.w),
|
|
|
|
|
+ color: "#FAF9FB".toColor(),
|
|
|
|
|
+ border:
|
|
|
|
|
+ Border.all(color: '#F2EFF5'.toColor(), width: 1.w),
|
|
|
|
|
+ ),
|
|
|
|
|
+ margin: EdgeInsets.only(right: 8.w),
|
|
|
|
|
+ padding: EdgeInsets.symmetric(horizontal: 8.w),
|
|
|
|
|
+ child: Center(
|
|
|
|
|
+ child: Text(item.name ?? '',
|
|
|
|
|
+ style: TextStyle(
|
|
|
|
|
+ height: 1,
|
|
|
|
|
+ fontSize: 13.sp,
|
|
|
|
|
+ color: item.id == id
|
|
|
|
|
+ ? ColorName.white
|
|
|
|
|
+ : ColorName.secondaryTextColor)),
|
|
|
|
|
+ ),
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
isShowAdd == true
|
|
isShowAdd == true
|