fix: page transaction

This commit is contained in:
2024-03-13 15:28:59 +07:00
parent 17c7559158
commit c23075304a
8 changed files with 241 additions and 45 deletions

View File

@@ -8,22 +8,26 @@ class ListTileView extends StatelessWidget {
final String title;
final VoidCallback? onPressed;
final Widget? prefixIcon, suffixIcon;
final Color? colorTitle;
final EdgeInsetsGeometry? padding, margin;
final TextStyle? textStyle;
const ListTileView(
{Key? key,
required this.title,
this.onPressed,
this.prefixIcon,
this.suffixIcon,
this.colorTitle})
this.padding,
this.textStyle,
this.margin})
: super(key: key);
@override
Widget build(BuildContext context) {
return Container(
width: SizeConfig.width,
padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 8.0),
margin: const EdgeInsets.symmetric(vertical: 16.0),
padding: padding ??
const EdgeInsets.symmetric(vertical: 16.0, horizontal: 8.0),
margin: margin ?? const EdgeInsets.symmetric(vertical: 16.0),
decoration: BoxDecoration(
color: ColorPalette.blue50,
borderRadius: BorderRadius.circular(10),
@@ -47,22 +51,23 @@ class ListTileView extends StatelessWidget {
Expanded(
child: Text(
title,
style: TextStyle(
fontWeight: FontWeight.w600,
color: colorTitle ?? ColorPalette.slate500,
),
style: textStyle ??
const TextStyle(
fontWeight: FontWeight.w600,
color: ColorPalette.slate500,
),
),
),
suffixIcon != null
? IconButton(
onPressed: onPressed,
icon: const Icon(
Icons.arrow_forward_ios,
color: ColorPalette.primary,
size: 20,
),
)
: const SizedBox(),
suffixIcon ??
IconButton(
onPressed: onPressed,
icon: const Icon(
Icons.arrow_forward_ios,
color: ColorPalette.primary,
size: 20,
),
),
// : const SizedBox(),
],
),
);