stack_wallet/lib/widgets/rounded_white_container.dart

36 lines
919 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
import 'package:stackwallet/utilities/theme/stack_colors.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,
this.borderColor,
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;
final Color? borderColor;
2022-08-26 08:11:35 +00:00
@override
Widget build(BuildContext context) {
return RoundedContainer(
color: Theme.of(context).extension<StackColors>()!.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,
borderColor: borderColor,
2022-08-26 08:11:35 +00:00
);
}
}