Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to load a conditional url in WebviewScaffold? #308

Open
mmnasir opened this issue Jan 24, 2019 · 0 comments
Open

How to load a conditional url in WebviewScaffold? #308

mmnasir opened this issue Jan 24, 2019 · 0 comments

Comments

@mmnasir
Copy link

mmnasir commented Jan 24, 2019

Hello,

I want to test the language of the mobile (Android) if it is english then I will load an english link or german then I will load a german link?
in other word:
if Android language == en
Lurl = http:// www .google. com
else Lurl = http:// www . google . de

return WebviewScaffold(
  appBar:AppBar(
    title: Text("Source Web"),
  ),
  url: Lurl,
);

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant