I have this code below, I want to hide the bar app, is it possible? I've tried straight through the Android Theme but I did not get Success. :(
@override
Widget build(BuildContext context) {
return WebviewScaffold(
appBar: AppBar(
title: TextField(
autofocus: false,
controller: controller,
textInputAction: TextInputAction.go,
onSubmitted: (url) => launchUrl(),
style: TextStyle(color: Colors.white),
decoration: InputDecoration(
border: InputBorder.none,
hintText: "Digite a URL",
hintStyle: TextStyle(color: Colors.white),
),
),
actions: <Widget>[
IconButton(
icon: Icon(Icons.navigate_next),
onPressed: () => launchUrl(),
)
],
),
To hide the appBar simply set the appBar property as null in any screen. This change will be reflected in IOS as well as Android. :)
Widget build(BuildContext context) {
return WebviewScaffold(
url: "https://flutter.dev/", // Your url
appBar: null // No action bar will build
);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With