Skip to content

Commit

Permalink
fix(windows): revert Flutter version to 3.19.6 to avoid distortion #1553
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Jun 6, 2024
1 parent 57cd860 commit 982cf0b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"flutterSdkVersion": "3.22.1",
"flutterSdkVersion": "3.19.6",
"flavors": {}
}
2 changes: 1 addition & 1 deletion .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:

env:
FLUTTER_VERSION: '3.22.1'
FLUTTER_VERSION: '3.19.6'

jobs:
lint:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spotube-release-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
description: Dry run without uploading to release

env:
FLUTTER_VERSION: 3.22.1
FLUTTER_VERSION: 3.19.6

permissions:
contents: write
Expand Down
22 changes: 2 additions & 20 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:local_notifier/local_notifier.dart';
import 'package:media_kit/media_kit.dart';
import 'package:metadata_god/metadata_god.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:spotube/collections/initializers.dart';
import 'package:spotube/collections/routes.dart';
import 'package:spotube/collections/intents.dart';
Expand Down Expand Up @@ -139,28 +138,11 @@ Future<void> main(List<String> rawArgs) async {
);
}

class Spotube extends StatefulHookConsumerWidget {
class Spotube extends HookConsumerWidget {
const Spotube({super.key});

@override
SpotubeState createState() => SpotubeState();

static SpotubeState of(BuildContext context) =>
context.findAncestorStateOfType<SpotubeState>()!;
}

class SpotubeState extends ConsumerState<Spotube> {
final logger = getLogger(Spotube);
SharedPreferences? localStorage;

@override
void initState() {
super.initState();
SharedPreferences.getInstance().then(((value) => localStorage = value));
}

@override
Widget build(BuildContext context) {
Widget build(BuildContext context, ref) {
final themeMode =
ref.watch(userPreferencesProvider.select((s) => s.themeMode));
final accentMaterialColor =
Expand Down
6 changes: 0 additions & 6 deletions macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ PODS:
- FlutterMacOS
- window_manager (0.2.0):
- FlutterMacOS
- window_size (0.0.2):
- FlutterMacOS

DEPENDENCIES:
- app_links (from `Flutter/ephemeral/.symlinks/plugins/app_links/macos`)
Expand All @@ -76,7 +74,6 @@ DEPENDENCIES:
- tray_manager (from `Flutter/ephemeral/.symlinks/plugins/tray_manager/macos`)
- url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`)
- window_manager (from `Flutter/ephemeral/.symlinks/plugins/window_manager/macos`)
- window_size (from `Flutter/ephemeral/.symlinks/plugins/window_size/macos`)

SPEC REPOS:
trunk:
Expand Down Expand Up @@ -129,8 +126,6 @@ EXTERNAL SOURCES:
:path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos
window_manager:
:path: Flutter/ephemeral/.symlinks/plugins/window_manager/macos
window_size:
:path: Flutter/ephemeral/.symlinks/plugins/window_size/macos

SPEC CHECKSUMS:
app_links: 10e0a0ab602ffaf34d142cd4862f29d34b303b2a
Expand All @@ -157,7 +152,6 @@ SPEC CHECKSUMS:
tray_manager: 9064e219c56d75c476e46b9a21182087930baf90
url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95
window_manager: 3a1844359a6295ab1e47659b1a777e36773cd6e8
window_size: 339dafa0b27a95a62a843042038fa6c3c48de195

PODFILE CHECKSUM: 0d3963a09fc94f580682bd88480486da345dc3f0

Expand Down

0 comments on commit 982cf0b

Please sign in to comment.