* tweak

* opt: image quality

* opt: VideoPlayerServiceHandler

* fixes

* update

Signed-off-by: dom <githubaccount56556@proton.me>

* fix get file name

Signed-off-by: dom <githubaccount56556@proton.me>

---------

Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
My-Responsitories
2026-01-25 15:21:33 +08:00
committed by GitHub
parent 219228f8b5
commit 038f03a4e7
10 changed files with 64 additions and 49 deletions

View File

@@ -22,8 +22,6 @@ class DisabledIcon<T extends Widget> extends SingleChildRenderObjectWidget {
final StrokeCap strokeCap;
final double lineLengthScale;
T enable() => child as T;
@override
RenderObject createRenderObject(BuildContext context) {
late final iconTheme = IconTheme.of(context);
@@ -31,12 +29,12 @@ class DisabledIcon<T extends Widget> extends SingleChildRenderObjectWidget {
disable: disable,
iconSize:
iconSize ??
(child is Icon ? (child as Icon?)?.size : null) ??
(child is Icon ? (child as Icon).size : null) ??
iconTheme.size ??
24.0,
color:
color ??
(child is Icon ? (child as Icon?)?.color : null) ??
(child is Icon ? (child as Icon).color : null) ??
iconTheme.color!,
strokeCap: strokeCap,
lineLengthScale: lineLengthScale,

View File

@@ -15,7 +15,7 @@ class NetworkImgLayer extends StatelessWidget {
this.type = .def,
this.fadeOutDuration = const Duration(milliseconds: 120),
this.fadeInDuration = const Duration(milliseconds: 120),
this.quality,
this.quality = 1,
this.borderRadius = StyleString.mdRadius,
this.getPlaceHolder,
this.fit = .cover,
@@ -29,7 +29,7 @@ class NetworkImgLayer extends StatelessWidget {
final ImageType type;
final Duration fadeOutDuration;
final Duration fadeInDuration;
final int? quality;
final int quality;
final BorderRadius borderRadius;
final ValueGetter<Widget>? getPlaceHolder;
final BoxFit fit;