Bug fixes
This commit is contained in:
parent
627b38371b
commit
a00c7abc03
|
|
@ -2,6 +2,9 @@
|
|||
<resources>
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
|
||||
<!-- https://github.com/flutter/flutter/issues/16810#issuecomment-416962229 -->
|
||||
<item name="android:defaultFocusHighlightEnabled">false</item>
|
||||
</style>
|
||||
<color name="white">#FFFFFF</color>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -129,6 +129,14 @@ List<CompanyEntity> companiesSelector(AppState state) {
|
|||
.toList();
|
||||
}
|
||||
|
||||
String localeSelector(AppState state) =>
|
||||
state.staticState?.languageMap[state.selectedCompany?.languageId]?.locale ??
|
||||
'en';
|
||||
String localeSelector(AppState state) {
|
||||
final locale = state.staticState?.languageMap[state.selectedCompany?.languageId]?.locale ??
|
||||
'en';
|
||||
|
||||
// https://github.com/flutter/flutter/issues/32090
|
||||
if (locale == 'mk_MK') {
|
||||
return 'en';
|
||||
} else {
|
||||
return locale;
|
||||
}
|
||||
}
|
||||
|
|
@ -17,7 +17,7 @@ class _LiveTextState extends State<LiveText> {
|
|||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_timer = Timer.periodic(Duration(seconds: 1),
|
||||
_timer = Timer.periodic(Duration(milliseconds: 100),
|
||||
(Timer timer) => mounted ? setState(() => false) : false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue