Skip to content

Commit

Permalink
maint(gui): Upgrade flutter version (#845)
Browse files Browse the repository at this point in the history
And major versions of some dependencies that were previously held due
inter-package constraints.

For instance grpc 4.0.0 requires minimum Dart version 3.2.0, but
agentapi was holding Dart max version to 3.0.0, thus dependabot couldn't
upgrade grpc.

Nothing required changes in the proto-generated Dart code.
  • Loading branch information
CarlosNihelton authored Jul 29, 2024
2 parents 65fbf92 + 549baf5 commit 5898930
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 83 deletions.
4 changes: 2 additions & 2 deletions agentapi/dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ description: Exposes the Windows Agent gRPC API.
version: 0.0.1

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

dependencies:
grpc: ^3.2.1
grpc: ^4.0.0
protobuf: ^3.0.0
6 changes: 3 additions & 3 deletions gui/packages/ubuntupro/lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ class Pro4WSLApp extends StatelessWidget {

ThemeData? customize(ThemeData? theme) {
if (theme == null) return null;
const padding = MaterialStatePropertyAll<EdgeInsetsGeometry>(
const padding = WidgetStatePropertyAll<EdgeInsetsGeometry>(
EdgeInsets.symmetric(vertical: 20.0, horizontal: 16.0),
);
const shape = MaterialStatePropertyAll<RoundedRectangleBorder>(
const shape = WidgetStatePropertyAll<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.zero,
),
);
final textStyle = MaterialStatePropertyAll<TextStyle>(
final textStyle = WidgetStatePropertyAll<TextStyle>(
theme.textTheme.bodySmall!.copyWith(fontWeight: FontWeight.normal),
);
final filledButtonTheme = FilledButtonThemeData(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import 'package:p4w_ms_store/p4w_ms_store.dart';
import 'package:provider/provider.dart';
import 'package:ubuntu_service/ubuntu_service.dart';
import 'package:wizard_router/wizard_router.dart';
import '../widgets/page_widgets.dart';

import '/core/agent_api_client.dart';
import '/pages/widgets/page_widgets.dart';

import 'subscribe_now_model.dart';
import 'subscribe_now_widgets.dart';

Expand Down
Loading

0 comments on commit 5898930

Please sign in to comment.