mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 18:07:44 +00:00
27 lines
646 B
Dart
27 lines
646 B
Dart
|
import 'package:cake_wallet/src/screens/yat/widgets/yat_close_button.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
class YatBar extends StatelessWidget {
|
||
|
YatBar({this.onClose});
|
||
|
|
||
|
final VoidCallback onClose;
|
||
|
final image = Image.asset('assets/images/yat_logo.png');
|
||
|
|
||
|
@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
|
||
|
)
|
||
|
]
|
||
|
);
|
||
|
}
|
||
|
}
|