forked from eatvio/eatvio_app
updated designe of aboute diet page
This commit is contained in:
20
lib/features/diets/presentation/widgets/info_bouble.dart
Normal file
20
lib/features/diets/presentation/widgets/info_bouble.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
import 'package:eatvio_app/theme/theme_helper.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class InfoBouble extends StatelessWidget {
|
||||
const InfoBouble({super.key, required this.children, this.backgroundColor, this.radius = 100});
|
||||
final List<Widget> children;
|
||||
final Color? backgroundColor;
|
||||
final double radius;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 8.5),
|
||||
decoration: BoxDecoration(
|
||||
color: backgroundColor ?? appTheme.gray50,
|
||||
borderRadius: BorderRadius.circular(radius),
|
||||
),
|
||||
child: Row(children: children),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user