Commit a6e3888
Changed files (5)
lib/components/settings/color_picker_list_tile.dart
@@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
/// A [ListTile] that shows a color preview and allows changing it.
class ColorSelectionListTile extends StatelessWidget {
- /// Creates a ListTile with a color preview that opens a color picker on tap.
+ /// Creates a [ListTile] with a color preview that opens a color picker on tap.
const ColorSelectionListTile(
{super.key,
required this.title,
lib/components/settings/dropdown_list_tile.dart
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
-/// A ListTile that allows choosing from a dropdown.
+/// A [ListTile] that allows choosing from a dropdown.
class DropDownListTile<T> extends StatefulWidget {
/// Creates a list tile that allows choosing an item from a dropdown.
///
lib/components/settings/input_list_tile.dart
@@ -24,7 +24,7 @@ class InputListTile extends StatelessWidget {
Widget build(BuildContext context) {
return ListTile(
title: Text(label),
- subtitle: Text(value.toString()),
+ subtitle: Text(value),
trailing: const Icon(Icons.edit),
onTap: () {
showDialog(
lib/components/settings/slider_list_tile.dart
@@ -29,16 +29,15 @@ class SliderListTile extends StatelessWidget {
/// Maximum selectable value on the slider.
final double max;
- /// Amount of steps the slider supports.
+ /// Amount of units after which a selectable step is placed on the slider.
final double stepSize;
/// Current position of the slider thumb.
///
- /// Should be a value that is selectable through by the user.
+ /// Should be a value that is selectable by the user.
final double value;
- /// Called during a drag when the user is selecting a new value for the slider
- /// by dragging.
+ /// Called during a drag when the user is selecting a new value for the slider by dragging.
final void Function(double newValue) onChanged;
@override
lib/components/settings/titled_column.dart
@@ -7,7 +7,7 @@ class TitledColumn extends StatelessWidget {
/// Useful for labeling sub lists.
const TitledColumn({super.key,
required this.title,
- required this.children}); // TODO: test all in file, maybe even split file to folder
+ required this.children});
/// Title to display above the [children].
///