BASE: Initialize Localization.
This commit is contained in:
@@ -3,6 +3,7 @@ import 'dart:developer';
|
||||
import 'package:customer/themes/app_them_data.dart';
|
||||
import 'package:customer/themes/round_button_fill.dart';
|
||||
import 'package:customer/widget/osm_map/map_controller.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_map/flutter_map.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
@@ -27,7 +28,7 @@ class MapPickerPage extends StatelessWidget {
|
||||
// centerTitle: false,
|
||||
// titleSpacing: 0,
|
||||
// title: Text(
|
||||
// "PickUp Location".tr,
|
||||
// "PickUp Location".tr(),
|
||||
// textAlign: TextAlign.start,
|
||||
// style: TextStyle(
|
||||
// fontFamily: AppThemeData.medium,
|
||||
@@ -97,7 +98,7 @@ class MapPickerPage extends StatelessWidget {
|
||||
isDark ? AppThemeData.grey900 : AppThemeData.grey900,
|
||||
),
|
||||
decoration: InputDecoration(
|
||||
hintText: 'Search location...'.tr,
|
||||
hintText: 'Search location...'.tr(),
|
||||
hintStyle: TextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -156,8 +157,8 @@ class MapPickerPage extends StatelessWidget {
|
||||
children: [
|
||||
Text(
|
||||
controller.pickedPlace.value != null
|
||||
? "Picked Location:".tr
|
||||
: "No Location Picked".tr,
|
||||
? "Picked Location:".tr()
|
||||
: "No Location Picked".tr(),
|
||||
style: AppThemeData.boldTextStyle(
|
||||
color: AppThemeData.grey900,
|
||||
fontSize: 17.sp,
|
||||
@@ -177,7 +178,7 @@ class MapPickerPage extends StatelessWidget {
|
||||
children: [
|
||||
Expanded(
|
||||
child: RoundedButtonFill(
|
||||
title: "Confirm Location".tr,
|
||||
title: "Confirm Location".tr(),
|
||||
color: AppThemeData.mainColor,
|
||||
textColor: AppThemeData.grey50,
|
||||
borderRadius: 12,
|
||||
|
||||
Reference in New Issue
Block a user