Taha Tesser
41b1aea281
Fix Scrollbar.thickness property is ignored when the Scrollbar is hovered (#144012)
fixes [`Scrollbar.thickness` property is ignored when the `Scrollbar` is hovered](https://github.com/flutter/flutter/issues/143881)
### Code sample
<details>
<summary>expand to view the code sample</summary>
```dart
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
final ScrollController scrollController = ScrollController();
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Material(
child: ScrollConfiguration(
behavior: const NoScrollbarBehavior(),
child: ScrollbarTheme(
data: ScrollbarThemeData(
thickness: MaterialStateProperty.all(25.0),
showTrackOnHover: true,
),
child: Scrollbar(
thickness: 50.0,
thumbVisibility: true,
radius: const Radius.circular(3.0),
controller: scrollController,
child: SingleChildScrollView(
controller: scrollController,
child: const SizedBox(width: 4000.0, height: 4000.0),
),
),
),
),
),
);
}
}
class NoScrollbarBehavior extends ScrollBehavior {
const NoScrollbarBehavior();
@override
Widget buildScrollbar(
BuildContext context, Widget child, ScrollableDetails details) =>
child;
}
```
</details>
### Preview
| Before | After |
| --------------- | --------------- |
| <img src="https://github.com/flutter/flutter/assets/48603081/3537d60d-a5b2-488d-aa99-4c36c3721657" /> | <img src="https://github.com/flutter/flutter/assets/48603081/cfd02095-a327-4b16-8ece-0d1c9e6813ce" /> |
2024-02-26 10:34:27 +00:00
..
2023-12-20 22:05:29 +00:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2024-01-31 16:13:17 +00:00
2024-01-31 16:13:17 +00:00
2023-12-15 14:13:31 -08:00
2024-01-31 16:13:17 +00:00
2023-12-15 14:13:31 -08:00
2024-02-23 19:02:22 +00:00
2024-01-24 16:49:18 +00:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2024-01-23 19:24:54 +00:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2024-01-24 16:13:26 +00:00
2023-12-15 14:13:31 -08:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2024-01-19 18:29:07 +00:00
2023-12-15 14:13:31 -08:00
2024-02-01 21:11:26 +00:00
2023-12-15 14:13:31 -08:00
2024-02-21 08:59:24 +00:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2024-02-12 10:07:51 -08:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2024-02-13 20:30:53 +00:00
2024-02-13 20:30:53 +00:00
2024-02-22 14:51:28 -08:00
2024-01-29 21:21:34 -08:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2024-02-13 00:12:02 +00:00
2024-02-13 00:12:02 +00:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2024-01-16 10:08:27 +00:00
2023-12-15 14:13:31 -08:00
2024-02-22 14:51:28 -08:00
2024-02-07 13:57:21 +00:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2024-02-07 13:57:21 +00:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2024-01-22 10:01:05 +00:00
2024-01-22 10:01:05 +00:00
2024-01-22 11:13:31 +00:00
2024-01-22 11:13:31 +00:00
2023-12-15 14:13:31 -08:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2024-01-24 16:13:26 +00:00
2023-12-15 14:13:31 -08:00
2024-01-24 16:13:26 +00:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2024-02-07 02:44:21 +00:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2024-02-13 20:30:53 +00:00
2024-02-14 22:43:18 +00:00
2024-02-17 07:34:35 +00:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2024-02-21 08:59:24 +00:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2023-09-21 10:06:21 -07:00
2023-12-15 14:13:31 -08:00
2024-02-22 14:51:28 -08:00
2023-12-20 22:05:29 +00:00
2023-12-15 14:13:31 -08:00
2023-12-20 22:05:29 +00:00
2023-12-15 14:13:31 -08:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2024-01-20 00:27:18 +00:00
2023-12-15 14:13:31 -08:00
2024-02-14 20:29:17 +00:00
2024-02-22 14:51:28 -08:00
2024-01-09 18:19:07 +00:00
2024-02-12 10:07:51 -08:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2024-01-22 18:21:31 +00:00
2023-12-15 14:13:31 -08:00
2024-01-05 21:28:07 +00:00
2023-12-15 14:13:31 -08:00
2024-02-07 10:26:27 +00:00
2023-12-15 14:13:31 -08:00
2024-02-13 22:46:56 +00:00
2024-02-26 10:34:27 +00:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2024-02-14 22:43:18 +00:00
2024-01-17 22:49:04 +00:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2024-01-09 09:49:13 +00:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2024-02-22 22:45:29 +00:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2024-01-12 16:35:08 +00:00
2024-02-12 10:07:51 -08:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2024-02-23 19:02:22 +00:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2024-02-23 19:20:14 +00:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2024-02-22 14:51:28 -08:00
2023-12-15 14:13:31 -08:00
2024-01-22 10:01:05 +00:00
2023-12-15 14:13:31 -08:00
2024-02-23 19:02:22 +00:00
2024-02-23 19:02:22 +00:00
2023-12-15 14:13:31 -08:00
2023-12-15 14:13:31 -08:00
2024-01-24 16:13:26 +00:00
2024-02-21 00:34:11 +00:00
2023-12-15 14:13:31 -08:00