Skip to content

Commit

Permalink
set def as mess; [Bug] add delay for WebView to appear
Browse files Browse the repository at this point in the history
  • Loading branch information
tastelessjolt committed Dec 13, 2018
1 parent 65b492e commit cf65a91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/blocs/ia_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class InstiAppBloc {
final client = InstiAppApi();

// default homepage
String homepageName = "/placeblog";
String homepageName = "/mess";

InstiAppBloc() {
globalClient = IOClient();
Expand Down
3 changes: 3 additions & 0 deletions lib/src/routes/loginpage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class _LoginPageState extends State<LoginPage> {
url = "http://${server.address.host}:${server.port}/";
print("Formed URL: $url");
print("startLoginPageServer.then: Launching Web View");
await Future.delayed(Duration(milliseconds: 300));
flutterWebviewPlugin.launch(
url,
hidden: false,
Expand All @@ -70,6 +71,8 @@ class _LoginPageState extends State<LoginPage> {
MediaQuery.of(context).size.height,
),
);
// await Future.delayed(Duration(milliseconds: 300));
// flutterWebviewPlugin.show();
});

onUrlChangedSub = flutterWebviewPlugin.onUrlChanged.listen((String url) {
Expand Down

0 comments on commit cf65a91

Please sign in to comment.