in_app_webview 0.0.6 in_app_webview: ^0.0.6 copied to clipboard
Launch your URL inside a webview.
import 'package:flutter/material.dart';
import 'package:in_app_webview/in_app_webview.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: InAppWebView(
"https://www.google.com/",
mDirection: TextDirection.ltr,
appBarBGColor: const Color(0xFF262626),
bottomNavColor: const Color(0xFF262626),
defaultTitle: true,
backIcon: const Icon(Icons.arrow_back_ios, color: Colors.white),
nextIcon: const Icon(Icons.arrow_forward_ios, color: Colors.white),
closeIcon: const Icon(Icons.close, color: Colors.white),
shareIcon: const Icon(Icons.share, color: Colors.white),
refreshIcon: const Icon(Icons.refresh, color: Colors.white),
actionWidget: const [],
actionsIconTheme: const IconThemeData(),
centerTitle: true,
titleTextStyle: const TextStyle(),
toolbarTextStyle: const TextStyle(),
toolbarHeight: 56,
),
);
}
}