Skip to content

Commit 7ee4fa2

Browse files
authored
fix: remove exposed internal variable on width (#4)
1 parent 56444a1 commit 7ee4fa2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

example/with_flutter_sample/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ packages:
227227
path: "../../package"
228228
relative: true
229229
source: path
230-
version: "2.1.3"
230+
version: "2.3.0"
231231
sky_engine:
232232
dependency: transitive
233233
description: flutter
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
class ScreenWidth {
2-
final double widthValue;
3-
const ScreenWidth(this.widthValue);
2+
final double _widthValue;
3+
const ScreenWidth(this._widthValue);
44

55
double get value {
6-
return widthValue;
6+
return _widthValue;
77
}
88

99
double percent(double percent) {
10-
return widthValue * (percent / 100);
10+
return _widthValue * (percent / 100);
1111
}
1212
}

0 commit comments

Comments
 (0)