refa video params

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-04 16:40:20 +08:00
parent 26ccb92b44
commit cf84a92808
33 changed files with 341 additions and 374 deletions

View File

@@ -48,7 +48,7 @@ class InteractiveviewerGallery<T> extends StatefulWidget {
this.minScale = 1.0,
this.onPageChanged,
this.onDismissed,
this.setStatusBar,
this.setStatusBar = true,
this.onClose,
required this.quality,
});
@@ -57,7 +57,7 @@ class InteractiveviewerGallery<T> extends StatefulWidget {
final ValueChanged<bool>? onClose;
final bool? setStatusBar;
final bool setStatusBar;
/// The sources to show.
final List<SourceModel> sources;
@@ -114,7 +114,7 @@ class _InteractiveviewerGalleryState extends State<InteractiveviewerGallery>
duration: const Duration(milliseconds: 300),
)..addListener(listener);
if (widget.setStatusBar != false) {
if (widget.setStatusBar) {
setStatusBar();
}
@@ -148,7 +148,7 @@ class _InteractiveviewerGalleryState extends State<InteractiveviewerGallery>
_animationController
..removeListener(listener)
..dispose();
if (widget.setStatusBar != false) {
if (widget.setStatusBar) {
if (Platform.isIOS || Platform.isAndroid) {
SystemChrome.setEnabledSystemUIMode(
mode ?? SystemUiMode.edgeToEdge,