Skip to content

Commit

Permalink
update deps and upgrade to flutter 3.24
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansen4857 committed Sep 30, 2024
1 parent 24a8cc9 commit ea02a84
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 170 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/format-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.22.0
flutter-version: 3.24.3
cache: true
cache-path: ${{ runner.tool_cache }}/flutter/linux

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pathplanner-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
required: true

env:
FLUTTER_VERSION: 3.22.0
FLUTTER_VERSION: 3.24.3

jobs:
formatting-analysis:
Expand Down
18 changes: 0 additions & 18 deletions lib/widgets/keyboard_shortcuts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:tuple/tuple.dart';
import 'package:visibility_detector/visibility_detector.dart';

List<_KeyBoardShortcuts> _keyBoardShortcuts = [];
List<Tuple2<Set<LogicalKeyboardKey>, Function(BuildContext context)>>
_newGlobal = [];

enum BasicShortCuts {
creation,
Expand All @@ -18,21 +15,6 @@ enum BasicShortCuts {
redo,
}

void initShortCuts({
Set<Set<LogicalKeyboardKey>>? keysToPress,
Set<Function(BuildContext context)>? onKeysPressed,
}) async {
if (keysToPress != null &&
onKeysPressed != null &&
keysToPress.length == onKeysPressed.length) {
_newGlobal = [];
for (var i = 0; i < keysToPress.length; i++) {
_newGlobal
.add(Tuple2(keysToPress.elementAt(i), onKeysPressed.elementAt(i)));
}
}
}

bool _isPressed(
Set<LogicalKeyboardKey> keysPressed, Set<LogicalKeyboardKey> keysToPress) {
//when we type shift on chrome flutter's core return two pressed keys : Shift Left && Shift Right. So we need to delete one on the set to run the action
Expand Down
Loading

0 comments on commit ea02a84

Please sign in to comment.