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

code review

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