Skip to content

Commit

Permalink
Removed splash web-background workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bungeefan committed Nov 28, 2022
1 parent 02a5e99 commit 1b425c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
flutter_localizations:
sdk: flutter

flutter_native_splash: ^2.2.15
flutter_native_splash: ^2.2.16

# iOS Dep
cupertino_icons: ^1.0.2
Expand Down
10 changes: 0 additions & 10 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@
<link rel="stylesheet" type="text/css" href="splash/style.css">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">

<style>
/*
Fixes splash background
https://github.com/jonbhanson/flutter_native_splash/issues/324
*/
html, body {
height:100%;
}

</style>
<script src="splash/splash.js"></script>

<script src="https://cdn.jsdelivr.net/npm/jsqr@1.4.0/dist/jsQR.min.js"></script>
Expand Down
10 changes: 7 additions & 3 deletions web/splash/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
html {
height: 100%
}

body {
margin:0;
height:100%;
background-color: #000000;
margin: 0;
min-height: 100%;
background-color: #ffffff;
background-image: url("img/light-background.png");
background-size: 100% 100%;
}
Expand Down

0 comments on commit 1b425c3

Please sign in to comment.