Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
kawal7415
2020-09-24 20:15:55 +0530
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2e6caf74348299bc201473de80be02b8952b6a78
2e6caf74
1 parent
db802098
Fix #643
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
packages/get_navigation/lib/src/root/root_widget.dart
packages/get_navigation/lib/src/root/root_widget.dart
View file @
2e6caf7
...
...
@@ -20,6 +20,7 @@ class GetMaterialApp extends StatelessWidget {
this
.
builder
,
this
.
translationsKeys
,
this
.
translations
,
this
.
textDirection
,
this
.
title
=
''
,
this
.
onGenerateTitle
,
this
.
color
,
...
...
@@ -84,6 +85,7 @@ class GetMaterialApp extends StatelessWidget {
final
Color
color
;
final
Map
<
String
,
Map
<
String
,
String
>>
translationsKeys
;
final
Translations
translations
;
final
TextDirection
textDirection
;
final
Locale
locale
;
final
Locale
fallbackLocale
;
final
Iterable
<
LocalizationsDelegate
<
dynamic
>>
localizationsDelegates
;
...
...
@@ -231,9 +233,10 @@ class GetMaterialApp extends StatelessWidget {
..
addAll
(
navigatorObservers
)),
builder:
(
context
,
child
)
{
return
Directionality
(
textDirection:
rtlLanguages
.
contains
(
Get
.
locale
?.
languageCode
)
?
TextDirection
.
rtl
:
TextDirection
.
ltr
,
textDirection:
textDirection
??
(
rtlLanguages
.
contains
(
Get
.
locale
?.
languageCode
)
?
TextDirection
.
rtl
:
TextDirection
.
ltr
),
child:
builder
==
null
?
child
:
builder
(
context
,
child
),
);
},
...
...
Please
register
or
login
to post a comment