Skip to content

Commit 0d818ed

Browse files
committed
set up for 0.2.1 release
1 parent 9581c25 commit 0d818ed

4 files changed

Lines changed: 16 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@
3737
* Update Readme
3838
* Added toggle icon property
3939
* Added sample usage of custom border and icons in /example
40+
41+
## [0.2.1] - February 16, 2021
42+
43+
* Handling the display of the switch in the AppBar

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ packages:
6868
path: ".."
6969
relative: true
7070
source: path
71-
version: "0.2.0"
71+
version: "0.2.1"
7272
flutter_test:
7373
dependency: "direct dev"
7474
description: flutter

lib/flutter_switch.dart

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -310,16 +310,16 @@ class _FlutterSwitchState extends State<FlutterSwitch>
310310
return AnimatedBuilder(
311311
animation: _animationController,
312312
builder: (context, child) {
313-
return GestureDetector(
314-
onTap: () {
315-
if (widget.value)
316-
_animationController.forward();
317-
else
318-
_animationController.reverse();
319-
320-
widget.onToggle(!widget.value);
321-
},
322-
child: Align(
313+
return Align(
314+
child: GestureDetector(
315+
onTap: () {
316+
if (widget.value)
317+
_animationController.forward();
318+
else
319+
_animationController.reverse();
320+
321+
widget.onToggle(!widget.value);
322+
},
323323
child: Container(
324324
width: widget.width,
325325
height: widget.height,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_switch
22
description: A custom switch widget that can have a custom height and width, borders, border radius, colors, toggle size, custom text and icons inside the toggle.
3-
version: 0.2.0
3+
version: 0.2.1
44
homepage: https://github.com/boringdeveloper/FlutterSwitch
55

66
environment:

0 commit comments

Comments
 (0)