Skip to content

Commit

Permalink
Dart3 (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
njooma authored Jul 6, 2023
1 parent a32a3a7 commit 435670d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 4 additions & 2 deletions example/viam_example_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: '>=2.19.5 <4.0.0'
sdk: '>=3.0.0 <4.0.0'

dependencies:
flutter:
Expand All @@ -14,6 +14,8 @@ dependencies:
path: ../../
cupertino_icons: ^1.0.2
flutter_platform_widgets: ^3.2.1
flutter_webrtc: ^0.9.35
image: ^4.0.17

dev_dependencies:
flutter_launcher_icons: ^0.13.1
Expand All @@ -40,4 +42,4 @@ flutter_launcher_icons:
icon_size: 48 # min:48, max:256, default: 48
macos:
generate: true
image_path: "assets/icon/app_logo.png"
image_path: "assets/icon/app_logo.png"
3 changes: 0 additions & 3 deletions lib/src/components/movement_sensor/client.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import 'package:grpc/grpc_connection_interface.dart';
import 'package:logger/logger.dart';

import '../../gen/common/v1/common.pb.dart';
import '../../gen/component/movementsensor/v1/movementsensor.pbgrpc.dart';
import '../../resource/base.dart';
import '../../utils.dart';
import 'movement_sensor.dart';

Logger _logger = Logger();

/// gRPC client for the [MovementSensor] component.
class MovementSensorClient extends MovementSensor implements ResourceRPCClient {
@override
Expand Down
1 change: 1 addition & 0 deletions lib/src/media/stream/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class StreamManager {
final Map<String, StreamClient> _clients = {};
final WebRtcClientChannel _channel;
final StreamServiceClient _client;
// ignore: cancel_subscriptions
StreamSubscription? _errorHandler;

static final Finalizer<StreamSubscription?> _finalizer = Finalizer((p0) {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/widgets/widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class _BaseJoystickState extends State<BaseJoystick> {
);
}

void callSetPower(details) {
void callSetPower(StickDragDetails details) {
widget.base.setPower(
Vector3(y: details.y * -1),
Vector3(z: details.x * -1),
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ version: 0.0.1
homepage: https://viam.com

environment:
sdk: '>=2.19.0 <3.0.0'
sdk: '>=3.0.0 <4.0.0'
flutter: ">=3.0.0"

dependencies:
flutter:
sdk: flutter
auth0_flutter: ^1.1.0
collection: ^1.16.0
fimber_io: ^0.6.6
fimber_io: ^0.7.0
flutter_webrtc: ^0.9.26
grpc: ^3.1.0
protobuf: ^2.1.0
protobuf: ^3.0.0
image: ^4.0.16
logger: ^1.3.0
fixnum: ^1.1.0
Expand Down

0 comments on commit 435670d

Please sign in to comment.