mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-05 20:07:44 +00:00
39 lines
910 B
Dart
39 lines
910 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),
|
|
this.radiusMultiplier = 1.0,
|
|
this.width,
|
|
this.height,
|
|
}) : super(key: key);
|
|
|
|
final Widget? child;
|
|
final Color color;
|
|
final EdgeInsets padding;
|
|
final double radiusMultiplier;
|
|
final double? width;
|
|
final double? height;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
width: width,
|
|
height: height,
|
|
decoration: BoxDecoration(
|
|
color: color,
|
|
borderRadius: BorderRadius.circular(
|
|
Constants.size.circularBorderRadius * radiusMultiplier,
|
|
),
|
|
),
|
|
child: Padding(
|
|
padding: padding,
|
|
child: child,
|
|
),
|
|
);
|
|
}
|
|
}
|