Skip to content

Commit ddeedab

Browse files
authored
Merge pull request #21 from DutchCodingCompany/feature/updates
v0.0.12
2 parents 0bff034 + 2d04e77 commit ddeedab

Some content is hidden

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

55 files changed

+629
-912
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# Changelog
2+
3+
## 0.0.12
4+
* Updated dependencies
5+
* Added test_util: catch presentation event helper, DeviceSizes
6+
* Added typedef for single bool methods.
7+
* Updated formatting
8+
* exported more files
9+
110
## 0.0.11
211
Added optional secondary, secondaryFill, tertiary and tertiaryFill ColorGroups to the Kleurplaat
312

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Dutch Coding Company B.V.
3+
Copyright (c) 2025 Dutch Coding Company B.V.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

analysis_options.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
include: package:very_good_analysis/analysis_options.yaml
22

3+
formatter:
4+
page_width: 120
5+
36
linter:
47
rules:
58
lines_longer_than_80_chars: false
9+
require_trailing_commas: false
610
analyzer:
711
errors:
812
missing_return: error

example/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
*.swp
66
.DS_Store
77
.atom/
8+
.build/
89
.buildlog/
910
.history
1011
.svn/
12+
.swiftpm/
1113
migrate_working_dir/
1214

1315
# IntelliJ related

example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
ignoresPersistentStateOnLaunch = "NO"
6060
debugDocumentVersioning = "YES"
6161
debugServiceExtension = "internal"
62+
enableGPUValidationMode = "1"
6263
allowLocationSimulation = "YES">
6364
<BuildableProductRunnable
6465
runnableDebuggingMode = "0">

example/lib/core/modules/chopper_module.dart

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ import 'package:injectable/injectable.dart';
99
abstract class ChopperModule {
1010
@lazySingleton
1111
ChopperClient chopper() => ChopperClient(
12-
converter: const JsonSerializableConverter(_factories),
13-
interceptors: [
14-
// We want to disable logging in release mode because it could leak sensitive information
15-
if (kDebugMode) ...[
16-
HttpLoggingInterceptor(),
17-
],
18-
],
19-
);
12+
converter: const JsonSerializableConverter(_factories),
13+
interceptors: [
14+
// We want to disable logging in release mode because it could leak sensitive information
15+
if (kDebugMode) ...[HttpLoggingInterceptor()],
16+
],
17+
);
2018
}
2119

2220
const _factories = {

example/lib/main.dart

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,31 @@ class MyHomePage extends StatelessWidget {
3434
child: Column(
3535
children: [
3636
ElevatedButton(
37-
onPressed: () => Navigator.of(context).push(
38-
MaterialPageRoute(
39-
builder: (context) => UserPage(
40-
onCreateCubit: (context) =>
41-
getIt<UserCubit>()..getRandomUser(),
37+
onPressed:
38+
() => Navigator.of(context).push(
39+
MaterialPageRoute(
40+
builder:
41+
(context) => UserPage(
42+
onCreateCubit:
43+
(context) =>
44+
getIt<UserCubit>()..getRandomUser(),
45+
),
46+
),
4247
),
43-
),
44-
),
4548
child: const Text('Get user succesfully'),
4649
),
4750
ElevatedButton(
48-
onPressed: () => Navigator.of(context).push(
49-
MaterialPageRoute(
50-
builder: (context) => UserPage(
51-
onCreateCubit: (context) =>
52-
getIt<UserCubit>()..getRandomUserFails(),
51+
onPressed:
52+
() => Navigator.of(context).push(
53+
MaterialPageRoute(
54+
builder:
55+
(context) => UserPage(
56+
onCreateCubit:
57+
(context) =>
58+
getIt<UserCubit>()..getRandomUserFails(),
59+
),
60+
),
5361
),
54-
),
55-
),
5662
child: const Text('Get user fails'),
5763
),
5864
],

example/lib/profile/data/model/api_user_response.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ part 'api_user_response.freezed.dart';
66
part 'api_user_response.g.dart';
77

88
@freezed
9-
class ApiUserResponse with _$ApiUserResponse {
10-
const factory ApiUserResponse({
11-
required List<User> results,
12-
}) = _ApiUserResponse;
9+
sealed class ApiUserResponse with _$ApiUserResponse {
10+
const factory ApiUserResponse({required List<User> results}) =
11+
_ApiUserResponse;
1312

1413
factory ApiUserResponse.fromJson(Map<String, dynamic> json) =>
1514
_$ApiUserResponseFromJson(json);

example/lib/profile/data/model/location.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ part 'location.freezed.dart';
66
part 'location.g.dart';
77

88
@freezed
9-
class Location with _$Location {
9+
sealed class Location with _$Location {
1010
const factory Location({
1111
required Street street,
1212
required String city,

example/lib/profile/data/model/name.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ part 'name.freezed.dart';
44
part 'name.g.dart';
55

66
@freezed
7-
class Name with _$Name {
7+
sealed class Name with _$Name {
88
const factory Name({
99
required String title,
1010
required String first,

0 commit comments

Comments
 (0)