Files
flutter-jdt-store/lib/pages/layout/home/components/header/header_view.dart
2024-01-04 16:41:51 +08:00

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,
))
],
)
],
);
}
}