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