BASE: Initialize Localization.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_rating_bar/flutter_rating_bar.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -30,7 +31,7 @@ class RentalReviewScreen extends StatelessWidget {
|
||||
child: Icon(Icons.arrow_back_ios, color: isDark ? Colors.white : Colors.black),
|
||||
),
|
||||
title: Text(
|
||||
controller.ratingModel.value != null ? "Update Review".tr : "Add Review".tr,
|
||||
controller.ratingModel.value != null ? "Update Review".tr() : "Add Review".tr(),
|
||||
style: TextStyle(color: isDark ? Colors.white : Colors.black, fontSize: 16),
|
||||
),
|
||||
),
|
||||
@@ -93,7 +94,7 @@ class RentalReviewScreen extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 16),
|
||||
child: Text(
|
||||
'How is your trip?'.tr,
|
||||
'How is your trip?'.tr(),
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
color: isDark ? Colors.white : Colors.black,
|
||||
@@ -105,7 +106,7 @@ class RentalReviewScreen extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 8),
|
||||
child: Text(
|
||||
'Your feedback will help us improve \n driving experience better'.tr,
|
||||
'Your feedback will help us improve \n driving experience better'.tr(),
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: isDark ? Colors.white : Colors.black.withOpacity(0.60),
|
||||
@@ -118,7 +119,7 @@ class RentalReviewScreen extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 20),
|
||||
child: Text(
|
||||
'Rate for'.tr,
|
||||
'Rate for'.tr(),
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
color: isDark ? Colors.white : Colors.black.withOpacity(0.60),
|
||||
@@ -156,7 +157,7 @@ class RentalReviewScreen extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(20.0),
|
||||
child: TextFieldWidget(
|
||||
hintText: "Type comment....".tr,
|
||||
hintText: "Type comment....".tr(),
|
||||
controller: controller.comment.value,
|
||||
maxLine: 5,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user