fixed syntax errors

This commit is contained in:
Tanner Silva 2021-02-02 20:23:02 -06:00
parent e08f665e4a
commit d1c7c99279

View file

@ -27,28 +27,23 @@ class TradeDetailsPage extends BasePage {
itemBuilder: (_, __, index) { itemBuilder: (_, __, index) {
final item = tradeDetailsViewModel.items[index]; final item = tradeDetailsViewModel.items[index];
if (item is TrackTradeListItem) { if (item is TrackTradeListItem) {
return GestureDetector( return GestureDetector(
onTap: item.onTap, onTap: item.onTap,
child: StandartListRow( child: StandartListRow(
title: '${item.title}', title: '${item.title}', value: '${item.value}'));
value: '${item.value}' }
));
}
if (item is SectionStandardListItem) { if (item is SectionStandardListItem) {
return GestureDetector( return GestureDetector(
onTap: () { onTap: () {
Clipboard.setData(ClipboardData(text: '${item.value}')); Clipboard.setData(ClipboardData(text: '${item.value}'));
showBar<void>(context, S showBar<void>(context, S.of(context).copied_to_clipboard);
.of(context) },
.copied_to_clipboard); child: StandartListRow(
}, title: '${item.title}', value: '${item.value}'));
child: StandartListRow( }
title: '${item.title}', });
value: '${item.value}'
));
}
}); });
} }
} }