[SYNC] Working on the checkbox toggle

This commit is contained in:
2024-05-16 20:58:49 +03:00
parent 5c7cbd660a
commit f743cc082c

View File

@@ -5,6 +5,7 @@
//s2 CORE //s2 CORE
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart'; import 'package:flutter/scheduler.dart';
import 'dart:ui' as ui;
//s2 3RD-PARTY //s2 3RD-PARTY
// //
@@ -27,7 +28,7 @@ class AstromicCheckboxToggle extends StatefulWidget {
//s1 -- Configuration //s1 -- Configuration
final bool? isEnabled; final bool? isEnabled;
final bool? isLabelTapable; final bool? isLabelTapable;
final TextDirection textDirection; final ui.TextDirection textDirection;
//s1 -- Style //s1 -- Style
final double? itemSize; final double? itemSize;
final double? labelSpacing; final double? labelSpacing;
@@ -46,7 +47,7 @@ class AstromicCheckboxToggle extends StatefulWidget {
//s1 -- Configuration //s1 -- Configuration
this.isEnabled = true, this.isEnabled = true,
this.isLabelTapable = true, this.isLabelTapable = true,
this.textDirection = TextDirection.ltr, this.textDirection = ui.TextDirection.ltr,
//s1 -- Style //s1 -- Style
this.itemSize = 24, this.itemSize = 24,
this.labelSpacing = 6, this.labelSpacing = 6,
@@ -133,7 +134,7 @@ class _AstromicCheckboxToggleState extends State<AstromicCheckboxToggle> {
//SECTION - Build Return //SECTION - Build Return
return Directionality( return Directionality(
textDirection: widget.textDirection!, textDirection: widget.textDirection,
child: Row( child: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [