I use CustomScrollview->SliverAppBar-> SliverFillRemaining->WebView. The problem arises that the webpage is not scrollable. When I remove SliverAppBar it works correctly. but when used SliverAppBar it's not working properly. how should I fix this problem?
CustomScrollView(
shrinkWrap: true,
slivers: [
SliverAppBar(
floating: true,
//for status bar design
backwardsCompatibility: false,
backgroundColor: Colors.white,
elevation: 0,
systemOverlayStyle: SystemUiOverlayStyle(
statusBarColor: Colors.white,
// statusBarBrightness: Brightness.light,
statusBarIconBrightness: Brightness.dark,
),
// systemOverlayStyle: statusBarDesign,
actions: [
NavigationControls(_controller.future),
],
//pinned: true,
),
SliverFillRemaining(
child: Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child: WebView(
gestureNavigationEnabled: true,
initialUrl: 'https://rosbd.org/',
javascriptMode: JavascriptMode.unrestricted,
onWebViewCreated:
(WebViewController webViewController) {
_controller.complete(webViewController);
},
onPageStarted: (start) {
setState(() {
_checkInternetConnetion();
});
},
onPageFinished: (finish) {
setState(() {
_checkInternetConnetion();
});
},
),
),
)
]);