mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-28 23:25:52 +01:00
Rows that scroll sideways drop the desktop scrollbar, except the library search shelves, which have no paging arrows. Settings, the sidebar and the lyrics and Up Next panels scroll without a bar.
17 lines
522 B
Dart
17 lines
522 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
/// Hides the desktop scrollbars below it, for panes that read as chrome
|
|
/// (settings, side panels, the sidebar) rather than long lists. Scrolling
|
|
/// and its physics are unchanged.
|
|
class NoScrollbars extends StatelessWidget {
|
|
const NoScrollbars({super.key, required this.child});
|
|
|
|
final Widget child;
|
|
|
|
@override
|
|
Widget build(BuildContext context) => ScrollConfiguration(
|
|
behavior: ScrollConfiguration.of(context).copyWith(scrollbars: false),
|
|
child: child,
|
|
);
|
|
}
|