stack_wallet/lib/widgets/rounded_white_container.dart

55 lines
1.4 KiB
Dart
Raw Normal View History

2023-05-26 21:21:16 +00:00
/*
* This file is part of Stack Wallet.
*
* Copyright (c) 2023 Cypher Stack
* All Rights Reserved.
* The code is distributed under GPLv3 license, see LICENSE file for details.
* Generated by Cypher Stack on 2023-05-26
*
*/
import 'package:flutter/material.dart';
import 'package:stackwallet/themes/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,
this.hoverColor,
2023-02-02 21:37:59 +00:00
this.boxShadow,
2023-03-21 23:18:07 +00:00
this.onPressed,
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;
final Color? hoverColor;
2023-02-02 21:37:59 +00:00
final List<BoxShadow>? boxShadow;
2023-03-21 23:18:07 +00:00
final VoidCallback? onPressed;
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,
hoverColor: hoverColor,
2023-03-21 23:18:07 +00:00
onPressed: onPressed,
2022-10-28 19:51:25 +00:00
child: child,
2022-08-26 08:11:35 +00:00
);
}
}