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