mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 23:40:41 +00:00
73d0c32323
* implemented `MockCameraContainerBloc` to stub camera on simulator * hide pro features from metering screen * disable pro features in settings * use closed child background color in `AnimatedDialog` * adjust `AnimatedDialogPicker` to items count * close `AnimatedDialog` through context * cleanup * fixed `ReadingValueContainer` text color * removed legacy translations * fixed tests * fixed `AnimatedDialog` scaling * added `evFromImage` test * added no EXIF test to `evFromImage`
24 lines
496 B
Dart
24 lines
496 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:lightmeter/res/dimens.dart';
|
|
|
|
class Disable extends StatelessWidget {
|
|
final bool disable;
|
|
final Widget? child;
|
|
|
|
const Disable({
|
|
this.disable = true,
|
|
this.child,
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Opacity(
|
|
opacity: disable ? Dimens.disabledOpacity : Dimens.enabledOpacity,
|
|
child: IgnorePointer(
|
|
ignoring: disable,
|
|
child: child,
|
|
),
|
|
);
|
|
}
|
|
}
|