BASE: Initialize Localization.

This commit is contained in:
2025-12-03 18:21:19 +05:00
parent cf58d069ab
commit b04050384d
141 changed files with 1577 additions and 1419 deletions

View File

@@ -1,3 +1,4 @@
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:geolocator/geolocator.dart';
import 'package:get/get.dart';
@@ -23,7 +24,7 @@ class PermissionDialog extends StatelessWidget {
Icon(Icons.add_location_alt_rounded, color: Theme.of(context).primaryColor, size: 100),
const SizedBox(height: 20),
Text(
'You denied location permission forever. Please allow location permission from your app settings and receive more accurate delivery.'.tr,
'You denied location permission forever. Please allow location permission from your app settings and receive more accurate delivery.'.tr(),
textAlign: TextAlign.center,
style: TextStyle(fontSize: 18),
),
@@ -36,14 +37,14 @@ class PermissionDialog extends StatelessWidget {
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(30), side: BorderSide(width: 2, color: Theme.of(context).primaryColor)),
minimumSize: const Size(1, 50),
),
child: Text('close'.tr),
child: Text('close'.tr()),
onPressed: () => Navigator.pop(context),
),
),
const SizedBox(width: 10),
Expanded(
child: RoundedButtonFill(
title: "Settings".tr,
title: "Settings".tr(),
color: AppThemeData.grey900,
textColor: AppThemeData.grey50,
onPress: () async {