Deprecate Scrollbar isAlwaysShown -> thumbVisibility (#96957)
This commit is contained in:
@@ -45,7 +45,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
|
||||
radius: const Radius.circular(34.0),
|
||||
radiusWhileDragging: Radius.zero,
|
||||
controller: _controllerOne,
|
||||
isAlwaysShown: true,
|
||||
thumbVisibility: true,
|
||||
child: ListView.builder(
|
||||
controller: _controllerOne,
|
||||
itemCount: 120,
|
||||
|
||||
@@ -39,7 +39,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scrollbar(
|
||||
controller: _controllerOne,
|
||||
isAlwaysShown: true,
|
||||
thumbVisibility: true,
|
||||
child: GridView.builder(
|
||||
controller: _controllerOne,
|
||||
itemCount: 120,
|
||||
|
||||
@@ -41,7 +41,7 @@ class ScrollMetricsDemoState extends State<ScrollMetricsDemo> {
|
||||
return false;
|
||||
},
|
||||
child: Scrollbar(
|
||||
isAlwaysShown: true,
|
||||
thumbVisibility: true,
|
||||
child: SizedBox(
|
||||
height: windowSize,
|
||||
width: double.infinity,
|
||||
|
||||
@@ -50,7 +50,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
|
||||
// unique scroll controller to this scroll view prevents it
|
||||
// from attaching to the PrimaryScrollController.
|
||||
child: Scrollbar(
|
||||
isAlwaysShown: true,
|
||||
thumbVisibility: true,
|
||||
controller: _firstController,
|
||||
child: ListView.builder(
|
||||
controller: _firstController,
|
||||
@@ -68,7 +68,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
|
||||
// ScrollController, so it is using the
|
||||
// PrimaryScrollController.
|
||||
child: Scrollbar(
|
||||
isAlwaysShown: true,
|
||||
thumbVisibility: true,
|
||||
child: ListView.builder(
|
||||
itemCount: 100,
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
|
||||
@@ -39,7 +39,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
|
||||
Widget build(BuildContext context) {
|
||||
return RawScrollbar(
|
||||
controller: _controllerOne,
|
||||
isAlwaysShown: true,
|
||||
thumbVisibility: true,
|
||||
child: GridView.builder(
|
||||
controller: _controllerOne,
|
||||
itemCount: 120,
|
||||
|
||||
@@ -33,7 +33,7 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
side: BorderSide(color: Colors.brown, width: 3.0)),
|
||||
thickness: 15.0,
|
||||
thumbColor: Colors.blue,
|
||||
isAlwaysShown: true,
|
||||
thumbVisibility: true,
|
||||
child: ListView(
|
||||
physics: const BouncingScrollPhysics(),
|
||||
children: List<Text>.generate(
|
||||
|
||||
Reference in New Issue
Block a user