This commit is contained in:
Myzel394 2022-08-25 08:49:40 +02:00
parent 35eaafee2d
commit b8ad3b8d43
3 changed files with 5 additions and 8 deletions

View File

@ -30,14 +30,14 @@ class _AnnotationDialogState extends State<AnnotationDialog> {
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Padding(
padding: const EdgeInsets.all(MEDIUM_SPACE),
padding: const EdgeInsets.all(SMALL_SPACE),
child: Column(
children: <Widget>[
Text(
localizations.mainScreenAnnotationDialogTitle,
style: getTitleTextStyle(context),
),
const SizedBox(height: MEDIUM_SPACE),
const SizedBox(height: SMALL_SPACE),
Text(
localizations.mainScreenAnnotationDialogExplanation,
style: getBodyTextTextStyle(context),

View File

@ -85,9 +85,9 @@ class _RecordButtonState extends State<RecordButton> {
animateToVideoIcon = false;
});
HapticFeedback.lightImpact();
if (widget.active) {
HapticFeedback.lightImpact();
widget.onVideoEnd();
}
},

View File

@ -21,10 +21,7 @@ class RawMemoryDisplay extends StatefulWidget {
this.onVideoControllerInitialized,
this.file,
this.data,
}) : assert(data != null || file != null),
assert((type == MemoryType.photo) ||
(type == MemoryType.video && data != null)),
super(key: key);
}) : super(key: key);
@override
State<RawMemoryDisplay> createState() => _RawMemoryDisplayState();