60 lines
1.6 KiB
Dart
60 lines
1.6 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
import '../../../../../utils/utils.dart';
|
|
import 'header_logic.dart';
|
|
|
|
class HeaderComponent extends StatelessWidget {
|
|
const HeaderComponent({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final logic = Get.put(HeaderLogic());
|
|
final state = Get.find<HeaderLogic>().state;
|
|
|
|
return Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
children: [
|
|
Row(
|
|
children: [
|
|
ClipRRect(
|
|
borderRadius: BorderRadius.circular(50),
|
|
child: Image.network(
|
|
"https://pic.ziyuan.wang/user/guest/2023/12/微信图片_20231109211458_c1a41ab0fd7dd.jpg",
|
|
width: 50.0,
|
|
)),
|
|
const SizedBox(
|
|
width: 5,
|
|
),
|
|
const Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
"商家: GAGA酒吧",
|
|
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w500),
|
|
),
|
|
Text(
|
|
"Huakk,欢迎回来!!!",
|
|
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w400),
|
|
)
|
|
],
|
|
)
|
|
],
|
|
),
|
|
Row(
|
|
children: [
|
|
IconButton(
|
|
onPressed: () {
|
|
ToolFn.tips("点击了核销按钮");
|
|
},
|
|
icon: const Icon(
|
|
Icons.qr_code_scanner,
|
|
size: 32,
|
|
))
|
|
],
|
|
)
|
|
],
|
|
);
|
|
}
|
|
}
|