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,
|
||||
|
||||
Reference in New Issue
Block a user