pos changes
This commit is contained in:
@@ -33,7 +33,11 @@ class PromosView extends ConsumerWidget {
|
||||
child: Center(child: CircularProgressIndicator()),
|
||||
),
|
||||
error: (e, _) => Text('Could not load campaigns: $e'),
|
||||
// Stretch, not the Column default of centre. Centred, every card
|
||||
// shrank to its own intrinsic width and floated in the middle of the
|
||||
// page instead of starting at the left edge like every other module.
|
||||
data: (promos) => Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
_summary(promos),
|
||||
const SizedBox(height: AppSpacing.lg),
|
||||
@@ -55,6 +59,7 @@ class PromosView extends ConsumerWidget {
|
||||
.length;
|
||||
|
||||
return Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Expanded(
|
||||
child: StatTile(
|
||||
@@ -119,6 +124,7 @@ class PromosView extends ConsumerWidget {
|
||||
)
|
||||
: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
for (final promo in promos)
|
||||
_PromoRow(promo: promo, isAdmin: isAdmin),
|
||||
|
||||
Reference in New Issue
Block a user