Skip to content

Commit eaff1e2

Browse files
authored
Release 0.12.0
1 parent aad4eef commit eaff1e2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+554
-615
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515

1616
- name: Setup Flutter
17-
uses: subosito/flutter-action@v1
17+
uses: subosito/flutter-action@v2
1818
with:
1919
channel: 'stable'
2020

2121
- name: Download pub dependencies
2222
run: flutter pub get
2323

2424
- name: Check formatting
25-
run: flutter format --set-exit-if-changed --dry-run .
25+
run: dart format --set-exit-if-changed .
2626

2727
- name: Run analyzer
2828
run: flutter analyze

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ jobs:
1111
on-pull-request:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: subosito/flutter-action@v1
14+
- uses: actions/checkout@v3
15+
- uses: subosito/flutter-action@v2
1616
with:
1717
channel: 'stable'
1818

1919
- name: Download pub dependencies
2020
run: flutter pub get
2121

2222
- name: Check formatting
23-
run: flutter format --set-exit-if-changed --dry-run .
23+
run: dart format --set-exit-if-changed .
2424

2525
- name: Run analyzer
2626
run: flutter analyze

CHANGELOG.md

Lines changed: 35 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,82 @@
11
# Changelog
22

3+
## [0.12.0] * Breaking Changes *
4+
5+
* Migrated to `dart` 3.0,
6+
* Removed: `@Deprecated` methods,
7+
* Removed: export of `ListEvent`, `DetailsEvent` and `PagedListEvent`,
8+
* Changed: Repositories to `interface` classes.
9+
310
## [0.11.0]
411

5-
* Migrating to `bloc` 8.1.x and `flutter_bloc` 8.1.x,
6-
* `ConnectionBloc` - a BLoC that exposes the Internet connection state to the UI.
12+
* Migrated to `bloc` 8.1.x and `flutter_bloc` 8.1.x,
13+
* Added `ConnectionBloc` - a BLoC that exposes the Internet connection state to the UI.
714

815
## [0.10.0]
916

10-
* Migrating to `bloc` 8.0.x and `flutter_bloc` 8.0.x,
17+
* Migrated to `bloc` 8.0.x and `flutter_bloc` 8.0.x,
1118

1219
## [0.9.0] * Breaking Changes *
1320

14-
* Migrating to `bloc` 7.0.0 and `flutter_bloc` 7.0.1,
15-
* Migrating to `null-safety`.
21+
* Migrated to `bloc` 7.0.0 and `flutter_bloc` 7.0.1,
22+
* Migrated to `null-safety`.
1623

1724
## [0.8.0] * Breaking Changes *
1825

19-
* Migrating to `bloc` 6.1.1 and `flutter_bloc` 6.1.1.
26+
* Migrated to `bloc` 6.1.1 and `flutter_bloc` 6.1.1.
2027

2128
## [0.7.0] * Breaking Changes *
2229

23-
* Migrating to `bloc` 5.0.1 and `flutter_bloc` 5.0.1.
30+
* Migrated to `bloc` 5.0.1 and `flutter_bloc` 5.0.1.
2431

2532
## [0.6.0] * Breaking Changes *
2633

27-
* `Page` should be imported via `package:flutter_bloc_patterns/page.dart`.
34+
* Changed `Page` should be imported via `package:flutter_bloc_patterns/page.dart`.
2835

2936
## [0.5.0] * Breaking Changes *
3037

31-
* `RefreshView`, `ViewState` and `ViewStateBuilder` should be imported via `package:flutter_bloc_patterns/view.dart`,
32-
* `ViewStateListener` for handling features that need to occur once per state change such as navigation, showing a `SnackBar`, showing a `Dialog`, etc,
33-
* `const` constructors for `ViewState`.
38+
* Changed: `RefreshView`, `ViewState` and `ViewStateBuilder` should be imported
39+
via `package:flutter_bloc_patterns/view.dart`,
40+
* Changed: `ViewStateListener` for handling features that need to occur once per state change such
41+
as navigation, showing a `SnackBar`, showing a `Dialog`, etc,
42+
* Added: `const` constructors for `ViewState`.
3443

3544
## [0.4.0]
3645

