mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-06 01:15:44 -06:00
24 lines
841 B
Dart
24 lines
841 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:paperless_mobile/features/settings/view/widgets/global_settings_builder.dart';
|
|
import 'package:paperless_mobile/generated/l10n/app_localizations.dart';
|
|
|
|
class DisableAnimationsSetting extends StatelessWidget {
|
|
const DisableAnimationsSetting({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GlobalSettingsBuilder(builder: (context, settings) {
|
|
return SwitchListTile(
|
|
value: settings.disableAnimations,
|
|
title: Text('Disable animations'),
|
|
subtitle: Text('Disables page transitions and most animations.'
|
|
' Temporary workaround until system accessibility settings can be used.'),
|
|
onChanged: (val) async {
|
|
settings.disableAnimations = val;
|
|
settings.save();
|
|
},
|
|
);
|
|
});
|
|
}
|
|
}
|