mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
pad desktop send view with ConditionalParent
This commit is contained in:
parent
181ec5e539
commit
0fe16638b0
1 changed files with 303 additions and 292 deletions
|
@ -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> {
|
|||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue