pad desktop send view with ConditionalParent

This commit is contained in:
sneurlax 2024-03-12 06:45:26 -05:00
parent 181ec5e539
commit 0fe16638b0

View file

@ -287,6 +287,15 @@ class _FrostSendViewState extends ConsumerState<FrostSendView> {
),
),
),
child: ConditionalParent(
condition: Util.isDesktop,
builder: (child) => Padding(
padding: const EdgeInsets.symmetric(
horizontal: 20,
vertical: 14,
),
child: child,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
@ -329,8 +338,8 @@ class _FrostSendViewState extends ConsumerState<FrostSendView> {
// ),
Text(
"Available balance",
style:
STextStyles.label(context).copyWith(fontSize: 10),
style: STextStyles.label(context)
.copyWith(fontSize: 10),
),
],
),
@ -357,7 +366,8 @@ class _FrostSendViewState extends ConsumerState<FrostSendView> {
ref.watch(pAmountFormatter(coin)).format(ref
.watch(pWalletBalance(walletId))
.spendable),
style: STextStyles.titleBold12(context).copyWith(
style:
STextStyles.titleBold12(context).copyWith(
fontSize: 10,
),
textAlign: TextAlign.right,
@ -595,6 +605,7 @@ class _FrostSendViewState extends ConsumerState<FrostSendView> {
),
],
),
),
);
}
}