Fix for UnspentCoinsInfo Hive Box. Add checkbox for fixed rates for exchange.

This commit is contained in:
M 2022-01-24 16:12:25 +02:00
parent 63a0395c2d
commit 2e1f1e2c79
2 changed files with 7 additions and 4 deletions

View file

@ -109,8 +109,11 @@ Future<void> main() async {
final templates = await Hive.openBox<Template>(Template.boxName); final templates = await Hive.openBox<Template>(Template.boxName);
final exchangeTemplates = final exchangeTemplates =
await Hive.openBox<ExchangeTemplate>(ExchangeTemplate.boxName); await Hive.openBox<ExchangeTemplate>(ExchangeTemplate.boxName);
final unspentCoinsInfoSource = Box<UnspentCoinsInfo> unspentCoinsInfoSource;
await Hive.openBox<UnspentCoinsInfo>(UnspentCoinsInfo.boxName);
if (!isMoneroOnly) {
unspentCoinsInfoSource = await Hive.openBox<UnspentCoinsInfo>(UnspentCoinsInfo.boxName);
}
await initialSetup( await initialSetup(
sharedPreferences: await SharedPreferences.getInstance(), sharedPreferences: await SharedPreferences.getInstance(),

View file

@ -314,7 +314,7 @@ class ExchangePage extends BasePage {
], ],
), ),
), ),
/*if (exchangeViewModel.isReceiveAmountEditable) Padding( Padding(
padding: EdgeInsets.only(top: 12, left: 24), padding: EdgeInsets.only(top: 12, left: 24),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
@ -328,7 +328,7 @@ class ExchangePage extends BasePage {
), ),
], ],
) )
),*/ ),
Padding( Padding(
padding: EdgeInsets.only(top: 30, left: 24, bottom: 24), padding: EdgeInsets.only(top: 30, left: 24, bottom: 24),
child: Row( child: Row(