2021-08-20 13:26:00 +00:00
|
|
|
import 'package:cake_wallet/src/screens/yat/widgets/yat_close_button.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class YatBar extends StatelessWidget {
|
|
|
|
YatBar({this.onClose});
|
|
|
|
|
2022-10-12 17:09:57 +00:00
|
|
|
final VoidCallback? onClose;
|
2021-10-04 13:03:35 +00:00
|
|
|
final image = Image.asset('assets/images/yat_logo.png', width: 81, height: 28);
|
2021-08-20 13:26:00 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Stack(
|
|
|
|
alignment: Alignment.bottomCenter,
|
|
|
|
children: [
|
|
|
|
Positioned(
|
|
|
|
top: 0,
|
|
|
|
right: 0,
|
|
|
|
child: YatCloseButton(onClose: onClose)
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
top: 16,
|
|
|
|
child: image
|
|
|
|
)
|
|
|
|
]
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|