feat(diary) Addeed mood and satiety picker scale to the screen

This commit is contained in:
2024-02-15 13:08:50 +03:00
parent 57a7f9bd91
commit 397b579e56
5 changed files with 158 additions and 25 deletions

View File

@@ -0,0 +1,28 @@
import 'package:flutter/material.dart';
class ScaleElement extends StatelessWidget {
final Color color;
final bool isSelected;
final VoidCallback onTap;
const ScaleElement({
required this.color,
required this.isSelected,
required this.onTap,
});
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: onTap,
child: Container(
width: isSelected ? 40 : 20,
height: isSelected ? 40 : 20,
decoration: BoxDecoration(
color: color,
shape: BoxShape.circle,
),
),
);
}
}