refactor: Remove unused code and improve PaymentHistoryItem widget styling
This commit is contained in:
@@ -11,16 +11,16 @@ class FullWidthDivider extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final screenWidth = MediaQuery.of(context).size.width;
|
//final screenWidth = MediaQuery.of(context).size.width;
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(height: UiConstants.space10),
|
const SizedBox(height: UiConstants.space10),
|
||||||
Transform.translate(
|
// Transform.translate(
|
||||||
offset: const Offset(-UiConstants.space4, 0),
|
// offset: const Offset(-UiConstants.space4, 0),
|
||||||
child: SizedBox(width: screenWidth, child: const Divider()),
|
// child: SizedBox(width: screenWidth, child: const Divider()),
|
||||||
),
|
// ),
|
||||||
const SizedBox(height: UiConstants.space10),
|
// const SizedBox(height: UiConstants.space10),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -172,17 +172,7 @@ class _PaymentsPageState extends State<PaymentsPage> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: UiConstants.space4),
|
const SizedBox(height: UiConstants.space8),
|
||||||
|
|
||||||
// Pending Pay
|
|
||||||
if (state.summary.pendingEarnings > 0)
|
|
||||||
PendingPayCard(
|
|
||||||
amount: state.summary.pendingEarnings,
|
|
||||||
onCashOut: () {
|
|
||||||
Modular.to.pushNamed('${StaffPaths.payments}early-pay');
|
|
||||||
},
|
|
||||||
),
|
|
||||||
const SizedBox(height: UiConstants.space6),
|
|
||||||
|
|
||||||
// Recent Payments
|
// Recent Payments
|
||||||
if (state.history.isNotEmpty)
|
if (state.history.isNotEmpty)
|
||||||
@@ -191,7 +181,7 @@ class _PaymentsPageState extends State<PaymentsPage> {
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text(
|
Text(
|
||||||
"Recent Payments",
|
"Recent Payments",
|
||||||
style: UiTypography.body2m.textPrimary,
|
style: UiTypography.body1b,
|
||||||
),
|
),
|
||||||
const SizedBox(height: UiConstants.space3),
|
const SizedBox(height: UiConstants.space3),
|
||||||
Column(
|
Column(
|
||||||
|
|||||||
@@ -32,13 +32,7 @@ class PaymentHistoryItem extends StatelessWidget {
|
|||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: UiColors.white,
|
color: UiColors.white,
|
||||||
borderRadius: BorderRadius.circular(UiConstants.radiusBase),
|
borderRadius: BorderRadius.circular(UiConstants.radiusBase),
|
||||||
boxShadow: <BoxShadow>[
|
border: Border.all(color: UiColors.border, width: 0.5),
|
||||||
BoxShadow(
|
|
||||||
color: UiColors.black.withValues(alpha: 0.05),
|
|
||||||
blurRadius: 2,
|
|
||||||
offset: const Offset(0, 1),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
|||||||
Reference in New Issue
Block a user