From 30cfa3ce23649f0cb367edadae82a6d5c6ec099c Mon Sep 17 00:00:00 2001 From: immadisairaj Date: Fri, 25 Feb 2022 15:13:57 +0530 Subject: [PATCH] change container to sized box --- CHANGELOG.md | 5 ++++- example/pubspec.lock | 2 +- lib/arrow_pad.dart | 5 ++--- pubspec.yaml | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e56c18..9b623d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -10,5 +14,4 @@ - Add documentation ## 0.1.0 - - Initial Release diff --git a/example/pubspec.lock b/example/pubspec.lock index 4c7163d..58b2e1b 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -7,7 +7,7 @@ packages: path: ".." relative: true source: path - version: "0.1.3" + version: "0.1.4" async: dependency: transitive description: diff --git a/lib/arrow_pad.dart b/lib/arrow_pad.dart index e350661..fe479e4 100644 --- a/lib/arrow_pad.dart +++ b/lib/arrow_pad.dart @@ -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( @@ -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, diff --git a/pubspec.yaml b/pubspec.yaml index 6a7dadd..476c825 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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