mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 09:57:46 +00:00
27 lines
No EOL
670 B
Dart
27 lines
No EOL
670 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', width: 81, height: 28);
|
|
|
|
@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
|
|
)
|
|
]
|
|
);
|
|
}
|
|
} |