From 9aaf00e6275616f4ff3086b0fb4ae98c2036c4fb Mon Sep 17 00:00:00 2001 From: Orangerot Date: Sun, 22 Dec 2024 17:41:14 +0100 Subject: feat: level layout --- lib/level_selection.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/level_selection.dart') diff --git a/lib/level_selection.dart b/lib/level_selection.dart index c63c8c3..a5a9c32 100644 --- a/lib/level_selection.dart +++ b/lib/level_selection.dart @@ -1,5 +1,7 @@ import 'package:flutter/material.dart'; +import 'level.dart'; + class LevelSelection extends StatelessWidget { final List _musicList = [ "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3", @@ -26,13 +28,13 @@ class LevelSelection extends StatelessWidget { trailing: Icon(Icons.play_arrow), title: Text('Track ${index + 1}'), subtitle: Text('3:45'), + onTap: () => Navigator.push(context, + MaterialPageRoute(builder: (BuildContext context) => Level())), ); }, ), - floatingActionButton: FloatingActionButton( - onPressed: () => {}, - child: Icon(Icons.add) - ), + floatingActionButton: + FloatingActionButton(onPressed: () => {}, child: Icon(Icons.add)), ); } } -- cgit v1.2.3