mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-24 04:19:23 +00:00
32 lines
704 B
Dart
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,
|
|
),
|
|
);
|
|
}
|
|
}
|