summaryrefslogtreecommitdiff
path: root/lib/level_selection.dart
diff options
context:
space:
mode:
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)),
);
}
}