import 'package:flutter/cupertino.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; /// 操作按钮,包含2个按钮,左侧按钮固定,右侧按钮自适应 class ActionBtn extends StatelessWidget { /// 左侧按钮 final Widget leftBtn; /// 右侧按钮 final Widget rightBtn; const ActionBtn({super.key, required this.leftBtn, required this.rightBtn}); @override Widget build(BuildContext context) { return Row( children: [leftBtn, SizedBox(width: 10.w), Expanded(child: rightBtn)], ); } }