Files
SpotiFLAC-Mobile/lib/widgets/no_scrollbars.dart
T
zarzet 53dfa2c3b8 fix(desktop): hide scrollbars where they add clutter
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.
2026-10-21 12:59:55 +07:00

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,
);
}