Skip to content

Commit

Permalink
chore(flutter_bloc): update example to Dart 2.19 (#3715)
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel authored Feb 7, 2023
1 parent 093f13d commit 1ffb815
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/flutter_bloc/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class AppBlocObserver extends BlocObserver {
/// {@endtemplate}
class App extends StatelessWidget {
/// {@macro app}
const App({Key? key}) : super(key: key);
const App({super.key});

@override
Widget build(BuildContext context) {
Expand All @@ -53,7 +53,7 @@ class App extends StatelessWidget {
/// {@endtemplate}
class AppView extends StatelessWidget {
/// {@macro app_view}
const AppView({Key? key}) : super(key: key);
const AppView({super.key});

@override
Widget build(BuildContext context) {
Expand All @@ -74,7 +74,7 @@ class AppView extends StatelessWidget {
/// {@endtemplate}
class CounterPage extends StatelessWidget {
/// {@macro counter_page}
const CounterPage({Key? key}) : super(key: key);
const CounterPage({super.key});

@override
Widget build(BuildContext context) {
Expand All @@ -91,7 +91,7 @@ class CounterPage extends StatelessWidget {
/// {@endtemplate}
class CounterView extends StatelessWidget {
/// {@macro counter_view}
const CounterView({Key? key}) : super(key: key);
const CounterView({super.key});

@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_bloc/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 1.0.0+1
publish_to: none

environment:
sdk: ">=2.13.0 <3.0.0"
sdk: ">=2.19.0 <3.0.0"

dependencies:
flutter:
Expand Down

0 comments on commit 1ffb815

Please sign in to comment.