stack_wallet/lib/widgets/rounded_white_container.dart

33 lines
819 B
Dart
Raw Normal View History

2022-08-26 08:11:35 +00:00
import 'package:flutter/cupertino.dart';
2022-09-21 00:46:07 +00:00
import 'package:stackwallet/utilities/theme/stack_theme.dart';
2022-08-26 08:11:35 +00:00
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: StackTheme.instance.color.popupBG,
2022-08-26 08:11:35 +00:00
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,
);
}
}