|
@@ -16,7 +16,6 @@ import 'package:widgets/my_text_view.dart';
|
|
|
* 员工的做工记录
|
|
|
*/
|
|
|
class StaffDetailWidget extends StatelessWidget {
|
|
|
-
|
|
|
final StaffDetailEntity? detail;
|
|
|
final void Function() onRemarkAction;
|
|
|
|
|
@@ -28,7 +27,7 @@ class StaffDetailWidget extends StatelessWidget {
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
return Container(
|
|
|
- margin: EdgeInsets.symmetric(horizontal: 15, vertical: 10),
|
|
|
+ margin: EdgeInsets.only(left: 15, right: 15, top: 5, bottom: 10),
|
|
|
decoration: BoxDecoration(
|
|
|
color: Color(0xFF4DCFF6).withOpacity(0.2), // 设置背景颜色和不透明度
|
|
|
borderRadius: BorderRadius.circular(5), // 设置圆角
|
|
@@ -39,10 +38,10 @@ class StaffDetailWidget extends StatelessWidget {
|
|
|
//头像
|
|
|
Center(
|
|
|
child: MyLoadImage(
|
|
|
- detail?.avatar,
|
|
|
- width: 100,
|
|
|
- height: 100,
|
|
|
- )).marginOnly(top: 25, bottom: 15),
|
|
|
+ detail?.avatar,
|
|
|
+ width: 100,
|
|
|
+ height: 100,
|
|
|
+ )).marginOnly(top: 25, bottom: 15),
|
|
|
|
|
|
//姓名
|
|
|
Row(
|