mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-16 18:56:00 -07:00
fix: Small bugfix for windows
This commit is contained in:
parent
75c2f958b4
commit
24d6eb52b9
2 changed files with 28 additions and 22 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
|
|
@ -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),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue