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
Ahmed Fwela
2021-07-22 02:33:26 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e5c1f534a9e3934284bf35af1454d0d4771bd18a
e5c1f534
1 parent
360c76c1
fix #1661
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
18 deletions
lib/get_navigation/src/root/get_material_app.dart
lib/get_navigation/src/root/get_material_app.dart
View file @
e5c1f53
...
...
@@ -207,6 +207,18 @@ class GetMaterialApp extends StatelessWidget {
];
}
Widget
defaultBuilder
(
BuildContext
context
,
Widget
?
child
)
{
return
Directionality
(
textDirection:
textDirection
??
(
rtlLanguages
.
contains
(
Get
.
locale
?.
languageCode
)
?
TextDirection
.
rtl
:
TextDirection
.
ltr
),
child:
builder
==
null
?
(
child
??
SizedBox
.
shrink
())
:
builder
!(
context
,
child
),
);
}
@override
Widget
build
(
BuildContext
context
)
=>
GetBuilder
<
GetMaterialController
>(
init:
Get
.
rootController
,
...
...
@@ -255,15 +267,7 @@ class GetMaterialApp extends StatelessWidget {
backButtonDispatcher:
backButtonDispatcher
,
routeInformationProvider:
routeInformationProvider
,
key:
_
.
unikey
,
builder:
(
context
,
child
)
{
return
Directionality
(
textDirection:
textDirection
??
(
rtlLanguages
.
contains
(
Get
.
locale
?.
languageCode
)
?
TextDirection
.
rtl
:
TextDirection
.
ltr
),
child:
builder
==
null
?
child
!
:
builder
!(
context
,
child
),
);
},
builder:
defaultBuilder
,
title:
title
,
onGenerateTitle:
onGenerateTitle
,
color:
color
,
...
...
@@ -304,15 +308,7 @@ class GetMaterialApp extends StatelessWidget {
GetObserver
(
routingCallback
,
Get
.
routing
)
]
..
addAll
(
navigatorObservers
!)),
builder:
(
context
,
child
)
{
return
Directionality
(
textDirection:
textDirection
??
(
rtlLanguages
.
contains
(
Get
.
locale
?.
languageCode
)
?
TextDirection
.
rtl
:
TextDirection
.
ltr
),
child:
builder
==
null
?
child
!
:
builder
!(
context
,
child
),
);
},
builder:
defaultBuilder
,
title:
title
,
onGenerateTitle:
onGenerateTitle
,
color:
color
,
...
...
Please
register
or
login
to post a comment