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