* consolidate themes * update and tweak styles, add border styling * add borders between video and chat * tweak heights * improve reply threads - taller new design - can now tap parent's reply - fix crash when tapping self * tweak border colors * tweak theme * tweak theme * tweak theme * add accent color picker in settings * overhaul colors and styles * remove print * add divider to chat user modal and revert height * increase deleted message opacity * revert highlight color * tweak color * tweak colors * tweak padding * tweak padding * tweak placeholder color * revert input fill color * use error color
27 lines
587 B
Dart
27 lines
587 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
/// A custom-styled adaptive [SwitchListTile].
|
|
class SettingsListSwitch extends StatelessWidget {
|
|
final String title;
|
|
final Widget? subtitle;
|
|
final bool value;
|
|
final ValueChanged<bool>? onChanged;
|
|
|
|
const SettingsListSwitch({
|
|
super.key,
|
|
required this.title,
|
|
this.subtitle,
|
|
this.onChanged,
|
|
required this.value,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SwitchListTile.adaptive(
|
|
title: Text(title),
|
|
subtitle: subtitle,
|
|
value: value,
|
|
onChanged: onChanged,
|
|
);
|
|
}
|
|
}
|