Skip to content

Commit

Permalink
upgrade dependencies and flutter version
Browse files Browse the repository at this point in the history
  • Loading branch information
lvinci committed Aug 19, 2024
1 parent 1951fd4 commit 3be3332
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 29 deletions.
2 changes: 1 addition & 1 deletion lib/screens/simulation_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class SimulationScreen extends StatefulWidget {
const SimulationScreen({Key? key}) : super(key: key);

@override
_SimulationScreenState createState() => _SimulationScreenState();
State<SimulationScreen> createState() => _SimulationScreenState();
}

/// Keeps the current state of the simulation
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/car_action_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CarActionCard extends StatelessWidget {
],
rows: actions
.map((action) => DataRow(
color: MaterialStateProperty.all<Color>(
color: WidgetStatePropertyAll<Color>(
action.color?.withOpacity(0.2) ?? Colors.transparent,
),
cells: [
Expand Down
6 changes: 2 additions & 4 deletions lib/widgets/generate_cars_card.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:ui';

import 'package:flutter/material.dart';

/// Allows the user to generate new cars
Expand All @@ -11,7 +9,7 @@ class GenerateCarsCard extends StatefulWidget {
final ValueChanged<int> onGenerateCars;

@override
_GenerateCarsCardState createState() => _GenerateCarsCardState();
State<GenerateCarsCard> createState() => _GenerateCarsCardState();
}

/// Keeps the state of the amount of cars to be generated
Expand All @@ -29,7 +27,7 @@ class _GenerateCarsCardState extends State<GenerateCarsCard> {
children: [
Text(
'Anzahl Autos',
style: Theme.of(context).textTheme.subtitle1,
style: Theme.of(context).textTheme.labelLarge,
),
Row(
children: [
Expand Down
8 changes: 3 additions & 5 deletions lib/widgets/send_warning_card.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:notbrems_assistent/models/car.dart';
import 'package:notbrems_assistent/models/emergency_break_warning.dart';
Expand All @@ -19,7 +17,7 @@ class SendWarningCard extends StatefulWidget {
final Car selectedCar;

@override
_SendWarningCardState createState() => _SendWarningCardState();
State<SendWarningCard> createState() => _SendWarningCardState();
}

/// Keepos the state of the selected deceleration speed
Expand All @@ -37,7 +35,7 @@ class _SendWarningCardState extends State<SendWarningCard> {
children: [
Text(
'Bremsverzögerung',
style: Theme.of(context).textTheme.subtitle1,
style: Theme.of(context).textTheme.labelLarge,
),
Row(
children: [
Expand All @@ -58,7 +56,7 @@ class _SendWarningCardState extends State<SendWarningCard> {
const SizedBox(height: 10),
Text(
'Car2X Nachricht JSON',
style: Theme.of(context).textTheme.subtitle1,
style: Theme.of(context).textTheme.labelLarge,
),
const SizedBox(height: 10),
Container(
Expand Down
26 changes: 9 additions & 17 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,34 +26,34 @@ packages:
dependency: "direct dev"
description:
name: flutter_lints
sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7
sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c"
url: "https://pub.dev"
source: hosted
version: "3.0.1"
version: "4.0.0"
lints:
dependency: transitive
description:
name: lints
sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"
url: "https://pub.dev"
source: hosted
version: "3.0.0"
version: "4.0.0"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
url: "https://pub.dev"
source: hosted
version: "0.5.0"
version: "0.11.1"
meta:
dependency: transitive
description:
name: meta
sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
url: "https://pub.dev"
source: hosted
version: "1.10.0"
version: "1.15.0"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -67,13 +67,5 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.4"
web:
dependency: transitive
description:
name: web
sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
url: "https://pub.dev"
source: hosted
version: "0.3.0"
sdks:
dart: ">=3.2.0-194.0.dev <4.0.0"
dart: ">=3.3.0-0 <4.0.0"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dev_dependencies:
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^3.0.1
flutter_lints: ^4.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down

0 comments on commit 3be3332

Please sign in to comment.