fix: keep download toggle label on one line
This commit is contained in:
@@ -44,6 +44,10 @@ class FocusableListTile extends StatefulWidget {
|
||||
|
||||
final VisualDensity? visualDensity;
|
||||
|
||||
final double? horizontalTitleGap;
|
||||
|
||||
final double? minLeadingWidth;
|
||||
|
||||
const FocusableListTile({
|
||||
super.key,
|
||||
this.title,
|
||||
@@ -63,6 +67,8 @@ class FocusableListTile extends StatefulWidget {
|
||||
this.textColor,
|
||||
this.iconColor,
|
||||
this.visualDensity = const VisualDensity(vertical: -3),
|
||||
this.horizontalTitleGap,
|
||||
this.minLeadingWidth,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -125,6 +131,8 @@ class _FocusableListTileState extends State<FocusableListTile> with FocusableTil
|
||||
hoverColor: widget.hoverColor,
|
||||
textColor: textColor,
|
||||
iconColor: iconColor,
|
||||
horizontalTitleGap: widget.horizontalTitleGap,
|
||||
minLeadingWidth: widget.minLeadingWidth,
|
||||
),
|
||||
);
|
||||
|
||||
@@ -277,6 +285,12 @@ class FocusableSwitchListTile extends StatefulWidget {
|
||||
/// SwitchListTile default.
|
||||
final EdgeInsetsGeometry? contentPadding;
|
||||
|
||||
/// Horizontal gap between the leading/secondary widget and title.
|
||||
final double? horizontalTitleGap;
|
||||
|
||||
/// Minimum width reserved for the leading/secondary widget.
|
||||
final double? minLeadingWidth;
|
||||
|
||||
const FocusableSwitchListTile({
|
||||
super.key,
|
||||
this.title,
|
||||
@@ -289,6 +303,8 @@ class FocusableSwitchListTile extends StatefulWidget {
|
||||
this.autofocus = false,
|
||||
this.visualDensity = const VisualDensity(vertical: -3),
|
||||
this.contentPadding,
|
||||
this.horizontalTitleGap,
|
||||
this.minLeadingWidth,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -333,6 +349,8 @@ class _FocusableSwitchListTileState extends State<FocusableSwitchListTile>
|
||||
contentPadding: widget.contentPadding,
|
||||
focusNode: effectiveFocusNode,
|
||||
autofocus: widget.autofocus,
|
||||
horizontalTitleGap: widget.horizontalTitleGap,
|
||||
minLeadingWidth: widget.minLeadingWidth,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user