Skip to content

Commit f888cb1

Browse files
committed
fixed grid view
1 parent fccfeb8 commit f888cb1

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

lib/match_details/view/match_details_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ class _DeleteMatchButton extends StatelessWidget {
553553
userId: context.read<AppBloc>().state.user.id,
554554
),
555555
);
556-
// Just close the dialog and let the BlocConsumer handle navigation
556+
557557
context.pop();
558558
},
559559
),

lib/stats_overview/widgets/stats_overview.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class StatsOverviewWidget extends StatelessWidget {
2929
}
3030
if (state is StatsOverviewLoaded) {
3131
return GridView.count(
32-
physics: const ClampingScrollPhysics(),
33-
crossAxisSpacing: 100,
32+
crossAxisSpacing: 50,
33+
childAspectRatio: .6,
3434
mainAxisSpacing: 10,
3535
crossAxisCount: 3,
3636
children: [

lib/stats_overview/widgets/stats_widget.dart

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,17 @@ class StatsWidget extends StatelessWidget {
2626
maxLines: 3,
2727
),
2828
),
29-
Text(
30-
title,
31-
style: Theme.of(context)
32-
.textTheme
33-
.titleSmall
34-
?.copyWith(color: Colors.blueGrey),
35-
textAlign: TextAlign.center,
29+
SizedBox(
30+
height: 50,
31+
width: 80,
32+
child: AutoSizeText(
33+
title,
34+
style: Theme.of(context)
35+
.textTheme
36+
.titleSmall
37+
?.copyWith(color: Colors.blueGrey),
38+
textAlign: TextAlign.center,
39+
),
3640
),
3741
],
3842
);

0 commit comments

Comments
 (0)