From b3e4d63a89b1d98fdbff751bdfe6c0df9bcb7b74 Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 21 Jul 2023 17:30:27 -0600 Subject: [PATCH] strongly typed spacing --- lib/pages/ordinals/widgets/ordinals_list.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/pages/ordinals/widgets/ordinals_list.dart b/lib/pages/ordinals/widgets/ordinals_list.dart index 62d620130..c654f1522 100644 --- a/lib/pages/ordinals/widgets/ordinals_list.dart +++ b/lib/pages/ordinals/widgets/ordinals_list.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; import 'package:stackwallet/models/ordinal.dart'; - import 'package:stackwallet/pages/ordinals/widgets/ordinal_card.dart'; class OrdinalsList extends StatelessWidget { @@ -13,7 +12,7 @@ class OrdinalsList extends StatelessWidget { final String walletId; final Future> ordinalsFuture; - get spacing => 2.0; + double get spacing => 2.0; @override Widget build(BuildContext context) { @@ -30,8 +29,8 @@ class OrdinalsList extends StatelessWidget { shrinkWrap: true, itemCount: ordinals.length, gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( - crossAxisSpacing: spacing as double, - mainAxisSpacing: spacing as double, + crossAxisSpacing: spacing, + mainAxisSpacing: spacing, crossAxisCount: 2, childAspectRatio: 6 / 7, // was 3/4, less data displayed now ), @@ -46,4 +45,4 @@ class OrdinalsList extends StatelessWidget { }, ); } -} \ No newline at end of file +}