TF-1960 Fix padding, alignment widget in IdentityCreatorView
(cherry picked from commit bde38aff78d77056a7b07628acb812e74b43abdb)
This commit is contained in:
@@ -387,22 +387,16 @@ class IdentityCreatorView extends GetWidget<IdentityCreatorController> {
|
|||||||
_buildCheckboxIdentityDefault(context),
|
_buildCheckboxIdentityDefault(context),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.only(
|
padding: const EdgeInsetsDirectional.only(
|
||||||
top: 24.0,
|
top: 24.0,
|
||||||
bottom: 40.0,
|
bottom: 40.0,
|
||||||
left: AppUtils.isDirectionRTL(context) ? 0 : 12,
|
start: 12,
|
||||||
right: AppUtils.isDirectionRTL(context) ? 12 : 0
|
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
_buildCancelButton(context, width: 156),
|
||||||
padding: EdgeInsets.only(
|
const SizedBox(width: 12),
|
||||||
right: AppUtils.isDirectionRTL(context) ? 0 : 12,
|
|
||||||
left: AppUtils.isDirectionRTL(context) ? 12 : 0
|
|
||||||
),
|
|
||||||
child: _buildCancelButton(context, width: 156),
|
|
||||||
),
|
|
||||||
_buildSaveButton(context, width: 156),
|
_buildSaveButton(context, width: 156),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
+1
-1
@@ -65,7 +65,7 @@ class IdentityDropListFieldBuilder extends StatelessWidget {
|
|||||||
onChanged: onSelectItemDropList,
|
onChanged: onSelectItemDropList,
|
||||||
buttonStyleData: ButtonStyleData(
|
buttonStyleData: ButtonStyleData(
|
||||||
height: 44,
|
height: 44,
|
||||||
padding: const EdgeInsets.only(right: 8),
|
padding: const EdgeInsetsDirectional.only(end: 8),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(10),
|
borderRadius: BorderRadius.circular(10),
|
||||||
border: Border.all(color: AppColor.colorInputBorderCreateMailbox, width: 0.5),
|
border: Border.all(color: AppColor.colorInputBorderCreateMailbox, width: 0.5),
|
||||||
|
|||||||
+3
-1
@@ -53,7 +53,9 @@ class IdentityInputFieldBuilder extends StatelessWidget {
|
|||||||
textStyle: const TextStyle(color: Colors.black, fontSize: 16),
|
textStyle: const TextStyle(color: Colors.black, fontSize: 16),
|
||||||
keyboardType: inputType ?? TextInputType.text,
|
keyboardType: inputType ?? TextInputType.text,
|
||||||
decoration: (IdentityInputDecorationBuilder()
|
decoration: (IdentityInputDecorationBuilder()
|
||||||
..setContentPadding(const EdgeInsets.symmetric(vertical: PlatformInfo.isWeb ? 16 : 12,horizontal: 12))
|
..setContentPadding(const EdgeInsets.symmetric(
|
||||||
|
vertical: PlatformInfo.isWeb ? 16 : 12,
|
||||||
|
horizontal: 12))
|
||||||
..setErrorText(_error))
|
..setErrorText(_error))
|
||||||
.build(),
|
.build(),
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-5
@@ -3,7 +3,6 @@ import 'package:core/presentation/resources/image_paths.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||||
import 'package:tmail_ui_user/main/utils/app_utils.dart';
|
|
||||||
|
|
||||||
typedef OnCheckboxChanged = void Function();
|
typedef OnCheckboxChanged = void Function();
|
||||||
|
|
||||||
@@ -44,10 +43,7 @@ class SetDefaultIdentityCheckboxBuilder extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.only(
|
padding: const EdgeInsetsDirectional.only(start: 8),
|
||||||
left: AppUtils.isDirectionRTL(context) ? 0 : 8,
|
|
||||||
right: AppUtils.isDirectionRTL(context) ? 8 : 0,
|
|
||||||
),
|
|
||||||
child: Text(
|
child: Text(
|
||||||
AppLocalizations.of(context).setDefaultIdentity,
|
AppLocalizations.of(context).setDefaultIdentity,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
|
|||||||
Reference in New Issue
Block a user