BASE: Update Icons & Name Of The App.
This commit is contained in:
@@ -2,7 +2,7 @@ import 'package:customer/controllers/theme_controller.dart';
|
||||
import 'package:customer/themes/responsive.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
import 'app_them_data.dart';
|
||||
|
||||
class RoundedButtonBorder extends StatelessWidget {
|
||||
@@ -49,26 +49,51 @@ class RoundedButtonBorder extends StatelessWidget {
|
||||
height: Responsive.height(height ?? 6, context),
|
||||
decoration: ShapeDecoration(
|
||||
color: color ?? Colors.transparent,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(radius ?? 50), side: BorderSide(color: borderColor ?? AppThemeData.danger300)),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(radius ?? 50),
|
||||
side: BorderSide(color: borderColor ?? AppThemeData.danger300),
|
||||
),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
if (isRight == false) Padding(padding: const EdgeInsets.only(right: 10, left: 0), child: icon),
|
||||
if (isRight == false)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(right: 10, left: 0),
|
||||
child: icon,
|
||||
),
|
||||
isCenter == true
|
||||
? Text(title.tr(), textAlign: TextAlign.center, style: AppThemeData.semiBoldTextStyle(fontSize: fontSizes ?? 14, color: textColor ?? AppThemeData.grey800))
|
||||
? Text(
|
||||
title.tr(),
|
||||
textAlign: TextAlign.center,
|
||||
style: AppThemeData.semiBoldTextStyle(
|
||||
fontSize: fontSizes ?? 14,
|
||||
color: textColor ?? AppThemeData.grey800,
|
||||
),
|
||||
)
|
||||
: Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(right: isRight == null ? 0 : 30),
|
||||
child: Text(
|
||||
title.tr(),
|
||||
textAlign: TextAlign.center,
|
||||
style: AppThemeData.semiBoldTextStyle(fontSize: fontSizes ?? 14, color: textColor ?? (isDark ? AppThemeData.grey100 : AppThemeData.grey700)),
|
||||
style: AppThemeData.semiBoldTextStyle(
|
||||
fontSize: fontSizes ?? 14,
|
||||
color:
|
||||
textColor ??
|
||||
(isDark
|
||||
? AppThemeData.grey100
|
||||
: AppThemeData.grey700),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
if (isRight == true) Padding(padding: const EdgeInsets.only(left: 10, right: 20), child: icon),
|
||||
if (isRight == true)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 10, right: 20),
|
||||
child: icon,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user