Skip to content
Snippets Groups Projects
Commit 10eeeba6 authored by poka's avatar poka
Browse files

UI: Improve align of endpoints selection elements

parent a7d2e9a5
No related branches found
No related tags found
No related merge requests found
Pipeline #16575 waiting for manual action
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment