Commit 040c0096 authored by 朱翠翠's avatar 朱翠翠

code review

parent 0a977f4f
......@@ -51,7 +51,6 @@ class ProjectDetailsItemView extends StatelessWidget {
width: double.maxFinite,
margin: EdgeInsets.only(bottom: 25, left: 15, right: 15),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
margin: EdgeInsets.only(right: 25.0),
......@@ -69,46 +68,6 @@ class ProjectDetailsItemView extends StatelessWidget {
overflow: TextOverflow.ellipsis)),
],
),
margin: EdgeInsets.only(right: 25.0),
alignment: Alignment.centerLeft,
width: 78,
child: baseText(attrs.attrName, 13, Color(0xFF999999)),
),
Expanded(
child: Container(
alignment: Alignment.centerLeft,
child: Text(
attrs.attrValue,
textScaleFactor: 1.0,
softWrap: true,
style: TextStyle(
decoration: TextDecoration.none,
fontSize: 14,
color: Color(0xFF282828),
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400),
)
// baseText(attrs.attrValue, 14, Color(0xFF282828))
),
),
],
),
);
}
baseText(String text, double fontSize, Color color, {bool bold = false}) {
return Text(
text,
textScaleFactor: 1.0,
style: TextStyle(
decoration: TextDecoration.none,
fontSize: fontSize,
color: color,
fontStyle: FontStyle.normal,
fontWeight: bold ? FontWeight.w500 : FontWeight.w400),
textAlign: TextAlign.left,
maxLines: 2,
overflow: TextOverflow.ellipsis,
);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment