2022-08-26 08:11:35 +00:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
|
|
import 'package:stackwallet/widgets/rounded_container.dart';
|
|
|
|
|
|
|
|
class RoundedWhiteContainer extends StatelessWidget {
|
|
|
|
const RoundedWhiteContainer({
|
|
|
|
Key? key,
|
|
|
|
this.child,
|
|
|
|
this.padding = const EdgeInsets.all(12),
|
2022-09-16 23:54:46 +00:00
|
|
|
this.radiusMultiplier = 1.0,
|
2022-09-18 17:27:38 +00:00
|
|
|
this.width,
|
|
|
|
this.height,
|
2022-08-26 08:11:35 +00:00
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
final Widget? child;
|
|
|
|
final EdgeInsets padding;
|
2022-09-16 23:54:46 +00:00
|
|
|
final double radiusMultiplier;
|
2022-09-18 17:27:38 +00:00
|
|
|
final double? width;
|
|
|
|
final double? height;
|
2022-08-26 08:11:35 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return RoundedContainer(
|
|
|
|
color: CFColors.white,
|
|
|
|
padding: padding,
|
2022-09-16 23:54:46 +00:00
|
|
|
radiusMultiplier: radiusMultiplier,
|
2022-09-18 17:27:38 +00:00
|
|
|
width: width,
|
|
|
|
height: height,
|
2022-08-26 08:11:35 +00:00
|
|
|
child: child,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|