refactor: Adjust button layouts and text handling for logout and profile save/cancel actions.
This commit is contained in:
@@ -112,6 +112,7 @@ class ProfileActionButtons extends StatelessWidget {
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
flex: 2,
|
||||
child: GestureDetector(
|
||||
onTap: onCancel,
|
||||
child: Container(
|
||||
@@ -125,6 +126,8 @@ class ProfileActionButtons extends StatelessWidget {
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: const Text('Cancel',
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Fractul',
|
||||
fontSize: 14,
|
||||
@@ -136,10 +139,12 @@ class ProfileActionButtons extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
Expanded(
|
||||
flex: 3,
|
||||
child: GestureDetector(
|
||||
onTap: isSaving ? null : onSave,
|
||||
child: Container(
|
||||
height: 31,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8),
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.accentOrange,
|
||||
borderRadius: BorderRadius.circular(7),
|
||||
@@ -152,13 +157,17 @@ class ProfileActionButtons extends StatelessWidget {
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 2, color: AppColors.primaryDark),
|
||||
)
|
||||
: Text(saveLabel,
|
||||
style: const TextStyle(
|
||||
fontFamily: 'Fractul',
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: AppColors.primaryDark,
|
||||
)),
|
||||
: FittedBox(
|
||||
fit: BoxFit.scaleDown,
|
||||
child: Text(saveLabel,
|
||||
maxLines: 1,
|
||||
style: const TextStyle(
|
||||
fontFamily: 'Fractul',
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: AppColors.primaryDark,
|
||||
)),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user