summaryrefslogtreecommitdiff
path: root/lib/level_selection.dart
diff options
context:
space:
mode:
authorOrangerot <purple@orangerot.dev>2024-12-22 17:41:14 +0100
committerOrangerot <purple@orangerot.dev>2024-12-22 17:41:14 +0100
commit9aaf00e6275616f4ff3086b0fb4ae98c2036c4fb (patch)
tree23f454309f364c664c145c859f9a8866e32e0b26 /lib/level_selection.dart
parentc979904f95c2451fed5bba5d83fe9a7244c39ae3 (diff)
feat: level layout
Diffstat (limited to 'lib/level_selection.dart')
-rw-r--r--lib/level_selection.dart10
1 files changed, 6 insertions, 4 deletions
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<String> _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)),
);
}
}