Merge remote-tracking branch 'upstream/main'

This commit is contained in:
Username1548
2024-11-12 19:10:59 +07:00
29 changed files with 1754 additions and 56 deletions

View File

@@ -8,6 +8,7 @@ import 'package:flutter_svg/svg.dart';
class TypeBadges extends StatefulWidget {
const TypeBadges({super.key, required this.type});
final DietType type;
@override
@@ -16,6 +17,7 @@ class TypeBadges extends StatefulWidget {
class _TypeBadgesState extends State<TypeBadges> {
final List<bool> overlaysVisibilityState = [false, false, false, false];
@override
Widget build(BuildContext context) {
final s = S.of(context);
@@ -117,11 +119,18 @@ class _TypeBadgesState extends State<TypeBadges> {
}
class _InfoOverlayEntry extends StatelessWidget {
const _InfoOverlayEntry({required this.title, required this.description, required this.assetPath, required this.onClose});
const _InfoOverlayEntry({
required this.title,
required this.description,
required this.assetPath,
required this.onClose,
});
final String title;
final String description;
final assetPath;
final void Function() onClose;
@override
Widget build(BuildContext context) {
return MainBackgroundBouble(