Widget disabled(bool disable) { return IgnorePointer( child: opacity(value: disable ? 0.3 : 1.0), ignoring: disable, ); }