mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 02:07:43 +00:00
33 lines
704 B
Dart
33 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,
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|