12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import 'package:cs_resources/generated/l10n.dart';
- 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';
- class HouseholdItem extends StatelessWidget {
- final int index;
- final String item;
- const HouseholdItem({
- required this.index,
- required this.item,
- });
- @override
- Widget build(BuildContext context) {
- return Container(
- width: double.infinity,
- color: context.appColors.whiteBG,
- margin: const EdgeInsets.only(bottom: 5),
- padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 15),
- child: Row(
- mainAxisSize: MainAxisSize.max,
- children: [
- MyLoadImage(
- "https://img1.baidu.com/it/u=1656098746,3560654086&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800",
- width: 65,
- height: 65,
- isCircle: true,
- ).marginOnly(right: 17),
- MyTextView(
- "Wu Bing Bing",
- fontSize: 17,
- isFontBold: true,
- textColor: context.appColors.textBlack,
- maxLines: 2,
- ).expanded(),
- ],
- ),
- );
- }
- }
|