summaryrefslogtreecommitdiff
path: root/lib/widgets/arrows.dart
diff options
context:
space:
mode:
authorOrangerot <purple@orangerot.dev>2025-01-11 18:22:32 +0100
committerOrangerot <purple@orangerot.dev>2025-01-11 18:22:32 +0100
commitcd061eceeb421d6bec5cd38bf9f315036ce88887 (patch)
tree2ad0ad6101d6fa60d23edf05fccc2208c41c15cb /lib/widgets/arrows.dart
parentf98162b6d8ed70e571440c539ef053dce09f704d (diff)
style: refactored into folder structure
Diffstat (limited to 'lib/widgets/arrows.dart')
-rw-r--r--lib/widgets/arrows.dart24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/widgets/arrows.dart b/lib/widgets/arrows.dart
new file mode 100644
index 0000000..cf04e59
--- /dev/null
+++ b/lib/widgets/arrows.dart
@@ -0,0 +1,24 @@
+import 'package:flutter/material.dart';
+import 'package:sense_the_rhythm/models/note.dart';
+import 'package:sense_the_rhythm/widgets/arrow.dart';
+
+class Arrows extends StatelessWidget {
+ final List<Note> notes;
+ final double position;
+
+ const Arrows({super.key, required this.notes, required this.position});
+
+ @override
+ Widget build(BuildContext context) {
+ return Stack(
+ children: notes.map((note) {
+ double position =
+ note.position * 10000; // * 20 * MediaQuery.of(context).size.height;
+
+ return Arrow(
+ position: position,
+ direction: note.direction,
+ );
+ }).toList());
+ }
+}