import 'package:flutter/material.dart'; import 'package:lszlgl/config/borders.dart'; class StorehouseItem extends StatelessWidget { final String? left; final String? right; final bool special; const StorehouseItem({ super.key, this.left, this.right, this.special = false, }); @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.symmetric(vertical: 4), child: Row( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Expanded( child: Text( left ?? '', style: special ? TextStyles.titA : TextStyles.titB, maxLines: null, ), ), const SizedBox(width: 20), Expanded( child: special ? Padding( padding: const EdgeInsets.only(left: 40), child: Container( alignment: Alignment.center, decoration: BoxDecoration( color: const Color(0xFFE0F2F1), border: Border.all(color: const Color(0xFF4DB6AC), width: 1.0), borderRadius: BorderRadius.circular(12) // 设置边框样式 ), child: Text(right ?? '', style: const TextStyle(fontSize: 14, color: Color(0xFF4DB6AC)))), ) : Text( right ?? '', style: TextStyles.titC, maxLines: null, textAlign: TextAlign.right, ), ), ], ), ); } } // 绿色圆点加标题 class StoreHouseTit extends StatelessWidget { final String tit; const StoreHouseTit({super.key, required this.tit}); @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.only(left: 6), child: Row( children: [ Container( width: 10, height: 10, decoration:const BoxDecoration( color: Color(0xFF4DB6AC), shape: BoxShape.circle, ), ), const SizedBox(width: 4), Text(tit,style: TextStyles.titA) ], ), ); } } // const Color(0xFFE0F2F1) const Color(0xFF4DB6AC) // Text(right ?? '',style:const TextStyle(fontSize: 15,color: Color(0xFF4DB6AC