mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 09:57:46 +00:00
26 lines
646 B
Dart
26 lines
646 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
class TopPanel extends StatelessWidget {
|
||
|
TopPanel({@required this.height, @required this.color, @required this.widget});
|
||
|
|
||
|
final double height;
|
||
|
final Color color;
|
||
|
final Widget widget;
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Container(
|
||
|
width: double.infinity,
|
||
|
height: height ?? double.infinity,
|
||
|
padding: EdgeInsets.all(24),
|
||
|
decoration: BoxDecoration(
|
||
|
borderRadius: BorderRadius.only(
|
||
|
bottomLeft: Radius.circular(24),
|
||
|
bottomRight: Radius.circular(24)
|
||
|
),
|
||
|
color: color
|
||
|
),
|
||
|
child: widget,
|
||
|
);
|
||
|
}
|
||
|
}
|