37-
* Migrating to `bloc` 3.0.0 and `flutter_bloc` 3.2.0,
38-
* Rethrowing `errors` from `blocs` to make them available in the `onError` method,
39-
* Code style improvements.
46+
* Migrated: to `bloc` 3.0.0 and `flutter_bloc` 3.2.0,
47+
* Changed: Rethrowing `errors` from `blocs` to make them available in the `onError` method,
4048

4149
## [0.3.1]
4250

43-
* `ViewState` exported.
51+
* Added: `ViewState` exported.
4452

4553
## [0.3.0]
4654

47-
* `PagedFilterListBloc` - a list BLoC with pagination and filtering,
48-
* `PagedRepository` renamed to `PagedListRepository`.
49-
* `FilterRepository` renamed to `FilterListRepository`.
50-
* Migrating to `bloc` 2.0.0 and `flutter_bloc` 2.0.1
55+
* Added: `PagedFilterListBloc` - a list BLoC with pagination and filtering,
56+
* Changed: `PagedRepository` renamed to `PagedListRepository`.
57+
* Changed: `FilterRepository` renamed to `FilterListRepository`.
58+
* Migrated to `bloc` 2.0.0 and `flutter_bloc` 2.0.1
5159

5260
## [0.2.2]
5361

54-
* Migrating to `bloc` 1.0.0 and `flutter_bloc` 1.0.0
62+
* Migrated to `bloc` 1.0.0 and `flutter_bloc` 1.0.0
5563

5664
## [0.2.1]
5765

58-
* Migrating to `bloc` 0.16.1 and `flutter_bloc` 0.22.0
66+
* Migrated to `bloc` 0.16.1 and `flutter_bloc` 0.22.0
5967

6068
## [0.2.0]
6169

62-
* `Initial` state introduced along with `onReady` callback for the `ViewStateBuilder`,
63-
* `Repository` renamed to `ListRepository`,
70+
* Added: `Initial` state introduced along with `onReady` callback for the `ViewStateBuilder`,
71+
* Changed: `Repository` renamed to `ListRepository`,
6472

6573
## [0.1.1]
6674

6775
* Formatting issues fixed.
6876

6977
## [0.1.0]
7078

71-
* `ListBloc` - a basic list BLoC with no filtering nor pagination,
72-
* `FilterListBloc` - a list BLoC with filtering, but without pagination,
73-
* `PagedListBloc` - a list BLoC with pagination but without filtering,
74-
* `DetailsBloc` - a BLoC that allows to fetch a single element with given identifier.
79+
* Added: `ListBloc` - a basic list BLoC with no filtering nor pagination,
80+
* Added: `FilterListBloc` - a list BLoC with filtering, but without pagination,
81+
* Added: `PagedListBloc` - a list BLoC with pagination but without filtering,
82+
* Added: `DetailsBloc` - a BLoC that allows to fetch a single element with given identifier.

example/ios/Flutter/Debug.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
12
#include "Generated.xcconfig"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
12
#include "Generated.xcconfig"

example/lib/src/connection_app.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class OfflineView extends StatelessWidget {
9696
const SizedBox(height: 16),
9797
Text(
9898
'You are offline. Check your Internet connection.',
99-
style: Theme.of(context).textTheme.bodyText2,
99+
style: Theme.of(context).textTheme.bodyMedium,
100100
)
101101
],
102102
),

example/lib/src/list_details_app.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ class PostDetailsView extends StatelessWidget {
124124
child: Column(
125125
crossAxisAlignment: CrossAxisAlignment.start,
126126
children: <Widget>[
127-
Text(post.title, style: Theme.of(context).textTheme.headline6),
127+
Text(post.title, style: Theme.of(context).textTheme.titleLarge),
128128
const SizedBox(height: 8),
129129
Text(
130130
post.body,
131-
style: Theme.of(context).textTheme.bodyText2,
131+
style: Theme.of(context).textTheme.bodyMedium,
132132
textAlign: TextAlign.justify,
133133
),
134134
],

example/lib/src/list_paged_app.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class _PostsPageState extends State<_PostsPage> {
4141
Widget build(BuildContext context) {
4242
return Scaffold(
4343
appBar: AppBar(title: const Text('Posts')),
44-
body: ViewStateBuilder<PagedList<Post>, PagedListBloc>(
44+
body: ViewStateBuilder<PagedList<Post>, PagedListBloc<Post>>(
4545
onLoading: (context) => const LoadingIndicator(),
4646
onSuccess: (context, page) => PostsListPaged(
4747
page,

0 commit comments

Comments
 (0)