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
Jonatas
2020-09-15 14:42:46 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
baf559ddb2c782575d5cdf021e6be37914165635
baf559dd
1 parent
ccf01782
improve rtl support and prevent throw when locale is null
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
example/lib/main.dart
lib/src/navigation/root/root_widget.dart
example/lib/main.dart
View file @
baf559d
...
...
@@ -16,6 +16,7 @@ class MyApp extends StatelessWidget {
return
GetMaterialApp
(
debugShowCheckedModeBanner:
false
,
enableLog:
true
,
// locale: Locale('PT'),
logWriterCallback:
Logger
.
write
,
initialRoute:
AppPages
.
INITIAL
,
getPages:
AppPages
.
routes
,
...
...
lib/src/navigation/root/root_widget.dart
View file @
baf559d
...
...
@@ -233,10 +233,10 @@ class GetMaterialApp extends StatelessWidget {
..
addAll
(
navigatorObservers
)),
builder:
(
context
,
child
)
{
return
Directionality
(
textDirection:
rtlLanguages
.
contains
(
Get
.
locale
.
languageCode
)
textDirection:
rtlLanguages
.
contains
(
Get
.
locale
?
.
languageCode
)
?
TextDirection
.
rtl
:
TextDirection
.
ltr
,
child:
builder
(
context
,
child
),
child:
builder
==
null
?
child
:
builder
(
context
,
child
),
);
},
title:
title
??
''
,
...
...
Please
register
or
login
to post a comment