Skip to content

Instantly share code, notes, and snippets.

@sbis04
Last active September 9, 2019 05:41
Show Gist options
  • Save sbis04/b01fd3b04d10f4d905846c9eedcb7926 to your computer and use it in GitHub Desktop.
Save sbis04/b01fd3b04d10f4d905846c9eedcb7926 to your computer and use it in GitHub Desktop.
flutter_demo360
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