mirror of
https://github.com/cogwheel0/conduit.git
synced 2026-08-27 19:41:48 +00:00
Some checks failed
L10n / l10n (push) Has been cancelled
Squash-merge the reviewed native UI, sidebar, onboarding, direct connection, Hermes, workspace, theming, haptics, and consistency updates.
10 lines
353 B
Dart
10 lines
353 B
Dart
import 'package:material_ui/material_ui.dart';
|
|
|
|
ScrollPhysics platformAlwaysScrollablePhysics(BuildContext context) {
|
|
return switch (Theme.of(context).platform) {
|
|
TargetPlatform.iOS || TargetPlatform.macOS => const BouncingScrollPhysics(
|
|
parent: AlwaysScrollableScrollPhysics(),
|
|
),
|
|
_ => const AlwaysScrollableScrollPhysics(),
|
|
};
|
|
}
|