mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-06 05:04:25 -04:00
Merge branch 'feature/new-account-visual-improvements' into 'main'
edit_account_form visual improvements See merge request veilid/veilidchat!44
This commit is contained in:
commit
ace128c5b4
1 changed files with 6 additions and 2 deletions
|
@ -192,6 +192,8 @@ class _EditProfileFormState extends State<EditProfileForm> {
|
||||||
onChanged: _onChanged,
|
onChanged: _onChanged,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
spacing: 8,
|
||||||
children: [
|
children: [
|
||||||
Row(children: [
|
Row(children: [
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
|
@ -289,7 +291,7 @@ class _EditProfileFormState extends State<EditProfileForm> {
|
||||||
_currentValueAutoAway = v ?? false;
|
_currentValueAutoAway = v ?? false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
),
|
).paddingLTRB(0, 0, 0, 16),
|
||||||
FormBuilderTextField(
|
FormBuilderTextField(
|
||||||
name: EditProfileForm.formFieldAutoAwayTimeout,
|
name: EditProfileForm.formFieldAutoAwayTimeout,
|
||||||
enabled: _currentValueAutoAway,
|
enabled: _currentValueAutoAway,
|
||||||
|
@ -319,7 +321,9 @@ class _EditProfileFormState extends State<EditProfileForm> {
|
||||||
return ElevatedButton(
|
return ElevatedButton(
|
||||||
onPressed: (networkReady && _isModified) ? _doSubmit : null,
|
onPressed: (networkReady && _isModified) ? _doSubmit : null,
|
||||||
child: Row(mainAxisSize: MainAxisSize.min, children: [
|
child: Row(mainAxisSize: MainAxisSize.min, children: [
|
||||||
const Icon(Icons.check, size: 16).paddingLTRB(0, 0, 4, 0),
|
Icon(networkReady ? Icons.check : Icons.hourglass_empty,
|
||||||
|
size: 16)
|
||||||
|
.paddingLTRB(0, 0, 4, 0),
|
||||||
Text(networkReady
|
Text(networkReady
|
||||||
? widget.submitText
|
? widget.submitText
|
||||||
: widget.submitDisabledText)
|
: widget.submitDisabledText)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue