Skip to content

Commit

Permalink
change container to sized box
Browse files Browse the repository at this point in the history
  • Loading branch information
immadisairaj committed Feb 25, 2022
1 parent dd3877d commit 30cfa3c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.4
- make the widget to fit in sized box instead of container
- make the inner circle adjust dynamically

## 0.1.3
- fix dependency issue
- update documentation
Expand All @@ -10,5 +14,4 @@
- Add documentation

## 0.1.0

- Initial Release
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.1.3"
version: "0.1.4"
async:
dependency: transitive
description:
Expand Down
5 changes: 2 additions & 3 deletions lib/arrow_pad.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,9 @@ class ArrowPad extends StatelessWidget {

double _padSize = min(_height, _width);

return Container(
return SizedBox(
height: _height,
width: _width,
color: Colors.transparent,
child: Center(
child: Container(
decoration: BoxDecoration(
Expand All @@ -155,7 +154,7 @@ class ArrowPad extends StatelessWidget {
height: _padSize,
width: _padSize,
child: Padding(
padding: const EdgeInsets.all(5.0),
padding: EdgeInsets.all(_padSize * 0.035),
child: Center(
child: Material(
color: Colors.transparent,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: arrow_pad
description: A circular pad with 4 arrows which has a functionality of 4 buttons.
version: 0.1.3
version: 0.1.4
# homepage: https://github.com/immadisairaj/arrow_pad
repository: https://github.com/immadisairaj/arrow_pad

Expand Down

0 comments on commit 30cfa3c

Please sign in to comment.