stack_wallet/lib/widgets/rounded_white_container.dart

39 lines
1,003 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,
2023-02-02 21:37:59 +00:00
this.boxShadow,
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;
2023-02-02 21:37:59 +00:00
final List<BoxShadow>? boxShadow;
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,
borderColor: borderColor,
2023-02-02 21:37:59 +00:00
boxShadow: boxShadow,
2022-10-28 19:51:25 +00:00
child: child,
2022-08-26 08:11:35 +00:00
);
}
}