fix: Small bugfix for windows

This commit is contained in:
PartyDonut 2025-10-09 10:55:08 +02:00
parent 75c2f958b4
commit 24d6eb52b9
2 changed files with 28 additions and 22 deletions

View file

@ -1,3 +1,6 @@
import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
@ -34,6 +37,7 @@ class VideoPlayerSettingsProviderNotifier extends StateNotifier<VideoPlayerSetti
ref.read(videoPlayerProvider.notifier).init(); ref.read(videoPlayerProvider.notifier).init();
} }
final userData = ref.read(userProvider); final userData = ref.read(userProvider);
if (!kIsWeb && Platform.isAndroid) {
pigeon.PlayerSettingsPigeon().sendPlayerSettings( pigeon.PlayerSettingsPigeon().sendPlayerSettings(
pigeon.PlayerSettings( pigeon.PlayerSettings(
enableTunneling: value.enableTunneling, enableTunneling: value.enableTunneling,
@ -59,6 +63,7 @@ class VideoPlayerSettingsProviderNotifier extends StateNotifier<VideoPlayerSetti
), ),
); );
} }
}
void setScreenBrightness(double? value) async { void setScreenBrightness(double? value) async {
state = state.copyWith( state = state.copyWith(

View file

@ -107,6 +107,7 @@ class CustomKeyboardState extends State<CustomKeyboardWrapper> {
color: Theme.of(context).colorScheme.surface, color: Theme.of(context).colorScheme.surface,
alignment: Alignment.center, alignment: Alignment.center,
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [ children: [
AnimatedSize( AnimatedSize(
duration: const Duration(milliseconds: 125), duration: const Duration(milliseconds: 125),