fix: table view icon style

This commit is contained in:
Rongjian Zhang 2020-01-04 22:46:59 +08:00
parent b1181ffc6f
commit ffa3ef79d9
1 changed files with 19 additions and 24 deletions

View File

@ -69,22 +69,17 @@ class TableView extends StatelessWidget {
var leftWidget = item.leftWidget; var leftWidget = item.leftWidget;
if (leftWidget == null && hasIcon) { if (leftWidget == null && hasIcon) {
leftWidget = Container( leftWidget = Icon(
width: 24,
height: 24,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: theme.palette.primary,
),
child: Icon(
item.leftIconData, item.leftIconData,
color: theme.palette.background, color: theme.palette.primary,
size: 14, size: 20,
),
); );
} }
final widget = DefaultTextStyle( return Link(
onTap: item.onTap,
url: item.url,
child: DefaultTextStyle(
style: TextStyle(fontSize: 17, color: theme.palette.text), style: TextStyle(fontSize: 17, color: theme.palette.text),
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
child: Container( child: Container(
@ -116,10 +111,10 @@ class TableView extends StatelessWidget {
], ],
), ),
), ),
),
); );
}).toList(),
return Link(onTap: item.onTap, url: item.url, child: widget); ),
}).toList()),
CommonStyle.border, CommonStyle.border,
], ],
); );