BASE: Switch From EasyLocalization To GetX Localization.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import 'package:customer/constant/assets.dart';
|
||||
import 'package:customer/themes/round_button_fill.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:customer/utils/app_router.dart';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
import 'package:get/get.dart';
|
||||
import '../../controllers/on_boarding_controller.dart';
|
||||
import '../../themes/app_them_data.dart';
|
||||
import '../../utils/network_image_widget.dart';
|
||||
@@ -96,7 +97,7 @@ class OnboardingScreen extends StatelessWidget {
|
||||
const SizedBox(height: 20),
|
||||
controller.currentPage.value == pageCount - 1
|
||||
? RoundedButtonFill(
|
||||
title: "Let’s Get Started".tr(),
|
||||
title: "Let’s Get Started".tr,
|
||||
onPress: () {
|
||||
_finish();
|
||||
},
|
||||
@@ -106,7 +107,7 @@ class OnboardingScreen extends StatelessWidget {
|
||||
children: [
|
||||
Expanded(
|
||||
child: RoundedButtonFill(
|
||||
title: "Skip".tr(),
|
||||
title: "Skip".tr,
|
||||
onPress: () => _finish(),
|
||||
color: AppThemeData.grey50,
|
||||
textColor: AppThemeData.grey900,
|
||||
@@ -115,7 +116,7 @@ class OnboardingScreen extends StatelessWidget {
|
||||
const SizedBox(width: 20),
|
||||
Expanded(
|
||||
child: RoundedButtonFill(
|
||||
title: "Next".tr(),
|
||||
title: "Next".tr,
|
||||
onPress: () {
|
||||
controller.nextPage();
|
||||
},
|
||||
@@ -137,6 +138,6 @@ class OnboardingScreen extends StatelessWidget {
|
||||
|
||||
Future<void> _finish() async {
|
||||
await Preferences.setBoolean(Preferences.isFinishOnBoardingKey, true);
|
||||
Get.offAll(() => const LoginScreen());
|
||||
Get.offAll(LoginScreen());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user