mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
37 lines
991 B
Dart
37 lines
991 B
Dart
part of 'settings_page.dart';
|
|
|
|
class LocalFavoritesSettings extends StatefulWidget {
|
|
const LocalFavoritesSettings({super.key});
|
|
|
|
@override
|
|
State<LocalFavoritesSettings> createState() => _LocalFavoritesSettingsState();
|
|
}
|
|
|
|
class _LocalFavoritesSettingsState extends State<LocalFavoritesSettings> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SmoothCustomScrollView(
|
|
slivers: [
|
|
SliverAppbar(title: Text("Local Favorites".tl)),
|
|
SelectSetting(
|
|
title: "Add new favorite to".tl,
|
|
settingKey: "newFavoriteAddTo",
|
|
optionTranslation: const {
|
|
"start": "Start",
|
|
"end": "End",
|
|
},
|
|
).toSliver(),
|
|
SelectSetting(
|
|
title: "Move favorite after reading".tl,
|
|
settingKey: "moveFavoriteAfterRead",
|
|
optionTranslation: {
|
|
"none": "None",
|
|
"end": "End",
|
|
"start": "Start",
|
|
},
|
|
).toSliver(),
|
|
],
|
|
);
|
|
}
|
|
}
|