spelling: visible
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
5e4ca9ef92
commit
128aa17476
@ -906,7 +906,7 @@ class _TabState extends State<_Tab> with RestorationMixin {
|
|||||||
children: [
|
children: [
|
||||||
_buildTabContent(),
|
_buildTabContent(),
|
||||||
Obx((() => _CloseButton(
|
Obx((() => _CloseButton(
|
||||||
visiable: hover.value && widget.closable,
|
visible: hover.value && widget.closable,
|
||||||
tabSelected: isSelected,
|
tabSelected: isSelected,
|
||||||
onClose: () => widget.onClose(),
|
onClose: () => widget.onClose(),
|
||||||
)))
|
)))
|
||||||
@ -938,13 +938,13 @@ class _TabState extends State<_Tab> with RestorationMixin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _CloseButton extends StatelessWidget {
|
class _CloseButton extends StatelessWidget {
|
||||||
final bool visiable;
|
final bool visible;
|
||||||
final bool tabSelected;
|
final bool tabSelected;
|
||||||
final Function onClose;
|
final Function onClose;
|
||||||
|
|
||||||
const _CloseButton({
|
const _CloseButton({
|
||||||
Key? key,
|
Key? key,
|
||||||
required this.visiable,
|
required this.visible,
|
||||||
required this.tabSelected,
|
required this.tabSelected,
|
||||||
required this.onClose,
|
required this.onClose,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
@ -954,7 +954,7 @@ class _CloseButton extends StatelessWidget {
|
|||||||
return SizedBox(
|
return SizedBox(
|
||||||
width: _kIconSize,
|
width: _kIconSize,
|
||||||
child: Offstage(
|
child: Offstage(
|
||||||
offstage: !visiable,
|
offstage: !visible,
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
customBorder: const RoundedRectangleBorder(),
|
customBorder: const RoundedRectangleBorder(),
|
||||||
onTap: () => onClose(),
|
onTap: () => onClose(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user