Home > Software design >  Implement keys local language erreur
Implement keys local language erreur

Time:01-10

class MyLocale implements Translations {
  @override
  Map<String,Map<String,String>> get Keys => {
"ar": {},
 "en":{}, };
  };

  @override
  // TODO: implement keys
  Map<String, Map<String, String>> get keys => throw UnimplementedError();
}

this the erreur photo

im trying to fix this erreur to run my application pliz help me

CodePudding user response:

make it like this if you use GetX

import 'package:get/get.dart';

class MyTranslation extends Translations {
@override
Map<String, Map<String, String>> get keys => {
    "ar": {,
      "1": "اختر اللغه",

    },
    "en": {
      "1": "Choose Language",
     }

  };
}
  • Related