import 'package:cs_resources/theme/app_colors_theme.dart'; import 'package:flutter/material.dart'; import 'package:widgets/ext/ex_widget.dart'; import 'package:widgets/my_load_image.dart'; import 'package:widgets/my_text_view.dart'; /// 设施的Book的Item class FacilityBookItem extends StatelessWidget { final int index; final String item; const FacilityBookItem({ required this.index, required this.item, }); @override Widget build(BuildContext context) { return Container( width: double.infinity, height: 80, margin: const EdgeInsets.only(left: 15, right: 15, top: 5, bottom: 5), padding: const EdgeInsets.symmetric(horizontal: 20), decoration: BoxDecoration( color: context.appColors.whiteBG, borderRadius: BorderRadius.circular(6.0), // 圆角 ), child: Row( mainAxisSize: MainAxisSize.max, crossAxisAlignment: CrossAxisAlignment.center, children: [ MyLoadImage( "https://img0.baidu.com/it/u=2679587808,2501833998&fm=253&fmt=auto&app=120&f=JPEG?w=372&h=400", width: 38.5, ), MyTextView( "Function Room", marginLeft: 17, fontSize: 15, textColor: context.appColors.textBlack, isFontMedium: true, ).expanded(), ], ), ); } }