| 1 | import 'package:cake_wallet/src/screens/yat/widgets/yat_close_button.dart'; |
| 2 | import 'package:flutter/material.dart'; |
| 3 | |
| 4 | class YatBar extends StatelessWidget { |
| 5 | YatBar({this.onClose}); |
| 6 | |
| 7 | final VoidCallback? onClose; |
| 8 | final image = Image.asset('assets/images/yat_logo.png', width: 81, height: 28); |
| 9 | |
| 10 | @override |
| 11 | Widget build(BuildContext context) { |
| 12 | return Stack(alignment: Alignment.bottomCenter, children: [ |
| 13 | Positioned(top: 0, right: 0, child: YatCloseButton(onClose: onClose)), |
| 14 | Positioned(top: 16, child: image) |
| 15 | ]); |
| 16 | } |
| 17 | } |