This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"home_page": "Home Page", | |
"personal_information": "Personal Information", | |
"name": "Name", | |
"name_hint": "Enter your name", | |
"email": "Email", | |
"email_hint": "Enter your email", | |
"date_of_birth": "Date of Birth", | |
"required_field": "Required Field", | |
"submit_info": "Submit Info", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"home_page": "صفحه اصلی", | |
"personal_information": "معلومات شخصی", | |
"name": "اسم", | |
"name_hint": "اسم خود را وارد نمایید", | |
"email": "آدرس الکترونیکی", | |
"email_hint": "آدرس الکترونیکی خود را وارد نمایید", | |
"date_of_birth": "تاریخ تولد", | |
"required_field": "این زمینه ضروری می باشد", | |
"submit_info": "ثبت معلومات", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_localization_master/classes/language.dart'; | |
import 'package:flutter_localization_master/localization/language_constants.dart'; | |
import 'package:flutter_localization_master/main.dart'; | |
import 'package:flutter_localization_master/router/route_constants.dart'; | |
class HomePage extends StatefulWidget { | |
HomePage({Key key}) : super(key: key); | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_localization_master/localization/language_constants.dart'; | |
class AboutPage extends StatefulWidget { | |
AboutPage({Key key}) : super(key: key); | |
@override | |
_AboutPageState createState() => _AboutPageState(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_localization_master/localization/demo_localization.dart'; | |
import 'package:flutter_localization_master/router/custom_router.dart'; | |
import 'package:flutter_localization_master/router/route_constants.dart'; | |
import 'package:flutter_localizations/flutter_localizations.dart'; | |
import 'localization/language_constants.dart'; | |
void main() => runApp(MyApp()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"home_page": "الصفحة الرئيسية", | |
"personal_information": "معلومات شخصية", | |
"name": "اسم", | |
"name_hint": "أدخل أسمك", | |
"email": "البريد الإلكتروني", | |
"email_hint": "أدخل بريدك الالكتروني", | |
"date_of_birth": "تاريخ الولادة", | |
"required_field": "يتطلب حقلا", | |
"submit_info": "إرسال معلومات", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"home_page": "मुख पृष्ठ", | |
"personal_information": "व्यक्तिगत जानकारी", | |
"name": "नाम", | |
"name_hint": "अपना नाम दर्ज करें", | |
"email": "ईमेल", | |
"email_hint": "अपना ईमेल दर्ज करें", | |
"date_of_birth": "जन्म की तारीख", | |
"required_field": "आवश्यक क्षेत्र", | |
"submit_info": "जानकारी जमा करें", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
class DemoLocalization { | |
DemoLocalization(this.locale); | |
final Locale locale; | |
static DemoLocalization of(BuildContext context) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_localization_master/classes/language.dart'; | |
import 'package:flutter_localization_master/localization/language_constants.dart'; | |
import 'package:flutter_localization_master/main.dart'; | |
class SettingsPage extends StatefulWidget { | |
SettingsPage({Key key}) : super(key: key); | |
@override | |
_SettingsPageState createState() => _SettingsPageState(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_localization_master/localization/demo_localization.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
const String LAGUAGE_CODE = 'languageCode'; | |
//languages code | |
const String ENGLISH = 'en'; | |
const String FARSI = 'fa'; | |
const String ARABIC = 'ar'; |
OlderNewer