opt: set repeat ui (#1854)

This commit is contained in:
My-Responsitories
2026-03-01 20:38:03 +08:00
committed by GitHub
parent a375d8525f
commit 348bc8b920
2 changed files with 19 additions and 65 deletions

View File

@@ -24,6 +24,7 @@ class PopupListTile<T> extends StatefulWidget {
required this.value,
required this.itemBuilder,
required this.onSelected,
this.descFontSize = 13,
});
final bool? dense;
@@ -36,6 +37,7 @@ class PopupListTile<T> extends StatefulWidget {
final ValueGetter<(T, String)> value;
final PopupMenuItemBuilder<T> itemBuilder;
final PopupMenuItemSelected<T> onSelected;
final double descFontSize;
@override
State<PopupListTile<T>> createState() => _PopupListTileState<T>();
@@ -88,7 +90,7 @@ class _PopupListTileState<T> extends State<PopupListTile<T>> {
final desc = Text(
descStr,
style: TextStyle(
fontSize: 13,
fontSize: widget.descFontSize,
color: widget.enabled
? theme.colorScheme.secondary
: theme.disabledColor,