2020-05-06 17:40:36 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:cake_wallet/palette.dart';
|
|
|
|
|
|
|
|
class HeaderTile extends StatelessWidget {
|
|
|
|
HeaderTile({
|
|
|
|
@required this.onTap,
|
|
|
|
@required this.title,
|
|
|
|
@required this.icon
|
|
|
|
});
|
|
|
|
|
|
|
|
final VoidCallback onTap;
|
|
|
|
final String title;
|
|
|
|
final Icon icon;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return GestureDetector(
|
|
|
|
onTap: onTap,
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: 24,
|
|
|
|
right: 24,
|
2020-05-07 10:07:51 +00:00
|
|
|
top: 24,
|
|
|
|
bottom: 24
|
2020-05-06 17:40:36 +00:00
|
|
|
),
|
2020-07-28 16:03:34 +00:00
|
|
|
color: PaletteDark.nightBlue,
|
2020-05-06 17:40:36 +00:00
|
|
|
child: Row(
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: <Widget>[
|
|
|
|
Text(
|
|
|
|
title,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 18,
|
2020-07-06 20:09:03 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
2020-07-28 16:03:34 +00:00
|
|
|
color: Colors.white
|
2020-05-06 17:40:36 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
height: 32,
|
|
|
|
width: 32,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
shape: BoxShape.circle,
|
2020-07-28 16:03:34 +00:00
|
|
|
color: PaletteDark.distantNightBlue
|
2020-05-06 17:40:36 +00:00
|
|
|
),
|
|
|
|
child: icon,
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|