diff options
author | Orangerot <purple@orangerot.dev> | 2025-01-11 18:22:32 +0100 |
---|---|---|
committer | Orangerot <purple@orangerot.dev> | 2025-01-11 18:22:32 +0100 |
commit | cd061eceeb421d6bec5cd38bf9f315036ce88887 (patch) | |
tree | 2ad0ad6101d6fa60d23edf05fccc2208c41c15cb /lib/widgets/arrow.dart | |
parent | f98162b6d8ed70e571440c539ef053dce09f704d (diff) |
style: refactored into folder structure
Diffstat (limited to 'lib/widgets/arrow.dart')
-rw-r--r-- | lib/widgets/arrow.dart | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/widgets/arrow.dart b/lib/widgets/arrow.dart new file mode 100644 index 0000000..1ad0ec4 --- /dev/null +++ b/lib/widgets/arrow.dart @@ -0,0 +1,18 @@ +import 'package:flutter/material.dart'; +import 'package:sense_the_rhythm/models/arrow_direction.dart'; + +class Arrow extends StatelessWidget { + final double position; + final ArrowDirection direction; + + const Arrow({super.key, required this.position, required this.direction}); + + @override + Widget build(BuildContext context) { + return Positioned( + left: MediaQuery.of(context).size.width / 2 - 50, // Center the arrow + bottom: position + 50, + child: Icon(size: 100, color: Colors.redAccent.shade400, direction.icon), + ); + } +} |