Skip to content

Commit

Permalink
Update flutter and dependencies major versions (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-selo authored Oct 16, 2023
1 parent ba4ee40 commit 23abfa6
Show file tree
Hide file tree
Showing 8 changed files with 134 additions and 125 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.6'
flutter-version: '3.13.0'
channel: 'stable'
- run: flutter pub get
- run: flutter pub run build_runner build
Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apt-get update
RUN apt-get install -y curl git wget unzip libgconf-2-4 gdb libstdc++6 libglu1-mesa fonts-droid-fallback lib32stdc++6 python3

RUN git clone https://github.com/flutter/flutter.git /opt/flutter && \
cd /opt/flutter && git checkout '3.10.6' && \
cd /opt/flutter && git checkout '3.13.0' && \
/opt/flutter/bin/flutter doctor && \
/opt/flutter/bin/flutter config --enable-web

Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/models/test_execution.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ enum TestExecutionStatus {
case inProgress:
return const Icon(YaruIcons.refresh, size: size);
case passed:
return const Icon(YaruIcons.ok, color: YaruColors.success, size: size);
return Icon(YaruIcons.ok, color: YaruColors.light.success, size: size);
case failed:
return const Icon(YaruIcons.error, color: YaruColors.red, size: size);
case notTested:
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/providers/name_of_selected_stage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:riverpod_annotation/riverpod_annotation.dart';

part 'name_of_selected_stage.g.dart';

@riverpod
@Riverpod(dependencies: [])
String nameOfSelectedStage(NameOfSelectedStageRef ref) {
throw Exception(
'Name of selected stage not set yet, need to override provider',
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/providers/names_of_stages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:riverpod_annotation/riverpod_annotation.dart';

part 'names_of_stages.g.dart';

@riverpod
@Riverpod(dependencies: [])
List<String> namesOfStages(NamesOfStagesRef ref) {
throw Exception('Names of stages not set yet, need to override provider');
}
5 changes: 3 additions & 2 deletions frontend/lib/ui/navbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ class _NavbarEntry extends StatelessWidget {
return InkWell(
onTap: () => context.go(route),
child: Container(
color:
GoRouter.of(context).location == route ? YaruColors.orange : null,
color: GoRouterState.of(context).uri.toString() == route
? YaruColors.orange
: null,
padding: const EdgeInsets.all(Spacing.level4),
child: Text(
title,
Expand Down
Loading

0 comments on commit 23abfa6

Please sign in to comment.