stack_wallet/lib/widgets/rounded_container.dart
2022-08-26 16:11:35 +08:00

32 lines
704 B
Dart

import 'package:flutter/cupertino.dart';
import 'package:stackwallet/utilities/constants.dart';
class RoundedContainer extends StatelessWidget {
const RoundedContainer({
Key? key,
this.child,
required this.color,
this.padding = const EdgeInsets.all(12),
}) : super(key: key);
final Widget? child;
final Color color;
final EdgeInsets padding;
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
color: color,
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
),
),
child: Padding(
padding: padding,
child: child,
),
);
}
}