mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 11:29:23 +00:00
54 lines
1.3 KiB
Dart
54 lines
1.3 KiB
Dart
/*
|
|
* 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 '../themes/stack_colors.dart';
|
|
import 'rounded_container.dart';
|
|
|
|
class RoundedWhiteContainer extends StatelessWidget {
|
|
const RoundedWhiteContainer({
|
|
super.key,
|
|
this.child,
|
|
this.padding = const EdgeInsets.all(12),
|
|
this.radiusMultiplier = 1.0,
|
|
this.width,
|
|
this.height,
|
|
this.borderColor,
|
|
this.hoverColor,
|
|
this.boxShadow,
|
|
this.onPressed,
|
|
});
|
|
|
|
final Widget? child;
|
|
final EdgeInsets padding;
|
|
final double radiusMultiplier;
|
|
final double? width;
|
|
final double? height;
|
|
final Color? borderColor;
|
|
final Color? hoverColor;
|
|
final List<BoxShadow>? boxShadow;
|
|
final VoidCallback? onPressed;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return RoundedContainer(
|
|
color: Theme.of(context).extension<StackColors>()!.popupBG,
|
|
padding: padding,
|
|
radiusMultiplier: radiusMultiplier,
|
|
width: width,
|
|
height: height,
|
|
borderColor: borderColor,
|
|
boxShadow: boxShadow,
|
|
hoverColor: hoverColor,
|
|
onPressed: onPressed,
|
|
child: child,
|
|
);
|
|
}
|
|
}
|