mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
offcenter radio button
This commit is contained in:
parent
6d1f0dec8a
commit
0176111580
1 changed files with 31 additions and 24 deletions
|
@ -77,35 +77,42 @@ class ExchangeProviderOptions extends ConsumerWidget {
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Padding(
|
||||||
activeColor: Theme.of(context)
|
padding: const EdgeInsets.only(top: 19.0),
|
||||||
.extension<StackColors>()!
|
child: Radio(
|
||||||
.radioButtonIconEnabled,
|
activeColor: Theme.of(context)
|
||||||
value: ChangeNowExchange.exchangeName,
|
.extension<StackColors>()!
|
||||||
groupValue: ref
|
.radioButtonIconEnabled,
|
||||||
.watch(currentExchangeNameStateProvider.state)
|
value: ChangeNowExchange.exchangeName,
|
||||||
.state,
|
groupValue: ref
|
||||||
onChanged: (value) {
|
.watch(currentExchangeNameStateProvider.state)
|
||||||
if (value is String) {
|
.state,
|
||||||
ref
|
onChanged: (value) {
|
||||||
.read(currentExchangeNameStateProvider.state)
|
if (value is String) {
|
||||||
.state = value;
|
ref
|
||||||
ref.read(exchangeFormStateProvider).exchange =
|
.read(
|
||||||
Exchange.fromName(ref
|
currentExchangeNameStateProvider.state)
|
||||||
.read(currentExchangeNameStateProvider
|
.state = value;
|
||||||
.state)
|
ref.read(exchangeFormStateProvider).exchange =
|
||||||
.state);
|
Exchange.fromName(ref
|
||||||
}
|
.read(currentExchangeNameStateProvider
|
||||||
},
|
.state)
|
||||||
|
.state);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 14,
|
width: 14,
|
||||||
),
|
),
|
||||||
SvgPicture.asset(
|
Padding(
|
||||||
Assets.exchange.changeNow,
|
padding: const EdgeInsets.only(top: 8.0),
|
||||||
width: isDesktop ? 32 : 24,
|
child: SvgPicture.asset(
|
||||||
height: isDesktop ? 32 : 24,
|
Assets.exchange.changeNow,
|
||||||
|
width: isDesktop ? 32 : 24,
|
||||||
|
height: isDesktop ? 32 : 24,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 10,
|
width: 10,
|
||||||
|
|
Loading…
Reference in a new issue