first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
|
||||
import '../../services/finamp_settings_helper.dart';
|
||||
import '../../models/finamp_models.dart';
|
||||
|
||||
class SwipeInsertQueueNextSelector extends StatelessWidget {
|
||||
const SwipeInsertQueueNextSelector({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ValueListenableBuilder<Box<FinampSettings>>(
|
||||
valueListenable: FinampSettingsHelper.finampSettingsListener,
|
||||
builder: (_, box, __) {
|
||||
return SwitchListTile.adaptive(
|
||||
title: Text(AppLocalizations.of(context)!.swipeInsertQueueNext),
|
||||
subtitle:
|
||||
Text(AppLocalizations.of(context)!.swipeInsertQueueNextSubtitle),
|
||||
value: FinampSettingsHelper.finampSettings.swipeInsertQueueNext,
|
||||
onChanged: (value) =>
|
||||
FinampSettingsHelper.setSwipeInsertQueueNext(value),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user