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
Jonny Borges
2021-11-29 12:35:45 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
320534f02d87ae650397193dd63eea02887526b6
320534f0
1 parent
5b058b1c
listem locale update and call Get.updateLocale
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
3 deletions
lib/get_navigation/src/root/root_controller.dart
lib/get_state_manager/src/simple/get_controllers.dart
lib/get_navigation/src/root/root_controller.dart
View file @
320534f
import
'package:flutter/material.dart'
;
import
'../../../get.dart'
;
import
'../../../get_state_manager/get_state_manager.dart'
;
import
'../../../get_utils/get_utils.dart'
;
import
'../routes/custom_transition.dart'
;
import
'../routes/observers/route_observer.dart'
;
import
'../routes/transitions_type.dart'
;
class
GetMaterialController
extends
Getx
Controller
{
class
GetMaterialController
extends
Super
Controller
{
bool
testMode
=
false
;
Key
?
unikey
;
ThemeData
?
theme
;
...
...
@@ -43,6 +44,28 @@ class GetMaterialController extends GetxController {
return
key
;
}
@override
void
didChangeLocales
(
List
<
Locale
>?
locales
)
{
Get
.
asap
(()
{
final
locale
=
Get
.
deviceLocale
;
if
(
locale
!=
null
)
{
Get
.
updateLocale
(
locale
);
}
});
}
@override
void
onDetached
()
{}
@override
void
onInactive
()
{}
@override
void
onPaused
()
{}
@override
void
onResumed
()
{}
void
restartApp
()
{
unikey
=
UniqueKey
();
update
();
...
...
lib/get_state_manager/src/simple/get_controllers.dart
View file @
320534f
...
...
@@ -75,14 +75,14 @@ mixin ScrollMixin on GetLifeCycleBase {
abstract
class
RxController
extends
DisposableInterface
{}
abstract
class
SuperController
<
T
>
extends
FullLifeCycleController
with
FullLifeCycle
,
StateMixin
<
T
>
{}
with
FullLifeCycle
Mixin
,
StateMixin
<
T
>
{}
abstract
class
FullLifeCycleController
extends
GetxController
with
// ignore: prefer_mixin
WidgetsBindingObserver
{}
mixin
FullLifeCycle
on
FullLifeCycleController
{
mixin
FullLifeCycle
Mixin
on
FullLifeCycleController
{
@mustCallSuper
@override
void
onInit
()
{
...
...
Please
register
or
login
to post a comment