UI: Improve align of endpoints selection elements

This commit is contained in:
poka 2022-07-22 22:24:42 +02:00
parent a7d2e9a5d2
commit 10eeeba601
1 changed files with 58 additions and 44 deletions

View File

@ -107,13 +107,20 @@ class SettingsScreen extends StatelessWidget {
return Expanded(
child: Row(children: [
const SizedBox(width: 10),
Text('currencyNode'.tr(args: [currencyName])),
SizedBox(
width: 100,
child: Text(
'currencyNode'.tr(args: [currencyName]),
),
),
const Spacer(),
Icon(_sub.nodeConnected && !_sub.isLoadingEndpoint
? Icons.check
: Icons.close),
const Spacer(),
Consumer<SettingsProvider>(builder: (context, _set, _) {
SizedBox(
width: 265,
child: Consumer<SettingsProvider>(builder: (context, _set, _) {
return DropdownButtonHideUnderline(
child: DropdownButton(
// alignment: AlignmentDirectional.topStart,
@ -134,6 +141,7 @@ class SettingsScreen extends StatelessWidget {
),
);
}),
),
const Spacer(flex: 5),
_sub.isLoadingEndpoint
? CircularProgressIndicator(color: orangeC)
@ -235,11 +243,16 @@ class SettingsScreen extends StatelessWidget {
return Expanded(
child: Row(children: [
const SizedBox(width: 10),
const Text('Indexer : '),
const SizedBox(
width: 100,
child: Text('Indexer : '),
),
const Spacer(),
Icon(indexerEndpoint != '' ? Icons.check : Icons.close),
const Spacer(),
Consumer<SettingsProvider>(builder: (context, _set, _) {
SizedBox(
width: 265,
child: Consumer<SettingsProvider>(builder: (context, _set, _) {
return DropdownButtonHideUnderline(
child: DropdownButton(
// alignment: AlignmentDirectional.topStart,
@ -260,6 +273,7 @@ class SettingsScreen extends StatelessWidget {
),
);
}),
),
const Spacer(flex: 5),
_indexer.isLoadingIndexer
? CircularProgressIndicator(color: orangeC)