[go: nahoru, domu]

Skip to content

Commit

Permalink
feat(angular_counter): upgrade to Dart 3
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed May 15, 2023
1 parent 2f15bb9 commit 5549193
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'package:bloc/bloc.dart';

abstract class CounterEvent {}
sealed class CounterEvent {}

class CounterIncrementPressed extends CounterEvent {}
final class CounterIncrementPressed extends CounterEvent {}

class CounterDecrementPressed extends CounterEvent {}
final class CounterDecrementPressed extends CounterEvent {}

class CounterBloc extends Bloc<CounterEvent, int> {
CounterBloc() : super(0) {
Expand Down
7 changes: 4 additions & 3 deletions examples/angular_counter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ name: angular_counter
description: A web app that uses angular_bloc

environment:
sdk: ">=2.19.0 <3.0.0"
sdk: ">=3.0.0-417.1.beta <3.0.0"

dependencies:
angular_bloc: ^8.0.0
angular_bloc: ^10.0.0-dev.0
bloc: ^8.1.1
ngdart: ^8.0.0-dev.0
ngdart: ^8.0.0-dev.2

dev_dependencies:
build_daemon: ^4.0.0
build_runner: ^2.0.0
build_web_compilers: ^3.0.0
4 changes: 3 additions & 1 deletion examples/angular_counter/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
dependency_overrides:
angular_bloc:
path: ../../packages/angular_bloc
path: ../../packages/angular_bloc
build_modules: ^5.0.0
build_web_compilers: ^4.0.0

0 comments on commit 5549193

Please sign in to comment.