Minor UI tweaks
This commit is contained in:
parent
dcb64c96cf
commit
1300007ac1
|
@ -58,22 +58,28 @@ class _AddParticipantPage extends State<AddParticipantPage> {
|
|||
),
|
||||
body: Container(
|
||||
color: enteColorScheme.backgroundElevated,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const SizedBox(height: 12),
|
||||
Text(
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: Text(
|
||||
"Add a new email",
|
||||
style: enteTextTheme.body,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
_getEmailField(),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: _getEmailField(),
|
||||
),
|
||||
(hideListOfEmails || isKeypadOpen)
|
||||
? const Expanded(child: SizedBox())
|
||||
: Expanded(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: Column(
|
||||
children: [
|
||||
const SizedBox(height: 24),
|
||||
|
@ -137,12 +143,14 @@ class _AddParticipantPage extends State<AddParticipantPage> {
|
|||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
const DividerWidget(
|
||||
dividerType: DividerType.solid,
|
||||
),
|
||||
SafeArea(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(top: 8, bottom: 8),
|
||||
padding: const EdgeInsets.only(
|
||||
top: 8, bottom: 8, left: 16, right: 16),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
|
@ -195,9 +203,8 @@ class _AddParticipantPage extends State<AddParticipantPage> {
|
|||
showToast(context, "yet to implement");
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
text: selectAsViewer
|
||||
? "Add viewer"
|
||||
: "Add collaborator",
|
||||
text:
|
||||
selectAsViewer ? "Add viewer" : "Add collaborator",
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
|
@ -208,7 +215,6 @@ class _AddParticipantPage extends State<AddParticipantPage> {
|
|||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue