BASE: Switch From EasyLocalization To GetX Localization.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import 'package:customer/themes/responsive.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
import 'package:get/get.dart';
|
||||
import '../controllers/theme_controller.dart';
|
||||
import 'app_them_data.dart';
|
||||
|
||||
@@ -53,7 +53,7 @@ class CustomDialogBox extends StatelessWidget {
|
||||
const SizedBox(height: 20),
|
||||
if (title.isNotEmpty)
|
||||
Text(
|
||||
title.tr(),
|
||||
title.tr,
|
||||
style: AppThemeData.boldTextStyle(
|
||||
fontSize: 20,
|
||||
color: isDark ? AppThemeData.greyDark900 : AppThemeData.grey900,
|
||||
@@ -62,7 +62,7 @@ class CustomDialogBox extends StatelessWidget {
|
||||
const SizedBox(height: 5),
|
||||
if (descriptions.isNotEmpty)
|
||||
Text(
|
||||
descriptions.tr(),
|
||||
descriptions.tr,
|
||||
textAlign: TextAlign.center,
|
||||
style: AppThemeData.regularTextStyle(
|
||||
fontSize: 14,
|
||||
@@ -87,7 +87,7 @@ class CustomDialogBox extends StatelessWidget {
|
||||
),
|
||||
child: Center(
|
||||
child: Text(
|
||||
negativeString.tr(),
|
||||
negativeString.tr,
|
||||
textAlign: TextAlign.center,
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
fontSize: 14,
|
||||
@@ -114,7 +114,7 @@ class CustomDialogBox extends StatelessWidget {
|
||||
),
|
||||
child: Center(
|
||||
child: Text(
|
||||
'Confirm'.tr(),
|
||||
'Confirm'.tr,
|
||||
textAlign: TextAlign.center,
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
fontSize: 14,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'package:customer/themes/app_them_data.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_easyloading/flutter_easyloading.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
import 'package:get/get.dart';
|
||||
import '../controllers/theme_controller.dart';
|
||||
|
||||
Future<void> configEasyLoading() async {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
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' hide Trans;
|
||||
import 'package:get/get.dart';
|
||||
import 'app_them_data.dart';
|
||||
|
||||
class RoundedButtonBorder extends StatelessWidget {
|
||||
@@ -65,7 +65,7 @@ class RoundedButtonBorder extends StatelessWidget {
|
||||
),
|
||||
isCenter == true
|
||||
? Text(
|
||||
title.tr(),
|
||||
title.tr,
|
||||
textAlign: TextAlign.center,
|
||||
style: AppThemeData.semiBoldTextStyle(
|
||||
fontSize: fontSizes ?? 14,
|
||||
@@ -76,7 +76,7 @@ class RoundedButtonBorder extends StatelessWidget {
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(right: isRight == null ? 0 : 30),
|
||||
child: Text(
|
||||
title.tr(),
|
||||
title.tr,
|
||||
textAlign: TextAlign.center,
|
||||
style: AppThemeData.semiBoldTextStyle(
|
||||
fontSize: fontSizes ?? 14,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'package:customer/themes/responsive.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
import 'package:get/get.dart';
|
||||
import 'app_them_data.dart';
|
||||
|
||||
class RoundedButtonFill extends StatelessWidget {
|
||||
@@ -62,7 +62,7 @@ class RoundedButtonFill extends StatelessWidget {
|
||||
),
|
||||
isCenter == true
|
||||
? Text(
|
||||
title.tr(),
|
||||
title.tr,
|
||||
textAlign: TextAlign.center,
|
||||
style: AppThemeData.semiBoldTextStyle(
|
||||
fontSize: fontSizes ?? 16,
|
||||
@@ -73,7 +73,7 @@ class RoundedButtonFill extends StatelessWidget {
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(right: isRight == null ? 0 : 30),
|
||||
child: Text(
|
||||
title.tr(),
|
||||
title.tr,
|
||||
textAlign: TextAlign.center,
|
||||
style: AppThemeData.semiBoldTextStyle(
|
||||
fontSize: fontSizes ?? 16,
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
import 'package:get/get.dart';
|
||||
import '../controllers/theme_controller.dart';
|
||||
import 'app_them_data.dart';
|
||||
|
||||
@@ -104,7 +103,7 @@ class _TextFieldWidgetState extends State<TextFieldWidget> {
|
||||
children: [
|
||||
if (widget.title != null) ...[
|
||||
Text(
|
||||
widget.title!.tr(),
|
||||
widget.title!.tr,
|
||||
style: AppThemeData.boldTextStyle(
|
||||
fontSize: 14,
|
||||
color: isDark ? AppThemeData.greyDark800 : AppThemeData.grey800,
|
||||
@@ -166,7 +165,7 @@ class _TextFieldWidgetState extends State<TextFieldWidget> {
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
borderSide: BorderSide(color: borderColor),
|
||||
),
|
||||
hintText: widget.hintText.tr(),
|
||||
hintText: widget.hintText.tr,
|
||||
hintStyle: AppThemeData.regularTextStyle(
|
||||
fontSize: 14.sp,
|
||||
color: hintColor,
|
||||
|
||||
Reference in New Issue
Block a user