|
|
|
|
@ -519,21 +519,21 @@ class BlockGestureWidget extends StatelessWidget {
|
|
|
|
|
child: ListBody(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
if (currentItem is Course) ...{
|
|
|
|
|
Text('老师: ${(currentItem as Course).teacher ?? ""}'),
|
|
|
|
|
Text('地点: ${(currentItem as Course).location ?? ""}'),
|
|
|
|
|
Text('老师: ${currentItem.teacher == '' || currentItem.teacher == null ?"无":currentItem.teacher}'),
|
|
|
|
|
Text('地点: ${currentItem.location == '' || currentItem.location == null ?"无":currentItem.location}'),
|
|
|
|
|
ShowTimeTextWidget(currentItem: currentItem),
|
|
|
|
|
Text('学分: ${(currentItem as Course).credit ?? ""}'),
|
|
|
|
|
Text('备注: ${(currentItem as Course).remark ?? ""}'),
|
|
|
|
|
Text('学分: ${currentItem.credit == -1 || currentItem.credit ==null ? "无" : currentItem.credit.toString()}'),
|
|
|
|
|
Text('备注: ${currentItem.remark == '' || currentItem.remark == null ? "无" : currentItem.remark}'),
|
|
|
|
|
} else if (currentItem is Task) ...{
|
|
|
|
|
Text('内容: ${(currentItem as Task).content ?? ""}'),
|
|
|
|
|
Text('内容: ${currentItem.content == "" || currentItem.content == null? "无" : currentItem.content}'),
|
|
|
|
|
ShowTimeTextWidget(currentItem: currentItem),
|
|
|
|
|
} else if (currentItem is Work) ...{
|
|
|
|
|
//小时和分钟都是一位数时,前面补0
|
|
|
|
|
// Text('团队名: ${(currentItem as Work).ge ?? ""}'),
|
|
|
|
|
if((currentItem as Work).teamName != null) ...{
|
|
|
|
|
Text('团队名: ${(currentItem as Work).teamName ?? "无"}'),
|
|
|
|
|
Text('团队名: ${currentItem.teamName=="" || currentItem.teamName== null ?"无":currentItem.teamName}'),
|
|
|
|
|
},
|
|
|
|
|
Text('工作内容: ${(currentItem as Work).content ?? "无"}'),
|
|
|
|
|
Text('工作内容: ${currentItem.content == "" || currentItem.content == null ? "无" : currentItem.content}'),
|
|
|
|
|
ShowTimeTextWidget(currentItem: currentItem),
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
@ -598,6 +598,7 @@ class BlockGestureWidget extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
Setting.timetableWidgetKey!.currentState!.localFutureDo();
|
|
|
|
|
Setting.timetableWidgetKey!.currentState!.serverFutureDo();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
child: Text('编辑'),
|
|
|
|
|
|