offcenter radio button

This commit is contained in:
ryleedavis 2022-12-30 08:36:51 -07:00
parent 6d1f0dec8a
commit 0176111580

View file

@ -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,