Skip to content

Commit

Permalink
fix: remove exposed internal variable on width (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
omariosouto committed Nov 27, 2022
1 parent 56444a1 commit 7ee4fa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/with_flutter_sample/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ packages:
path: "../../package"
relative: true
source: path
version: "2.1.3"
version: "2.3.0"
sky_engine:
dependency: transitive
description: flutter
Expand Down
8 changes: 4 additions & 4 deletions package/lib/responsive/screen_width.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
class ScreenWidth {
final double widthValue;
const ScreenWidth(this.widthValue);
final double _widthValue;
const ScreenWidth(this._widthValue);

double get value {
return widthValue;
return _widthValue;
}

double percent(double percent) {
return widthValue * (percent / 100);
return _widthValue * (percent / 100);
}
}

0 comments on commit 7ee4fa2

Please sign in to comment.