fluttercommunity / fluttercommunity/flutter_webview_plugin

WebviewScaffold alway on top

Open
#760 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.5k
Forks
938
PR merge metrics
No merged PRs in 30d

Description

There is no way to display a FloatingActionButton over the webview. The button shows one sec then disapper. Stack seems not working. The WebviewScaffold remains always on top

Scaffold(
body: SafeArea(child: WebviewScaffold(
url: "http://192.168.4.100:8080",
withJavascript: true,
javascriptChannels: [
_alertJavascriptChannel(context),
].toSet(),
),),
floatingActionButton: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Visibility(
visible: _isFlashButtonOn,
child: FloatingActionButton(
onPressed: _toggleFlash,
tooltip: 'Toggle Flash',
backgroundColor: Colors.purple,
child: Icon(Icons.lightbulb_outline),
),),
SizedBox(
width: 10,
),
Visibility(
visible: _isButtonOn,
child: FloatingActionButton(
onPressed: _readBarcode,
tooltip: 'Scan Barcode',
child: Icon(Icons.camera_alt),
),),
],
),
),

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.