Commit 38d11802 authored by 朱翠翠's avatar 朱翠翠

code review

parent db4fc7a0
......@@ -153,7 +153,7 @@ class _PopView implements ICenterPicker {
margin: EdgeInsets.only(bottom: 25),
child: baseText(
_model.popViewLive.data.second.title, 18, Color(0xff464646),
bold: true, align: TextAlign.center)),
bold: true, textAlign: TextAlign.center)),
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(7),
......
......@@ -60,12 +60,14 @@ class ProjectDetailsItemView extends StatelessWidget {
textAlign: TextAlign.left,
maxLines: 2,
overflow: TextOverflow.ellipsis)),
Container(
alignment: Alignment.centerLeft,
child: baseText(attrs.attrValue, 14, Color(0xFF282828),
textAlign: TextAlign.left,
maxLines: 2,
overflow: TextOverflow.ellipsis)),
Expanded(
child: Container(
alignment: Alignment.centerLeft,
child: baseText(attrs.attrValue, 14, Color(0xFF282828),
textAlign: TextAlign.left,
maxLines: 2,
overflow: TextOverflow.ellipsis)),
),
],
),
);
......
......@@ -81,12 +81,12 @@ AppBar _baseAppBarChangeTitle(
Text baseText(String text, double fontSize, Color color,
{bool bold = false,
TextAlign textAlign ,
TextAlign textAlign,
int maxLines = 1,
TextOverflow overflow}) {
return Text(
text,
TextAlign: textAlign ?? TextAlign.start,
textAlign: textAlign ?? TextAlign.start,
textScaleFactor: 1.0,
style: TextStyle(
decoration: TextDecoration.none,
......
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