Login fix
This commit is contained in:
parent
65e14a02a1
commit
643f5e81b0
|
@ -182,8 +182,7 @@ const language_ru_ru = {
|
||||||
"Go up": "Подниматься",
|
"Go up": "Подниматься",
|
||||||
"Permission denied": "Доступ запрещен",
|
"Permission denied": "Доступ запрещен",
|
||||||
"Language": "Язык",
|
"Language": "Язык",
|
||||||
"Language changed, please restart Freezer to apply!":
|
"Language changed, please restart Freezer to apply!": "Язык изменен, перезапустите Freezer, чтобы применить!",
|
||||||
"Язык изменен, перезапустите Freezer, чтобы применить!",
|
|
||||||
"Importing...": "Импорт...",
|
"Importing...": "Импорт...",
|
||||||
"Radio": "Радио"
|
"Radio": "Радио"
|
||||||
}
|
}
|
||||||
|
|
|
@ -224,10 +224,15 @@ class LoginBrowser extends StatelessWidget {
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Container(
|
child: Container(
|
||||||
|
|
||||||
child: InAppWebView(
|
child: InAppWebView(
|
||||||
initialUrl: 'https://deezer.com/login',
|
initialUrl: 'https://deezer.com/login',
|
||||||
onLoadStart: (InAppWebViewController controller, String url) async {
|
onLoadStart: (InAppWebViewController controller, String url) async {
|
||||||
|
|
||||||
|
//Offers URL
|
||||||
|
if (url.contains('/offers')) {
|
||||||
|
controller.evaluateJavascript(source: 'window.location.href = "/open_app"');
|
||||||
|
}
|
||||||
|
|
||||||
//Parse arl from url
|
//Parse arl from url
|
||||||
if (url.startsWith('intent://deezer.page.link')) {
|
if (url.startsWith('intent://deezer.page.link')) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
version: 0.4.1+1
|
version: 0.4.2+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.8.0 <3.0.0"
|
sdk: ">=2.8.0 <3.0.0"
|
||||||
|
|
Loading…
Reference in New Issue