Skip to content

Commit 16327a9

Browse files
authored
Revert "Update toggle_switch.dart"
1 parent 89c85b5 commit 16327a9

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/toggle_switch.dart

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ class ToggleSwitch extends StatefulWidget {
106106

107107
/// Use toggle switch vertically
108108
final bool isVertical;
109-
110-
/// Use icon and label vertically
111-
final bool isVerticalContent;
112109

113110
/// Set a border only to the active toggle component
114111
List<Border?>? activeBorders;
@@ -156,9 +153,7 @@ class ToggleSwitch extends StatefulWidget {
156153
this.isVertical = false,
157154
this.activeBorders,
158155
this.centerText = false,
159-
this.multiLineText = false,
160-
this.isVerticalContent = false,
161-
})
156+
this.multiLineText = false})
162157
: super(key: key);
163158

164159
@override
@@ -444,8 +439,7 @@ class _ToggleSwitchState extends State<ToggleSwitch>
444439
milliseconds:
445440
widget.animate ? widget.animationDuration : 0),
446441
curve: widget.curve,
447-
child: RowToColumn(
448-
isVertical: widget.isVerticalContent,
442+
child: Row(
449443
mainAxisAlignment: MainAxisAlignment.center,
450444
children: <Widget>[
451445
icon,

0 commit comments

Comments
 (0)