mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
fix: Bugfix for non mobile
This commit is contained in:
parent
fe5a667fd2
commit
38f2bc154b
2 changed files with 12 additions and 3 deletions
|
|
@ -3,9 +3,14 @@ import 'package:flutter/material.dart';
|
|||
class AnimatedVisibility extends StatelessWidget {
|
||||
final Widget? child;
|
||||
final bool visible;
|
||||
final double hiddenHeight;
|
||||
final Duration duration;
|
||||
const AnimatedVisibility(
|
||||
{required this.child, required this.visible, this.duration = const Duration(milliseconds: 250), super.key});
|
||||
{required this.child,
|
||||
required this.visible,
|
||||
this.hiddenHeight = 16,
|
||||
this.duration = const Duration(milliseconds: 250),
|
||||
super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
@ -15,7 +20,7 @@ class AnimatedVisibility extends StatelessWidget {
|
|||
child: IgnorePointer(
|
||||
ignoring: !visible,
|
||||
child: SizedBox(
|
||||
height: visible ? null : 16,
|
||||
height: visible ? null : hiddenHeight,
|
||||
child: child,
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue