From 9c229b94d0aa52679e12e50d62aa8e6cbf9fb9c5 Mon Sep 17 00:00:00 2001 From: Orangerot Date: Tue, 7 Jan 2025 06:38:34 +0100 Subject: style: refactored searching files into Simfile class --- lib/game_over_stats.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/game_over_stats.dart') diff --git a/lib/game_over_stats.dart b/lib/game_over_stats.dart index a80617c..0e73024 100644 --- a/lib/game_over_stats.dart +++ b/lib/game_over_stats.dart @@ -50,8 +50,8 @@ class GameOverStats extends StatelessWidget { ]), TextButton( onPressed: () { - Route route = MaterialPageRoute( - builder: (context) => Level(stepmaniaFolderPath: simfile.directoryPath)); + Route route = + MaterialPageRoute(builder: (context) => Level(simfile)); Navigator.pushReplacement(context, route); }, child: Text('Retry')) -- cgit v1.2.3