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

View file

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