mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-14 03:56:27 +00:00
try out 3.22.2
This commit is contained in:
@@ -141,8 +141,9 @@ class _PortForwardPageState extends State<PortForwardPage>
|
||||
child: Text(translate(label)).marginOnly(left: _kTextLeftMargin));
|
||||
|
||||
return Theme(
|
||||
data: Theme.of(context)
|
||||
.copyWith(backgroundColor: Theme.of(context).colorScheme.background),
|
||||
data: Theme.of(context).copyWith(
|
||||
colorScheme: Theme.of(context).colorScheme,
|
||||
),
|
||||
child: Obx(() => ListView.builder(
|
||||
controller: ScrollController(),
|
||||
itemCount: pfs.length + 2,
|
||||
@@ -289,7 +290,7 @@ class _PortForwardPageState extends State<PortForwardPage>
|
||||
).marginOnly(left: _kTextLeftMargin));
|
||||
return Theme(
|
||||
data: Theme.of(context)
|
||||
.copyWith(backgroundColor: Theme.of(context).colorScheme.background),
|
||||
.copyWith(colorScheme: Theme.of(context).colorScheme),
|
||||
child: ListView.builder(
|
||||
controller: ScrollController(),
|
||||
itemCount: 2,
|
||||
|
||||
@@ -271,7 +271,7 @@ class PopupMenuItem<T> extends PopupMenuEntry<T> {
|
||||
/// The text style of the popup menu item.
|
||||
///
|
||||
/// If this property is null, then [PopupMenuThemeData.textStyle] is used.
|
||||
/// If [PopupMenuThemeData.textStyle] is also null, then [TextTheme.subtitle1]
|
||||
/// If [PopupMenuThemeData.textStyle] is also null, then [TextTheme.titleMedium]
|
||||
/// of [ThemeData.textTheme] is used.
|
||||
final TextStyle? textStyle;
|
||||
|
||||
@@ -352,7 +352,7 @@ class PopupMenuItemState<T, W extends PopupMenuItem<T>> extends State<W> {
|
||||
final PopupMenuThemeData popupMenuTheme = PopupMenuTheme.of(context);
|
||||
TextStyle style = widget.textStyle ??
|
||||
popupMenuTheme.textStyle ??
|
||||
theme.textTheme.subtitle1!;
|
||||
theme.textTheme.titleMedium!;
|
||||
|
||||
if (!widget.enabled) style = style.copyWith(color: theme.disabledColor);
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ class MyPopupMenuItemState<T, W extends PopupMenuChildrenItem<T>>
|
||||
final PopupMenuThemeData popupMenuTheme = PopupMenuTheme.of(context);
|
||||
TextStyle style = widget.textStyle ??
|
||||
popupMenuTheme.textStyle ??
|
||||
theme.textTheme.subtitle1!;
|
||||
theme.textTheme.titleMedium!;
|
||||
return Obx(() => mod_menu.PopupMenuButton<T>(
|
||||
enabled: enabled.value,
|
||||
position: widget.position,
|
||||
|
||||
Reference in New Issue
Block a user