Skip to content

Commit 5c875e0

Browse files
refactor: modular example app, stricter analysis rules for v1.2.1
1 parent c61df63 commit 5c875e0

15 files changed

Lines changed: 837 additions & 645 deletions

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 1.2.1
2+
3+
* Refactored example app — modular tab structure
4+
* Added shared widgets: ExampleTile, SectionHeader, CodeBox
5+
* Stricter analysis_options.yaml rules
6+
* No API changes — pure code quality improvement
7+
8+
...
9+
110
## 1.2.0
211

312
* Added 10 new languages — total 16 supported!
@@ -7,7 +16,6 @@
716
* Updated `SdfLocale.supported` — now 16 locales
817
* Updated `SdfLocale.fromCode()` — supports all 16 codes
918

10-
## 1.1.0
1119
...
1220

1321
## 1.1.0
@@ -23,7 +31,6 @@
2331
* Added `previousMonday` through `previousSunday`
2432
* Added `copyWith` — create modified copies of DateTime
2533

26-
## 1.0.1
2734
...
2835

2936
## 1.0.1

analysis_options.yaml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,44 @@
11
include: package:flutter_lints/flutter.yaml
22

3-
# Additional information about this file can be found at
4-
# https://dart.dev/guides/language/analysis-options
3+
analyzer:
4+
language:
5+
strict-casts: true
6+
strict-inference: true
7+
strict-raw-types: true
8+
errors:
9+
missing_required_param: error
10+
missing_return: error
11+
dead_code: warning
12+
unused_import: warning
13+
unused_local_variable: warning
14+
15+
linter:
16+
rules:
17+
# Code style
18+
prefer_const_constructors: true
19+
prefer_const_declarations: true
20+
prefer_final_fields: true
21+
prefer_final_locals: true
22+
prefer_single_quotes: true
23+
24+
# Documentation
25+
public_member_api_docs: true
26+
27+
# Best practices
28+
avoid_print: true
29+
avoid_empty_else: true
30+
avoid_relative_lib_imports: true
31+
avoid_returning_null_for_future: true
32+
avoid_slow_async_io: true
33+
avoid_type_to_string: true
34+
cancel_subscriptions: true
35+
close_sinks: true
36+
comment_references: true
37+
only_throw_errors: true
38+
throw_in_finally: true
39+
unnecessary_statements: true
40+
41+
# Flutter specific
42+
use_build_context_synchronously: true
43+
sized_box_for_whitespace: true
44+
use_key_in_widget_constructors: true

0 commit comments

Comments
 (0)