Generic Fixes (#1103)

* Update trade_details_page.dart

* let web3dart calculate gas price and max gas while just providing the priority fee per gas needed
This commit is contained in:
Omar Hatem
2023-09-29 01:53:53 +03:00
committed by GitHub
parent f07062d987
commit b1859b9e63
3 changed files with 6 additions and 6 deletions
@@ -51,10 +51,11 @@ class TradeDetailsPageBodyState extends State<TradeDetailsPageBody> {
@override
Widget build(BuildContext context) {
return Observer(builder: (_) {
// FIX-ME: Added `context` it was not used here before, maby bug ?
int itemsCount = tradeDetailsViewModel.items.length;
return SectionStandardList(
sectionCount: 1,
itemCounter: (int _) => tradeDetailsViewModel.items.length,
itemCounter: (int _) => itemsCount,
itemBuilder: (__, index) {
final item = tradeDetailsViewModel.items[index];