forked from eatvio/eatvio_app
27 lines
901 B
Dart
27 lines
901 B
Dart
import 'package:eatvio_app/core/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,
|
|
this.padding,
|
|
this.mainAxisAlignment = MainAxisAlignment.start,
|
|
});
|
|
final List<Widget> children;
|
|
final Color? backgroundColor;
|
|
final double radius;
|
|
final EdgeInsetsGeometry? padding;
|
|
final MainAxisAlignment mainAxisAlignment;
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
padding: padding ?? const EdgeInsets.symmetric(horizontal: 12, vertical: 8.5),
|
|
decoration: BoxDecoration(color: backgroundColor ?? appTheme.gray50, borderRadius: BorderRadius.circular(radius)),
|
|
child: Row(mainAxisSize: MainAxisSize.min, mainAxisAlignment: mainAxisAlignment, children: children),
|
|
);
|
|
}
|
|
}
|