QOL: MIH Mine Sweeper Package performance improvements pt2

This commit is contained in:
2025-11-28 13:30:12 +02:00
parent e8cae1a894
commit 586e67b369
4 changed files with 194 additions and 208 deletions

View File

@@ -40,8 +40,6 @@ class _BuildMinesweeperLeaderboardListState
builder: (BuildContext context, MzansiProfileProvider profileProvider,
MihMineSweeperProvider mineSweeperProvider, Widget? child) {
return ListView.separated(
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
separatorBuilder: (BuildContext context, index) {
return Divider(
color: MihColors.getSecondaryColor(

View File

@@ -39,8 +39,6 @@ class _BuildMinesweeperLeaderboardListState
builder: (BuildContext context, MzansiProfileProvider profileProvider,
MihMineSweeperProvider mineSweeperProvider, Widget? child) {
return ListView.separated(
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
separatorBuilder: (BuildContext context, index) {
return Divider(
color: MihColors.getSecondaryColor(

View File

@@ -91,9 +91,7 @@ class _MihMineSweeperLeaderBoardState extends State<MihMineSweeperLeaderBoard> {
child: Mihloadingcircle(),
);
} else {
return SingleChildScrollView(
physics: const AlwaysScrollableScrollPhysics(),
child: Column(
return Column(
children: [
Padding(
padding: EdgeInsets.symmetric(horizontal: width / 20),
@@ -151,9 +149,7 @@ class _MihMineSweeperLeaderBoardState extends State<MihMineSweeperLeaderBoard> {
fontSize: 25,
fontWeight: FontWeight.bold,
color: MihColors.getSecondaryColor(
MzansiInnovationHub.of(context)!
.theme
.mode ==
MzansiInnovationHub.of(context)!.theme.mode ==
"Dark"),
),
),
@@ -193,9 +189,8 @@ class _MihMineSweeperLeaderBoardState extends State<MihMineSweeperLeaderBoard> {
],
),
)
: BuildMinesweeperLeaderboardList(),
: Expanded(child: BuildMinesweeperLeaderboardList()),
],
),
);
}
},

View File

@@ -81,9 +81,7 @@ class _MihMineSweeperLeaderBoardState extends State<MyScoreBoard> {
child: Mihloadingcircle(),
);
} else {
return SingleChildScrollView(
physics: const AlwaysScrollableScrollPhysics(),
child: Column(
return Column(
children: [
Center(
child: MihCircleAvatar(
@@ -156,9 +154,7 @@ class _MihMineSweeperLeaderBoardState extends State<MyScoreBoard> {
fontSize: 25,
fontWeight: FontWeight.bold,
color: MihColors.getSecondaryColor(
MzansiInnovationHub.of(context)!
.theme
.mode ==
MzansiInnovationHub.of(context)!.theme.mode ==
"Dark"),
),
),
@@ -198,9 +194,8 @@ class _MihMineSweeperLeaderBoardState extends State<MyScoreBoard> {
],
),
)
: BuildMyScoreBoardList(),
: Expanded(child: BuildMyScoreBoardList()),
],
),
);
}
},