import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class TaskHeadBlock extends StatelessWidget {
  const TaskHeadBlock({super.key});

  @override
  Widget build(BuildContext context) {
    return Stack(
      clipBehavior: Clip.none,
      children: [
        Positioned(
          left: -28.w,
          right: -28.w,
          top: 0,
          child: Container(
            height: 150.h,
            color: Colors.white,
          ),
        ),
        Container(
          height: 150.h,
          padding: EdgeInsets.only(top: ScreenUtil().statusBarHeight),
          child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Text(
                '设备告警看板',
                style: TextStyle(
                  fontSize: 32.sp,
                  fontWeight: FontWeight.bold,
                  color: const Color.fromRGBO(0, 0, 0, 1),
                ),
              ),
            ],
          ),
        ),
      ],
    );
  }

}