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, mainAxisSize: MainAxisSize.min,
children: <Widget>[ children: <Widget>[
Padding( Padding(
padding: const EdgeInsets.all(MEDIUM_SPACE), padding: const EdgeInsets.all(SMALL_SPACE),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Text( Text(
localizations.mainScreenAnnotationDialogTitle, localizations.mainScreenAnnotationDialogTitle,
style: getTitleTextStyle(context), style: getTitleTextStyle(context),
), ),
const SizedBox(height: MEDIUM_SPACE), const SizedBox(height: SMALL_SPACE),
Text( Text(
localizations.mainScreenAnnotationDialogExplanation, localizations.mainScreenAnnotationDialogExplanation,
style: getBodyTextTextStyle(context), style: getBodyTextTextStyle(context),

View File

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

View File

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