scrollview in flutter code example
Example 1: scroll view in flutter
SingleChildScrollView(
child: Text("Scroll View Example")
)
Example 2: make scaffold scrollable flutter
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('News'),
),
body: SingleChildScrollView( // <-- wrap this around
child: Column(
children: <Widget>[
],
),
));
}
Example 3: disable scrollview flutter
physics = NeverScrollableScrollPhysics()