|
|
@@ -145,36 +145,44 @@ class TrackDayDetailView extends BaseView<TrackDayDetailController> {
|
|
|
color: '#333333'.color,
|
|
|
fontWeight: FontWeight.bold)),
|
|
|
SizedBox(height: 8.w),
|
|
|
- DropCapText(
|
|
|
- style: TextStyle(fontSize: 11.sp, color: '#666666'.color),
|
|
|
- trackSituation,
|
|
|
- dropCapPosition: DropCapPosition.bottomRight,
|
|
|
- textAlign: TextAlign.justify,
|
|
|
- dropCap: DropCap(
|
|
|
- width: 75.w,
|
|
|
- height: 36.w,
|
|
|
- child: Align(
|
|
|
- alignment: Alignment.bottomRight,
|
|
|
- child: GestureDetector(
|
|
|
- onTap: controller.onPhoneCallClick,
|
|
|
- child: Column(
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
- mainAxisAlignment: MainAxisAlignment.end,
|
|
|
- children: [
|
|
|
- Assets.images.iconCallPhone
|
|
|
- .image(width: 15.w, height: 15.w),
|
|
|
- Text(
|
|
|
- StringName.trackDailyCallPhone,
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 10.sp,
|
|
|
- color: ColorName.colorPrimary,
|
|
|
- fontWeight: FontWeight.bold),
|
|
|
- )
|
|
|
- ],
|
|
|
+ Obx(() {
|
|
|
+ if (controller.trackController.userInfo?.isMine == true) {
|
|
|
+ return Text(
|
|
|
+ trackSituation,
|
|
|
+ style: TextStyle(fontSize: 11.sp, color: '#666666'.color),
|
|
|
+ );
|
|
|
+ }
|
|
|
+ return DropCapText(
|
|
|
+ style: TextStyle(fontSize: 11.sp, color: '#666666'.color),
|
|
|
+ trackSituation,
|
|
|
+ dropCapPosition: DropCapPosition.bottomRight,
|
|
|
+ textAlign: TextAlign.justify,
|
|
|
+ dropCap: DropCap(
|
|
|
+ width: 75.w,
|
|
|
+ height: 36.w,
|
|
|
+ child: Align(
|
|
|
+ alignment: Alignment.bottomRight,
|
|
|
+ child: GestureDetector(
|
|
|
+ onTap: controller.onPhoneCallClick,
|
|
|
+ child: Column(
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ mainAxisAlignment: MainAxisAlignment.end,
|
|
|
+ children: [
|
|
|
+ Assets.images.iconCallPhone
|
|
|
+ .image(width: 15.w, height: 15.w),
|
|
|
+ Text(
|
|
|
+ StringName.trackDailyCallPhone,
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 10.sp,
|
|
|
+ color: ColorName.colorPrimary,
|
|
|
+ fontWeight: FontWeight.bold),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
),
|
|
|
- ),
|
|
|
- )),
|
|
|
- ),
|
|
|
+ )),
|
|
|
+ );
|
|
|
+ }),
|
|
|
SizedBox(height: 12.w),
|
|
|
],
|
|
|
),
|