UI: Improve align of endpoints selection elements
This commit is contained in:
parent
a7d2e9a5d2
commit
10eeeba601
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue