fix(driver): ضمّ حزم get و get_storage داخل المستودع
apps/driver كان يشير إلى `../../Intaleq/packages/get` خارج المستودع — وهو مسار يُحل من apps/driver إلى Tripz/Intaleq/ غير الموجود، فلا يمرّ `flutter pub get` إطلاقاً. (فجوة docs/30 §2.6.) ضُمّت نسخة **انطلق** تحديداً (App/Intaleq/packages) لا فرع apps/rider: الفرعان يختلفان فعلاً — snackbar_controller.dart و get_queue.dart وغيرهما مختلفة بين النسختين، فاستعارة فرع rider كانت ستغيّر سلوك السائق صامتة. apps/driver/packages/get (3.5 م.ب، 202 ملف dart مع get_storage) apps/driver/packages/get_storage pubspec: ../../Intaleq/packages/* → ./packages/* (3 مواضع، منها dependency_overrides سطر 142) المستودع صار مكتفياً ذاتياً: لا تبعية مسار خارج شجرته. لم يُمسّ App/Intaleq. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
4d8414c96b
commit
ecbe245b77
@@ -0,0 +1,12 @@
|
||||
// ignore_for_file: file_names
|
||||
|
||||
const Map<String, String> en_US = {
|
||||
'covid': 'Corona Virus',
|
||||
'total_confirmed': 'Total Confirmed',
|
||||
'total_deaths': 'Total Deaths',
|
||||
'fetch_country': 'Fetch by country',
|
||||
'corona_by_country': 'Corona by country',
|
||||
'total_infecteds': 'Total Infecteds',
|
||||
'details': 'Details',
|
||||
'total_recovered': 'Total Recovered',
|
||||
};
|
||||
@@ -0,0 +1,12 @@
|
||||
// ignore_for_file: file_names
|
||||
|
||||
const Map<String, String> pt_BR = {
|
||||
'covid': 'Corona Vírus',
|
||||
'total_confirmed': 'Total confirmado',
|
||||
'total_deaths': 'Total de mortes',
|
||||
'fetch_country': 'Listar por país',
|
||||
'corona_by_country': 'Corona por país',
|
||||
'total_infecteds': 'Total de infectados',
|
||||
'details': 'Detalhes',
|
||||
'total_recovered': 'Total de recuperados'
|
||||
};
|
||||
@@ -0,0 +1,15 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import 'en_us.dart';
|
||||
import 'pt_br.dart';
|
||||
|
||||
class TranslationService extends Translations {
|
||||
static Locale? get locale => Get.deviceLocale;
|
||||
static final fallbackLocale = Locale('en', 'US');
|
||||
@override
|
||||
Map<String, Map<String, String>> get keys => {
|
||||
'en_US': en_US,
|
||||
'pt_BR': pt_BR,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user