Minor UI tweaks

This commit is contained in:
Neeraj Gupta 2022-11-22 13:50:05 +05:30
parent dcb64c96cf
commit 1300007ac1
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -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> {
],
),
),
),
);
}