Skip to content

Commit e19eae1

Browse files
Lower dart & flutter constraints
1 parent 68ce3f0 commit e19eae1

6 files changed

Lines changed: 25 additions & 25 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.0.2
2+
3+
* Lower dart constraint to 3.0.0
4+
* Lower flutter constraint to 3.16.0
5+
16
## 1.0.1
27

38
* Replace deprecated `textScaleFactor` with `textScaler`.

example/pubspec.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ packages:
9393
dependency: "direct dev"
9494
description:
9595
name: cosee_lints
96-
sha256: c3f8217508009efc935ea91803ec4219fc65a772997dd25278502b774d329674
96+
sha256: "4369ad0964e217729530356f4323ca936ed08b89180d29fd59391cd91bbafe7d"
9797
url: "https://pub.dev"
9898
source: hosted
99-
version: "0.12.0"
99+
version: "0.13.0"
100100
crypto:
101101
dependency: transitive
102102
description:
@@ -321,7 +321,7 @@ packages:
321321
path: ".."
322322
relative: true
323323
source: path
324-
version: "1.0.1"
324+
version: "1.0.2"
325325
sky_engine:
326326
dependency: transitive
327327
description: flutter
@@ -440,5 +440,5 @@ packages:
440440
source: hosted
441441
version: "3.1.3"
442442
sdks:
443-
dart: ">=3.10.0 <4.0.0"
443+
dart: ">=3.11.0 <4.0.0"
444444
flutter: ">=3.18.0-18.0.pre.54"

example/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ publish_to: 'none'
44
version: 1.0.0+1
55

66
environment:
7-
sdk: ^3.8.0
7+
sdk: ^3.11.0
88

99
dependencies:
1010
flutter:
@@ -16,8 +16,8 @@ dependencies:
1616
dev_dependencies:
1717
flutter_test:
1818
sdk: flutter
19-
cosee_lints: 0.12.0
20-
dart_code_linter: ^3.0.0
19+
cosee_lints: ^0.13.0
20+
dart_code_linter: ^3.2.1
2121

2222
flutter:
2323
uses-material-design: true

lib/src/line_size_builder.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ class LineSizeBuilder extends StatelessWidget {
3535
final painter = TextPainter(
3636
text: TextSpan(
3737
text: text,
38-
style:
39-
styleForHeightCalculation ??
38+
style: styleForHeightCalculation ??
4039
Theme.of(context).primaryTextTheme.bodyLarge,
4140
),
4241
textScaler: MediaQuery.of(context).textScaler,
@@ -60,8 +59,7 @@ class LineSizeBuilder extends StatelessWidget {
6059
..add(DoubleProperty('maxWidth', maxWidth))
6160
..add(
6261
ObjectFlagProperty<
63-
Widget Function(BuildContext context, double height)
64-
>.has(
62+
Widget Function(BuildContext context, double height)>.has(
6563
'builder',
6664
builder,
6765
),

lib/src/notebook.dart

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,9 @@ class _NotebookPainter extends CustomPainter {
9595
_createCommonNotebook(size, canvas, _linePaint);
9696

9797
void _createCommonNotebook(Size size, Canvas canvas, Paint linePaint) {
98-
for (
99-
double yPosition = textHeight;
100-
yPosition < size.height;
101-
yPosition += textHeight
102-
) {
98+
for (double yPosition = textHeight;
99+
yPosition < size.height;
100+
yPosition += textHeight) {
103101
canvas.drawLine(
104102
Offset(0, yPosition),
105103
Offset(size.width, yPosition),
@@ -108,11 +106,9 @@ class _NotebookPainter extends CustomPainter {
108106
}
109107

110108
if (isGrid) {
111-
for (
112-
double xPosition = 0;
113-
xPosition < size.width;
114-
xPosition += textHeight
115-
) {
109+
for (double xPosition = 0;
110+
xPosition < size.width;
111+
xPosition += textHeight) {
116112
canvas.drawLine(
117113
Offset(xPosition, 0),
118114
Offset(xPosition, size.height),

pubspec.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: responsive_notebook_background
22
description: A notebook background which is responsive to the system text size settings.
33
homepage: https://pub.dev/publishers/cosee.biz/packages
4-
version: 1.0.1
4+
version: 1.0.2
55
repository: https://github.com/cosee/responsive_notebook_background/tree/main
66
issue_tracker: https://github.com/cosee/responsive_notebook_background/issues
77
screenshots:
@@ -13,7 +13,8 @@ topics:
1313
- responsive
1414

1515
environment:
16-
sdk: ^3.8.0
16+
sdk: ^3.0.0
17+
flutter: ^3.16.0
1718

1819
dependencies:
1920
flutter:
@@ -22,5 +23,5 @@ dependencies:
2223
dev_dependencies:
2324
flutter_test:
2425
sdk: flutter
25-
cosee_lints: 0.12.0
26-
dart_code_linter: ^3.0.0
26+
cosee_lints: ^0.13.0
27+
dart_code_linter: ^3.2.1

0 commit comments

Comments
 (0)