arrows.dart (591B)
1 import 'package:flutter/material.dart'; 2 import 'package:sense_the_rhythm/models/note.dart'; 3 import 'package:sense_the_rhythm/widgets/arrow.dart'; 4 5 class Arrows extends StatelessWidget { 6 final List<Note> notes; 7 8 const Arrows({super.key, required this.notes}); 9 10 @override 11 Widget build(BuildContext context) { 12 return Stack( 13 children: notes.map((note) { 14 double position = 15 note.position * 10000; // * 20 * MediaQuery.of(context).size.height; 16 17 return Arrow( 18 position: position, 19 direction: note.direction, 20 ); 21 }).toList()); 22 } 23 }