Last active
September 9, 2019 05:41
-
-
Save sbis04/b01fd3b04d10f4d905846c9eedcb7926 to your computer and use it in GitHub Desktop.
flutter_demo360
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter_webview_plugin/flutter_webview_plugin.dart'; | |
void main() { | |
SystemChrome.setEnabledSystemUIOverlays([]); | |
runApp(MyApp()); | |
SystemChrome.setSystemUIOverlayStyle( | |
SystemUiOverlayStyle( | |
systemNavigationBarColor: Colors.transparent, // navigation bar color | |
statusBarColor: Colors.transparent, | |
systemNavigationBarIconBrightness: Brightness.dark, // status bar color | |
), | |
); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
routes: { | |
"/": (_) => WebviewScaffold( | |
// TODO: Change this url with your GitHub pages url. | |
url: "https://sbis04.github.io/demo_360", | |
), | |
}, | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment