Skip to content

Commit

Permalink
Update flutter, dart sdk, and dependencies (mjansen4857#535)
Browse files Browse the repository at this point in the history
* update flutter, dart sdk, and dependencies

* Update README.md
  • Loading branch information
mjansen4857 authored Jan 1, 2024
1 parent ae5545b commit 8e1a4bc
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 113 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.16.0
flutter-version: 3.16.5
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.16.0
FLUTTER_VERSION: 3.16.5

jobs:
formatting-analysis:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ https://3015rangerrobotics.github.io/pathplannerlib/PathplannerLib.json
[Python API Docs](https://mjansen4857.com/pathplanner/docs/python/)

## How to build manually:
* [Install Flutter](https://flutter.dev/docs/get-started/install) (this project currently uses v3.13.9)
* [Install Flutter](https://flutter.dev/docs/get-started/install)
* Open the project in a terminal and run the following command: `flutter build <PLATFORM>`
* Valid platforms are:
* windows
Expand Down
15 changes: 7 additions & 8 deletions lib/commands/command_groups.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ abstract class CommandGroup extends Command {
class SequentialCommandGroup extends CommandGroup {
SequentialCommandGroup({required super.commands}) : super(type: 'sequential');

SequentialCommandGroup.fromDataJson(Map<String, dynamic> json)
: super.fromDataJson(json, type: 'sequential');
SequentialCommandGroup.fromDataJson(super.json)
: super.fromDataJson(type: 'sequential');

@override
Command clone() {
Expand All @@ -53,8 +53,8 @@ class SequentialCommandGroup extends CommandGroup {
class ParallelCommandGroup extends CommandGroup {
ParallelCommandGroup({required super.commands}) : super(type: 'parallel');

ParallelCommandGroup.fromDataJson(Map<String, dynamic> json)
: super.fromDataJson(json, type: 'parallel');
ParallelCommandGroup.fromDataJson(super.json)
: super.fromDataJson(type: 'parallel');

@override
Command clone() {
Expand All @@ -75,8 +75,7 @@ class ParallelCommandGroup extends CommandGroup {
class RaceCommandGroup extends CommandGroup {
RaceCommandGroup({required super.commands}) : super(type: 'race');

RaceCommandGroup.fromDataJson(Map<String, dynamic> json)
: super.fromDataJson(json, type: 'race');
RaceCommandGroup.fromDataJson(super.json) : super.fromDataJson(type: 'race');

@override
Command clone() {
Expand All @@ -96,8 +95,8 @@ class RaceCommandGroup extends CommandGroup {
class DeadlineCommandGroup extends CommandGroup {
DeadlineCommandGroup({required super.commands}) : super(type: 'deadline');

DeadlineCommandGroup.fromDataJson(Map<String, dynamic> json)
: super.fromDataJson(json, type: 'deadline');
DeadlineCommandGroup.fromDataJson(super.json)
: super.fromDataJson(type: 'deadline');

@override
Command clone() {
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
await _bookmarks!.resolveBookmark(
widget.prefs.getString(PrefsKeys.macOSBookmark)!);

await _bookmarks!
await _bookmarks
.startAccessingSecurityScopedResource(fs.file(projectDir));
} catch (e) {
Log.error('Failed to resolve secure bookmarks', e);
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/dialogs/settings_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ class _SettingsDialogState extends State<SettingsDialog> {
value: value,
child: Text(value.name),
);
}).toList(),
}),
const DropdownMenuItem<FieldImage?>(
value: null,
child: Text('Import Custom...'),
Expand Down
3 changes: 1 addition & 2 deletions lib/widgets/window_buttons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ class MouseStateBuilder extends StatefulWidget {
final MouseStateBuilderCB? builder;
final VoidCallback? onPressed;

const MouseStateBuilder({Key? key, this.builder, this.onPressed})
: super(key: key);
const MouseStateBuilder({super.key, this.builder, this.onPressed});

@override
State<MouseStateBuilder> createState() => _MouseStateBuilderState();
Expand Down
Loading

0 comments on commit 8e1a4bc

Please sign in to comment.